content
stringlengths
5
1.04M
avg_line_length
float64
1.75
12.9k
max_line_length
int64
2
244k
alphanum_fraction
float64
0
0.98
licenses
list
repository_name
stringlengths
7
92
path
stringlengths
3
249
size
int64
5
1.04M
lang
stringclasses
2 values
using System; namespace SIS.MvcFramework.Attributes.Action { public class NonActionAttribute : Attribute { } }
12.6
47
0.706349
[ "MIT" ]
SimeonVSimeonov/custom-mvc-framework
SIS.MvcFramework/Attributes/Action/NonActionAttribute.cs
128
C#
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System.Diagnostics; using System.Threading; using StarkPlatform.CodeAnalysis.Stark.Symbols; namespace StarkPlatform.CodeAnalysis.Stark { internal sealed class LazyObsoleteDiagnosticInfo : DiagnosticInfo { private DiagnosticInfo _lazyActualObsoleteDiagnostic; private readonly object _symbolOrSymbolWithAnnotations; private readonly Symbol _containingSymbol; private readonly BinderFlags _binderFlags; internal LazyObsoleteDiagnosticInfo(object symbol, Symbol containingSymbol, BinderFlags binderFlags) : base(Stark.MessageProvider.Instance, (int)ErrorCode.Unknown) { Debug.Assert(symbol is Symbol || symbol is TypeSymbolWithAnnotations); _symbolOrSymbolWithAnnotations = symbol; _containingSymbol = containingSymbol; _binderFlags = binderFlags; _lazyActualObsoleteDiagnostic = null; } internal override DiagnosticInfo GetResolvedInfo() { if (_lazyActualObsoleteDiagnostic == null) { // A symbol's Obsoleteness may not have been calculated yet if the symbol is coming // from a different compilation's source. In that case, force completion of attributes. var symbol = (_symbolOrSymbolWithAnnotations as Symbol) ?? ((TypeSymbolWithAnnotations)_symbolOrSymbolWithAnnotations).TypeSymbol; symbol.ForceCompleteObsoleteAttribute(); var kind = ObsoleteAttributeHelpers.GetObsoleteDiagnosticKind(symbol, _containingSymbol, forceComplete: true); Debug.Assert(kind != ObsoleteDiagnosticKind.Lazy); Debug.Assert(kind != ObsoleteDiagnosticKind.LazyPotentiallySuppressed); var info = (kind == ObsoleteDiagnosticKind.Diagnostic) ? ObsoleteAttributeHelpers.CreateObsoleteDiagnostic(symbol, _binderFlags) : null; // If this symbol is not obsolete or is in an obsolete context, we don't want to report any diagnostics. // Therefore make this a Void diagnostic. Interlocked.CompareExchange(ref _lazyActualObsoleteDiagnostic, info ?? CSDiagnosticInfo.VoidDiagnosticInfo, null); } return _lazyActualObsoleteDiagnostic; } } }
47.377358
161
0.68857
[ "Apache-2.0" ]
stark-lang/stark-roslyn
src/Compilers/Stark/Portable/Errors/LazyObsoleteDiagnosticInfo.cs
2,513
C#
// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; using System.Linq; using System.Reflection; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Mvc.Core; using Microsoft.Extensions.DependencyInjection; namespace Microsoft.AspNetCore.Mvc.Internal { /// <summary> /// Calls into user provided 'Configure' methods for configuring a middleware pipeline. The semantics of finding /// the 'Configure' methods is similar to the application Startup class. /// </summary> public class MiddlewareFilterConfigurationProvider { public Action<IApplicationBuilder> CreateConfigureDelegate(Type configurationType) { if (configurationType == null) { throw new ArgumentNullException(nameof(configurationType)); } var instance = Activator.CreateInstance(configurationType); var configureDelegateBuilder = GetConfigureDelegateBuilder(configurationType); return configureDelegateBuilder.Build(instance); } private static ConfigureBuilder GetConfigureDelegateBuilder(Type startupType) { var configureMethod = FindMethod(startupType, typeof(void)); return new ConfigureBuilder(configureMethod); } private static MethodInfo FindMethod(Type startupType, Type returnType = null) { var methodName = "Configure"; var methods = startupType.GetMethods(BindingFlags.Public | BindingFlags.Instance | BindingFlags.Static); var selectedMethods = methods.Where(method => method.Name.Equals(methodName)).ToList(); if (selectedMethods.Count > 1) { throw new InvalidOperationException( Resources.FormatMiddewareFilter_ConfigureMethodOverload(methodName)); } var methodInfo = selectedMethods.FirstOrDefault(); if (methodInfo == null) { throw new InvalidOperationException( Resources.FormatMiddewareFilter_NoConfigureMethod( methodName, startupType.FullName)); } if (returnType != null && methodInfo.ReturnType != returnType) { throw new InvalidOperationException( Resources.FormatMiddlewareFilter_InvalidConfigureReturnType( methodInfo.Name, startupType.FullName, returnType.Name)); } return methodInfo; } private class ConfigureBuilder { public ConfigureBuilder(MethodInfo configure) { MethodInfo = configure; } public MethodInfo MethodInfo { get; } public Action<IApplicationBuilder> Build(object instance) { return (applicationBuilder) => Invoke(instance, applicationBuilder); } private void Invoke(object instance, IApplicationBuilder builder) { var serviceProvider = builder.ApplicationServices; var parameterInfos = MethodInfo.GetParameters(); var parameters = new object[parameterInfos.Length]; for (var index = 0; index < parameterInfos.Length; index++) { var parameterInfo = parameterInfos[index]; if (parameterInfo.ParameterType == typeof(IApplicationBuilder)) { parameters[index] = builder; } else { try { parameters[index] = serviceProvider.GetRequiredService(parameterInfo.ParameterType); } catch (Exception ex) { throw new InvalidOperationException( Resources.FormatMiddlewareFilter_ServiceResolutionFail( parameterInfo.ParameterType.FullName, parameterInfo.Name, MethodInfo.Name, MethodInfo.DeclaringType.FullName), ex); } } } MethodInfo.Invoke(instance, parameters); } } } }
39.644068
116
0.557289
[ "Apache-2.0" ]
hongloubutian/MVC
src/Microsoft.AspNetCore.Mvc.Core/Internal/MiddlewareFilterConfigurationProvider.cs
4,680
C#
using System; using System.Data; using System.Configuration; using System.Collections; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; namespace Mediachase.Ibn.Web.UI.ListApp.Pages { public partial class ListInfoCreate : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { pT.Title = CHelper.GetResFileString("{IbnFramework.ListInfo:ListInfoCreate}"); } } }
23.772727
81
0.780115
[ "MIT" ]
InstantBusinessNetwork/IBN
Source/Server/WebPortal/Apps/ListApp/Pages/ListInfoCreate.aspx.cs
525
C#
using System.Linq; using System.Collections.Generic; using HierarchyGrid.Definitions; using System; using MoreLinq; namespace Demo { public class CalendarBuilder { private string[] _users; public CalendarBuilder(params string[] users) { _users = users; } public IEnumerable<ProducerDefinition> GetProducers() => Enumerable.Range( DateTime.Today.Year - 1 , 3 ) .Select( year => { var yearlyProducer = new ProducerDefinition { Content = $"{year}" }; Enumerable.Range( 1 , 12 ) .ForEach( month => { var monthlyProducer = yearlyProducer.Add( new ProducerDefinition { Content = $"{month}" } ); _users?.OrderBy( x => x ) .ForEach( user => { var userProducer = monthlyProducer.Add( new ProducerDefinition { Content = $"{user}" , Producer = () => (year, month, user) } ); } ); monthlyProducer.IsExpanded = year == DateTime.Today.Year && month == DateTime.Today.Month; } ); yearlyProducer.IsExpanded = year == DateTime.Today.Year; return yearlyProducer; }); public IEnumerable<ConsumerDefinition> GetConsumers() => Enumerable.Range(1,31) .Select ( day => { var consumer = new ConsumerDefinition { Content = $"{day}", Consumer = o => { if ( o is ValueTuple<int , int , string> tuple ) { var (year, month, user) = tuple; if ( day <= DateTime.DaysInMonth( year , month ) ) { var date = new DateTime( year , month , day ); return (date,user); } } return string.Empty; } }; return consumer; }); } }
37
120
0.370765
[ "MIT" ]
CyLuGh/HierarchyGrid
src/Demo/CalendarBuilder.cs
2,627
C#
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Composition.Hosting.Core; using System.Linq.Expressions; using System.Reflection; namespace System.Composition.TypedParts.Discovery { internal sealed class DiscoveredPropertyExport : DiscoveredExport { private static readonly MethodInfo s_activatorInvoke = typeof(CompositeActivator).GetRuntimeMethod( "Invoke", new[] { typeof(LifetimeContext), typeof(CompositionOperation) } ); private readonly PropertyInfo _property; public DiscoveredPropertyExport( CompositionContract contract, IDictionary<string, object> metadata, PropertyInfo property ) : base(contract, metadata) { _property = property; } protected override ExportDescriptor GetExportDescriptor(CompositeActivator partActivator) { var args = new[] { Expression.Parameter(typeof(LifetimeContext)), Expression.Parameter(typeof(CompositionOperation)) }; var activator = Expression.Lambda<CompositeActivator>( Expression.Property( Expression.Convert( Expression.Call( Expression.Constant(partActivator), s_activatorInvoke, args ), _property.DeclaringType ), _property ), args ); return ExportDescriptor.Create(activator.Compile(), Metadata); } public override DiscoveredExport CloseGenericExport( TypeInfo closedPartType, Type[] genericArguments ) { var closedContractType = Contract.ContractType.MakeGenericType(genericArguments); var newContract = Contract.ChangeType(closedContractType); var property = closedPartType.AsType().GetRuntimeProperty(_property.Name); return new DiscoveredPropertyExport(newContract, Metadata, property); } } }
34.544118
97
0.591315
[ "MIT" ]
belav/runtime
src/libraries/System.Composition.TypedParts/src/System/Composition/TypedParts/Discovery/DiscoveredPropertyExport.cs
2,349
C#
// Copyright (c) Alexandre Mutel. All rights reserved. // This file is licensed under the BSD-Clause 2 license. // See the license.txt file in the project root for more information. using System.Diagnostics.CodeAnalysis; using Markdig.Helpers; using Markdig.Parsers; using Markdig.Syntax.Inlines; namespace Markdig.Syntax { /// <summary> /// A link reference definition (Section 4.7 CommonMark specs) /// </summary> /// <seealso cref="LeafBlock" /> public class LinkReferenceDefinition : LeafBlock { /// <summary> /// Creates an inline link for the specified <see cref="LinkReferenceDefinition"/>. /// </summary> /// <param name="inlineState">State of the inline.</param> /// <param name="linkRef">The link reference.</param> /// <param name="child">The child.</param> /// <returns>An inline link or null to use the default implementation</returns> public delegate Inline CreateLinkInlineDelegate(InlineProcessor inlineState, LinkReferenceDefinition linkRef, Inline? child = null); /// <summary> /// Initializes a new instance of the <see cref="LinkReferenceDefinition"/> class. /// </summary> public LinkReferenceDefinition() : base(null) { IsOpen = false; } /// <summary> /// Initializes a new instance of the <see cref="LinkReferenceDefinition"/> class. /// </summary> /// <param name="label">The label.</param> /// <param name="url">The URL.</param> /// <param name="title">The title.</param> public LinkReferenceDefinition(string? label, string? url, string? title) : this() { Label = label; Url = url; Title = title; } /// <summary> /// Gets or sets the label. Text is normalized according to spec. /// </summary> /// https://spec.commonmark.org/0.29/#matches public string? Label { get; set; } /// <summary> /// The label span /// </summary> public SourceSpan LabelSpan; /// <summary> /// Non-normalized Label (includes trivia) /// Trivia: only parsed when <see cref="MarkdownPipeline.TrackTrivia"/> is enabled, otherwise /// <see cref="StringSlice.IsEmpty"/>. /// </summary> public StringSlice LabelWithTrivia { get; set; } /// <summary> /// Whitespace before the <see cref="Url"/>. /// Trivia: only parsed when <see cref="MarkdownPipeline.TrackTrivia"/> is enabled, otherwise /// <see cref="StringSlice.IsEmpty"/>. /// </summary> public StringSlice TriviaBeforeUrl { get; set; } /// <summary> /// Gets or sets the URL. /// </summary> public string? Url { get; set; } /// <summary> /// The URL span /// </summary> public SourceSpan UrlSpan; /// <summary> /// Non-normalized <see cref="Url"/>. /// Trivia: only parsed when <see cref="MarkdownPipeline.TrackTrivia"/> is enabled, otherwise /// <see cref="StringSlice.IsEmpty"/>. /// </summary> public StringSlice UnescapedUrl { get; set; } /// <summary> /// True when the <see cref="Url"/> is enclosed in point brackets in the source document. /// Trivia: only parsed when <see cref="MarkdownPipeline.TrackTrivia"/> is enabled, otherwise /// false. /// </summary> public bool UrlHasPointyBrackets { get; set; } /// <summary> /// gets or sets the whitespace before a <see cref="Title"/>. /// Trivia: only parsed when <see cref="MarkdownPipeline.TrackTrivia"/> is enabled, otherwise /// <see cref="StringSlice.IsEmpty"/>. /// </summary> public StringSlice TriviaBeforeTitle { get; set; } /// <summary> /// Gets or sets the title. /// </summary> public string? Title { get; set; } /// <summary> /// The title span /// </summary> public SourceSpan TitleSpan; /// <summary> /// Non-normalized <see cref="Title"/>. /// Trivia: only parsed when <see cref="MarkdownPipeline.TrackTrivia"/> is enabled, otherwise /// <see cref="StringSlice.IsEmpty"/>. /// </summary> public StringSlice UnescapedTitle { get; set; } /// <summary> /// Gets or sets the character the <see cref="Title"/> is enclosed in. /// Trivia: only parsed when <see cref="MarkdownPipeline.TrackTrivia"/> is enabled, otherwise \0. /// </summary> public char TitleEnclosingCharacter { get; set; } /// <summary> /// Gets or sets the create link inline callback for this instance. /// </summary> /// <remarks> /// This callback is called when an inline link is matching this reference definition. /// </remarks> public CreateLinkInlineDelegate? CreateLinkInline { get; set; } /// <summary> /// Tries to the parse the specified text into a definition. /// </summary> /// <typeparam name="T">Type of the text</typeparam> /// <param name="text">The text.</param> /// <param name="block">The block.</param> /// <returns><c>true</c> if parsing is successful; <c>false</c> otherwise</returns> public static bool TryParse<T>(ref T text, [NotNullWhen(true)] out LinkReferenceDefinition? block) where T : ICharIterator { block = null; var startSpan = text.Start; if (!LinkHelper.TryParseLinkReferenceDefinition(ref text, out string? label, out string? url, out string? title, out SourceSpan labelSpan, out SourceSpan urlSpan, out SourceSpan titleSpan)) { return false; } block = new LinkReferenceDefinition(label, url, title) { LabelSpan = labelSpan, UrlSpan = urlSpan, TitleSpan = titleSpan, Span = new SourceSpan(startSpan, titleSpan.End > 0 ? titleSpan.End: urlSpan.End) }; return true; } /// <summary> /// Tries to the parse the specified text into a definition. /// </summary> /// <typeparam name="T">Type of the text</typeparam> /// <param name="text">The text.</param> /// <param name="block">The block.</param> /// <param name="triviaBeforeLabel"></param> /// <param name="labelWithTrivia"></param> /// <param name="triviaBeforeUrl"></param> /// <param name="unescapedUrl"></param> /// <param name="triviaBeforeTitle"></param> /// <param name="unescapedTitle"></param> /// <param name="triviaAfterTitle"></param> /// <returns><c>true</c> if parsing is successful; <c>false</c> otherwise</returns> public static bool TryParseTrivia<T>( ref T text, [NotNullWhen(true)] out LinkReferenceDefinition? block, out SourceSpan triviaBeforeLabel, out SourceSpan labelWithTrivia, out SourceSpan triviaBeforeUrl, out SourceSpan unescapedUrl, out SourceSpan triviaBeforeTitle, out SourceSpan unescapedTitle, out SourceSpan triviaAfterTitle) where T : ICharIterator { block = null; var startSpan = text.Start; if (!LinkHelper.TryParseLinkReferenceDefinitionTrivia( ref text, out triviaBeforeLabel, out string? label, out labelWithTrivia, out triviaBeforeUrl, out string? url, out unescapedUrl, out bool urlHasPointyBrackets, out triviaBeforeTitle, out string? title, out unescapedTitle, out char titleEnclosingCharacter, out NewLine newLine, out triviaAfterTitle, out SourceSpan labelSpan, out SourceSpan urlSpan, out SourceSpan titleSpan)) { return false; } block = new LinkReferenceDefinition(label, url, title) { UrlHasPointyBrackets = urlHasPointyBrackets, TitleEnclosingCharacter = titleEnclosingCharacter, //LabelWithWhitespace = labelWithWhitespace, LabelSpan = labelSpan, UrlSpan = urlSpan, //UnescapedUrl = unescapedUrl, //UnescapedTitle = unescapedTitle, TitleSpan = titleSpan, Span = new SourceSpan(startSpan, titleSpan.End > 0 ? titleSpan.End : urlSpan.End), NewLine = newLine, }; return true; } } }
38.722944
201
0.567356
[ "BSD-2-Clause" ]
luoyiminga/markdig
src/Markdig/Syntax/LinkReferenceDefinition.cs
8,945
C#
/* * Copyright 2010-2014 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the ec2-2016-11-15.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.EC2.Model { /// <summary> /// Describes a secondary private IPv4 address for a network interface. /// </summary> public partial class PrivateIpAddressSpecification { private bool? _primary; private string _privateIpAddress; /// <summary> /// Gets and sets the property Primary. /// <para> /// Indicates whether the private IPv4 address is the primary private IPv4 address. Only /// one IPv4 address can be designated as primary. /// </para> /// </summary> public bool Primary { get { return this._primary.GetValueOrDefault(); } set { this._primary = value; } } // Check to see if Primary property is set internal bool IsSetPrimary() { return this._primary.HasValue; } /// <summary> /// Gets and sets the property PrivateIpAddress. /// <para> /// The private IPv4 addresses. /// </para> /// </summary> public string PrivateIpAddress { get { return this._privateIpAddress; } set { this._privateIpAddress = value; } } // Check to see if PrivateIpAddress property is set internal bool IsSetPrivateIpAddress() { return this._privateIpAddress != null; } } }
29.907895
101
0.628245
[ "Apache-2.0" ]
Bio2hazard/aws-sdk-net
sdk/src/Services/EC2/Generated/Model/PrivateIpAddressSpecification.cs
2,273
C#
// // Author: // Jb Evain (jbevain@gmail.com) // // Copyright (c) 2008 - 2015 Jb Evain // Copyright (c) 2008 - 2011 Novell, Inc. // // Licensed under the MIT/X11 license. // using System; using RVA = System.UInt32; namespace Mono.Cecil.PE { sealed class Section { public string Name; public RVA VirtualAddress; public uint VirtualSize; public uint SizeOfRawData; public uint PointerToRawData; } }
16.6
41
0.691566
[ "MIT" ]
13294029724/ET
Unity/Assets/ThirdParty/ILRuntime/Mono.Cecil/Mono.Cecil.PE/Section.cs
415
C#
using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; using Folder_sorter.DirUtil; namespace Folder_sorter { public static class Config { public static List<Folder> ReadConfig(string config_path) { var folders = new List<Folder>(); if (!File.Exists(config_path)) { EventLog.WriteEntry("SorterSource","Error reading configuration file.\n" + "Please check the entered path.", EventLogEntryType.Error); Environment.Exit(0); } string[] lines = File.ReadAllLines(config_path); string marker = ""; foreach (string line in lines) { if (line[0] == '#') marker = line.Remove(0, 1); else switch (marker) { case "Start": folders.Add(new Folder(line)); break; case "folder": folders[folders.Count - 1] .SubFolders.Add (new SubFolder ($@"{folders[folders.Count - 1].Path}\{line}")); break; case "names": //Parent folder folders[folders.Count - 1] //Sub folder .SubFolders[folders[folders.Count - 1] .SubFolders.Count-1] .NameMatches.Add(line); break; case "ext": //Parent folder folders[folders.Count - 1] //Sub folder .SubFolders[folders[folders.Count - 1] .SubFolders.Count-1] .AllowedExtensions.Add(line); break; } } return folders; } } }
36.5
96
0.379143
[ "BSD-3-Clause" ]
kolik95/Folder-Sorter
Folder_sorter/Config.cs
2,265
C#
using System.Windows.Media; namespace TeaDriven.Kiltse { public class DefaultStrokeInfoSelector : StrokeInfoSelector { public override StrokeInfo GetStrokeInfo(RingItem value) { return new StrokeInfo(new SolidColorBrush(Colors.White), DefaultStrokeThickness, null); } } }
26.75
99
0.700935
[ "Unlicense" ]
TeaDrivenDev/Kiltse
src/TeaDriven.Kiltse/DefaultStrokeInfoSelector.cs
323
C#
using System.Collections.Generic; using System.Diagnostics; namespace LivingDocumentation.Uml { /// <summary> /// Represents a group with 1 or more sections, like <c>alt</c>, <c>par</c>, <c>loop</c>, etc.. /// </summary> [DebuggerDisplay("Alt")] public class Alt : InteractionFragment { private readonly List<AltSection> sections = new List<AltSection>(); /// <summary> /// Gets all sections. /// </summary> public IReadOnlyList<AltSection> Sections => this.sections; /// <summary> /// Add a sections to this alt. /// </summary> /// <param name="section">The section to add.</param> public void AddSection(AltSection section) { section.Parent = this; this.sections.Add(section); } } }
27.032258
99
0.577566
[ "MIT" ]
eNeRGy164/LivingDocumentation
src/LivingDocumentation.UML/Fragments/Alt.cs
840
C#
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System.Runtime.CompilerServices; using BuildXL.Utilities; using Test.BuildXL.TestUtilities.Xunit; using Xunit; namespace Test.BuildXL.Utilities { public class PossibleTests { [Fact] public void Success() { Possible<int> success = 1; XAssert.IsTrue(success.Succeeded); XAssert.AreEqual(1, success.Result); } [Fact] public void Failure() { Possible<int, Failure<int>> failure = new Failure<int>(2); XAssert.IsFalse(failure.Succeeded); XAssert.AreEqual(2, failure.Failure.Content); } [Fact] public void RethrowExceptionPreservingStack() { Possible<int, RecoverableExceptionFailure> maybeInt = FailingFunction(); XAssert.IsFalse(maybeInt.Succeeded); try { throw maybeInt.Failure.Throw(); } catch (BuildXLException rethrown) { XAssert.AreEqual("Thrown", rethrown.Message); XAssert.IsTrue(rethrown.ToString().Contains("OriginalThrowSite"), "Expected OriginalThrowSite in {0}", rethrown); } } private static Possible<int, RecoverableExceptionFailure> FailingFunction() { try { OriginalThrowSite(); return 1; } catch (BuildXLException ex) { return new RecoverableExceptionFailure(ex); } } [MethodImpl(MethodImplOptions.NoInlining)] // We want to XAssert this is in a stack trace. private static void OriginalThrowSite() { throw new BuildXLException("Thrown"); } [Fact] public void Bind() { Possible<int> maybeInt = 1; Possible<int> nextMaybeInt = maybeInt.Then(i => new Possible<int>(i + 1)); XAssert.IsTrue(nextMaybeInt.Succeeded); XAssert.AreEqual(2, nextMaybeInt.Result); } [Fact] public void BindOnFailure() { Possible<int, Failure<int>> maybeInt = new Failure<int>(3); Possible<int, Failure<int>> nextMaybeInt = maybeInt.Then( i => { XAssert.Fail("Shouldn't be called on failure"); return new Possible<int, Failure<int>>(i + 1); }); XAssert.IsFalse(nextMaybeInt.Succeeded); XAssert.AreEqual(3, nextMaybeInt.Failure.Content); } [Fact] public void Then() { Possible<int> maybeInt = 1; Possible<int> nextMaybeInt = maybeInt.Then(i => i + 1); XAssert.IsTrue(nextMaybeInt.Succeeded); XAssert.AreEqual(2, nextMaybeInt.Result); } [Fact] public void ThenOnFailure() { Possible<int, Failure<int>> maybeInt = new Failure<int>(3); Possible<int, Failure<int>> nextMaybeInt = maybeInt.Then( i => { XAssert.Fail("Shouldn't be called on failure"); return i + 1; }); XAssert.IsFalse(nextMaybeInt.Succeeded); XAssert.AreEqual(3, nextMaybeInt.Failure.Content); } } }
31.903509
130
0.524058
[ "MIT" ]
AzureMentor/BuildXL
Public/Src/Utilities/UnitTests/Utilities/PossibleTests.cs
3,637
C#
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // Runtime Version:4.0.30319.42000 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> //------------------------------------------------------------------------------ namespace PowerShellTools.DebugEngine { using System; /// <summary> /// A strongly-typed resource class, for looking up localized strings, etc. /// </summary> // This class was auto-generated by the StronglyTypedResourceBuilder // class via a tool like ResGen or Visual Studio. // To add or remove a member, edit your .ResX file then rerun ResGen // with the /str option, or rebuild your VS project. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] internal class ResourceStrings { private static global::System.Resources.ResourceManager resourceMan; private static global::System.Globalization.CultureInfo resourceCulture; [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] internal ResourceStrings() { } /// <summary> /// Returns the cached ResourceManager instance used by this class. /// </summary> [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] internal static global::System.Resources.ResourceManager ResourceManager { get { if (object.ReferenceEquals(resourceMan, null)) { global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("PowerShellTools.DebugEngine.ResourceStrings", typeof(ResourceStrings).Assembly); resourceMan = temp; } return resourceMan; } } /// <summary> /// Overrides the current thread's CurrentUICulture property for all /// resource lookups using this strongly typed resource class. /// </summary> [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] internal static global::System.Globalization.CultureInfo Culture { get { return resourceCulture; } set { resourceCulture = value; } } /// <summary> /// Looks up a localized string similar to {0} should have at least one element.. /// </summary> internal static string ChoicesCollectionShouldHaveAtLeastOneElement { get { return ResourceManager.GetString("ChoicesCollectionShouldHaveAtLeastOneElement", resourceCulture); } } /// <summary> /// Looks up a localized string similar to PowerShell Debug Engine. /// </summary> internal static string EngineName { get { return ResourceManager.GetString("EngineName", resourceCulture); } } /// <summary> /// Looks up a localized string similar to PowerShell Debug Port. /// </summary> internal static string PortName { get { return ResourceManager.GetString("PortName", resourceCulture); } } /// <summary> /// Looks up a localized string similar to PowerShell Debug Port Supplier. /// </summary> internal static string PortSupplierName { get { return ResourceManager.GetString("PortSupplierName", resourceCulture); } } /// <summary> /// Looks up a localized string similar to {0} - {1}. /// </summary> internal static string ProgressBarFormat { get { return ResourceManager.GetString("ProgressBarFormat", resourceCulture); } } /// <summary> /// Looks up a localized string similar to PowerShell. /// </summary> internal static string PromptForChoice_DefaultCaption { get { return ResourceManager.GetString("PromptForChoice_DefaultCaption", resourceCulture); } } /// <summary> /// Looks up a localized string similar to Windows PowerShell Credential Request. /// </summary> internal static string PromptForCredential_DefaultCaption { get { return ResourceManager.GetString("PromptForCredential_DefaultCaption", resourceCulture); } } /// <summary> /// Looks up a localized string similar to Enter your credentials.. /// </summary> internal static string PromptForCredential_DefaultMessage { get { return ResourceManager.GetString("PromptForCredential_DefaultMessage", resourceCulture); } } /// <summary> /// Looks up a localized string similar to Enter your credentials.. /// </summary> internal static string PromptForCredential_DefaultTarget { get { return ResourceManager.GetString("PromptForCredential_DefaultTarget", resourceCulture); } } /// <summary> /// Looks up a localized string similar to The length of the caption should be less than {0}.. /// </summary> internal static string PromptForCredential_InvalidCaption { get { return ResourceManager.GetString("PromptForCredential_InvalidCaption", resourceCulture); } } /// <summary> /// Looks up a localized string similar to The length of the message should be less than {0}.. /// </summary> internal static string PromptForCredential_InvalidMessage { get { return ResourceManager.GetString("PromptForCredential_InvalidMessage", resourceCulture); } } /// <summary> /// Looks up a localized string similar to The length of the UserName should be less than {0}.. /// </summary> internal static string PromptForCredential_InvalidUserName { get { return ResourceManager.GetString("PromptForCredential_InvalidUserName", resourceCulture); } } /// <summary> /// Looks up a localized string similar to DEBUG:{0}. /// </summary> internal static string PS_Debug { get { return ResourceManager.GetString("PS_Debug", resourceCulture); } } /// <summary> /// Looks up a localized string similar to VERBOSE: {0}. /// </summary> internal static string PS_Verbose { get { return ResourceManager.GetString("PS_Verbose", resourceCulture); } } /// <summary> /// Looks up a localized string similar to WARNING: {0}. /// </summary> internal static string PS_Warning { get { return ResourceManager.GetString("PS_Warning", resourceCulture); } } } }
40.040201
195
0.562751
[ "Apache-2.0" ]
JohnZhaoXiaoHu/poshtools
PowerShellTools/DebugEngine/ResourceStrings.Designer.cs
7,970
C#
/* Copyright 2010-2016 MongoDB Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ using System; using System.Linq; using System.Text.RegularExpressions; using MongoDB.Bson; using FluentAssertions; using Xunit; using MongoDB.Bson.TestHelpers.XunitExtensions; namespace MongoDB.Bson.Tests { public class BsonValueTests { [Theory] [ParameterAttributeData] public void implicit_conversion_from_bool_should_return_precreated_instance( [Values(false, true)] bool value) { var result1 = (BsonValue)value; var result2 = (BsonValue)value; result2.Should().BeSameAs(result1); } [Theory] [ParameterAttributeData] public void implicit_conversion_from_double_should_return_new_instance( [Values(-101.0, 101.0)] double value) { var result1 = (BsonValue)value; var result2 = (BsonValue)value; result2.Should().NotBeSameAs(result1); } [Theory] [ParameterAttributeData] public void implicit_conversion_from_double_should_return_precreated_instance( [Range(-100.0, 100.0, 1.0)] double value) { var result1 = (BsonValue)value; var result2 = (BsonValue)value; result2.Should().BeSameAs(result1); } [Theory] [ParameterAttributeData] public void implicit_conversion_from_int_should_return_new_instance( [Values(-101, 101)] int value) { var result1 = (BsonValue)value; var result2 = (BsonValue)value; result2.Should().NotBeSameAs(result1); } [Theory] [ParameterAttributeData] public void implicit_conversion_from_int_should_return_precreated_instance( [Range(-100, 100)] int value) { var result1 = (BsonValue)value; var result2 = (BsonValue)value; result2.Should().BeSameAs(result1); } [Theory] [ParameterAttributeData] public void implicit_conversion_from_long_should_return_new_instance( [Values(-101L, 101L)] long value) { var result1 = (BsonValue)value; var result2 = (BsonValue)value; result2.Should().NotBeSameAs(result1); } [Theory] [ParameterAttributeData] public void implicit_conversion_from_long_should_return_precreated_instance( [Range(-100L, 100L, 1L)] long value) { var result1 = (BsonValue)value; var result2 = (BsonValue)value; result2.Should().BeSameAs(result1); } [Theory] [ParameterAttributeData] public void implicit_conversion_from_string_should_return_new_instance( [Values("x")] string value) { var result1 = (BsonValue)value; var result2 = (BsonValue)value; result2.Should().NotBeSameAs(result1); } [Theory] [ParameterAttributeData] public void implicit_conversion_from_string_should_return_precreated_instance( [Values("")] string value) { var result1 = (BsonValue)value; var result2 = (BsonValue)value; result2.Should().BeSameAs(result1); } [Fact] public void TestAsBoolean() { BsonValue v = true; BsonValue s = ""; var b = v.AsBoolean; Assert.Equal(true, b); Assert.Throws<InvalidCastException>(() => { var x = s.AsBoolean; }); } [Fact] public void TestAsBsonArray() { BsonValue v = new BsonArray { 1, 2 }; BsonValue s = ""; var a = v.AsBsonArray; Assert.Equal(2, a.Count); Assert.Equal(1, a[0].AsInt32); Assert.Equal(2, a[1].AsInt32); Assert.Throws<InvalidCastException>(() => { var x = s.AsBsonArray; }); } [Fact] public void TestAsBinaryData() { BsonValue v = new byte[] { 1, 2 }; BsonValue s = ""; var b = v.AsBsonBinaryData; Assert.Equal(2, b.AsByteArray.Length); Assert.Equal(1, b.AsByteArray[0]); Assert.Equal(2, b.AsByteArray[1]); Assert.Equal(BsonBinarySubType.Binary, b.SubType); Assert.Throws<InvalidCastException>(() => { var x = s.AsBsonBinaryData; }); } [Fact] public void TestAsBsonDocument() { BsonValue v = new BsonDocument("x", 1); BsonValue s = ""; var d = v.AsBsonDocument; Assert.Equal(1, d.ElementCount); Assert.Equal("x", d.GetElement(0).Name); Assert.Equal(1, d[0].AsInt32); Assert.Throws<InvalidCastException>(() => { var x = s.AsBsonDocument; }); } [Fact] public void TestAsBsonJavaScript() { BsonValue v = new BsonJavaScript("code"); BsonValue s = ""; var js = v.AsBsonJavaScript; Assert.Equal("code", js.Code); Assert.Throws<InvalidCastException>(() => { var x = s.AsBsonJavaScript; }); } [Fact] public void TestAsBsonJavaScriptWithScode() { var scope = new BsonDocument("x", 1); BsonValue s = ""; BsonValue v = new BsonJavaScriptWithScope("code", scope); var js = v.AsBsonJavaScriptWithScope; Assert.Equal("code", js.Code); Assert.Equal(1, js.Scope.ElementCount); Assert.Equal("x", js.Scope.GetElement(0).Name); Assert.Equal(1, js.Scope["x"].AsInt32); Assert.Same(v.AsBsonJavaScript, v.AsBsonJavaScriptWithScope); Assert.Throws<InvalidCastException>(() => { var x = s.AsBsonJavaScriptWithScope; }); } [Fact] public void TestAsBsonMaxKey() { BsonValue v = BsonMaxKey.Value; BsonValue s = ""; var m = v.AsBsonMaxKey; Assert.Same(BsonMaxKey.Value, m); Assert.Throws<InvalidCastException>(() => { var x = s.AsBsonMaxKey; }); } [Fact] public void TestAsBsonMinKey() { BsonValue v = BsonMinKey.Value; BsonValue s = ""; var m = v.AsBsonMinKey; Assert.Same(BsonMinKey.Value, m); Assert.Throws<InvalidCastException>(() => { var x = s.AsBsonMinKey; }); } [Fact] public void TestAsBsonNull() { BsonValue v = BsonNull.Value; BsonValue s = ""; var n = v.AsBsonNull; Assert.Same(BsonNull.Value, n); Assert.Throws<InvalidCastException>(() => { var x = s.AsBsonNull; }); } [Fact] public void TestAsBsonRegularExpression() { BsonValue v = new BsonRegularExpression("pattern", "options"); BsonValue s = ""; var r = v.AsBsonRegularExpression; Assert.Equal("pattern", r.Pattern); Assert.Equal("options", r.Options); Assert.Throws<InvalidCastException>(() => { var x = s.AsBsonRegularExpression; }); } [Fact] public void TestAsBsonSymbol() { BsonValue v = BsonSymbolTable.Lookup("name"); BsonValue s = ""; var sym = v.AsBsonSymbol; Assert.Equal("name", sym.Name); Assert.Throws<InvalidCastException>(() => { var x = s.AsBsonSymbol; }); } [Fact] public void TestAsBsonTimestamp() { BsonValue v = new BsonTimestamp(1234); BsonValue s = ""; var ts = v.AsBsonTimestamp; Assert.Equal(1234, ts.Value); Assert.Throws<InvalidCastException>(() => { var x = s.AsBsonTimestamp; }); } [Fact] public void TestAsByteArray() { BsonValue v = new byte[] { 1, 2 }; BsonValue s = ""; var a = v.AsByteArray; Assert.Equal(2, a.Length); Assert.Equal(1, a[0]); Assert.Equal(2, a[1]); Assert.Throws<InvalidCastException>(() => { var x = s.AsByteArray; }); } [Fact] public void TestAsDateTime() { var utcNow = DateTime.UtcNow; var utcNowTruncated = utcNow.AddTicks(-(utcNow.Ticks % 10000)); BsonValue v = utcNow; BsonValue s = ""; var dt = v.ToUniversalTime(); Assert.Equal(utcNowTruncated, dt); #pragma warning disable 618 Assert.Throws<InvalidCastException>(() => { var x = s.AsDateTime; }); #pragma warning restore Assert.Throws<NotSupportedException>(() => s.ToUniversalTime()); } [Fact] public void TestAsDouble() { BsonValue v = 1.5; BsonValue s = ""; var d = v.AsDouble; Assert.Equal(1.5, d); Assert.Throws<InvalidCastException>(() => { var x = s.AsDouble; }); } [Fact] public void TestAsGuid() { var guid = Guid.NewGuid(); BsonValue v = guid; BsonValue s = ""; var g = v.AsGuid; Assert.Equal(guid, g); Assert.Throws<InvalidCastException>(() => { var x = s.AsGuid; }); } [Fact] public void TestAsInt32() { BsonValue v = 1; BsonValue s = ""; var i = v.AsInt32; Assert.Equal(1, i); Assert.Throws<InvalidCastException>(() => { var x = s.AsInt32; }); } [Fact] public void TestAsInt64() { BsonValue v = 1L; BsonValue s = ""; var i = v.AsInt64; Assert.Equal(1L, i); Assert.Throws<InvalidCastException>(() => { var x = s.AsInt64; }); } [Fact] public void TestAsNullableBoolean() { BsonValue v = true; BsonValue n = BsonNull.Value; BsonValue s = ""; Assert.Equal(true, v.AsNullableBoolean); Assert.Equal(null, n.AsNullableBoolean); Assert.Throws<InvalidCastException>(() => { var x = s.AsNullableBoolean; }); } [Fact] public void TestAsNullableDateTime() { var utcNow = DateTime.UtcNow; var utcNowTruncated = utcNow.AddTicks(-(utcNow.Ticks % 10000)); BsonValue v = utcNow; BsonValue n = BsonNull.Value; BsonValue s = ""; Assert.Equal(utcNowTruncated, v.ToNullableUniversalTime()); Assert.Equal(null, n.ToNullableUniversalTime()); #pragma warning disable 618 Assert.Throws<InvalidCastException>(() => { var x = s.AsNullableDateTime; }); #pragma warning restore Assert.Throws<NotSupportedException>(() => s.ToNullableUniversalTime()); } [Fact] public void TestAsNullableDouble() { BsonValue v = 1.5; BsonValue n = BsonNull.Value; BsonValue s = ""; Assert.Equal(1.5, v.AsNullableDouble); Assert.Equal(null, n.AsNullableDouble); Assert.Throws<InvalidCastException>(() => { var x = s.AsNullableDouble; }); } [Fact] public void TestAsNullableGuid() { Guid guid = Guid.NewGuid(); BsonValue v = guid; BsonValue n = BsonNull.Value; BsonValue s = ""; Assert.Equal(guid, v.AsNullableGuid); Assert.Equal(null, n.AsNullableGuid); Assert.Throws<InvalidCastException>(() => { var x = s.AsNullableGuid; }); } [Fact] public void TestAsNullableInt32() { BsonValue v = 1; BsonValue n = BsonNull.Value; BsonValue s = ""; Assert.Equal(1, v.AsNullableInt32); Assert.Equal(null, n.AsNullableInt32); Assert.Throws<InvalidCastException>(() => { var x = s.AsNullableInt32; }); } [Fact] public void TestAsNullableInt64() { BsonValue v = 1L; BsonValue n = BsonNull.Value; BsonValue s = ""; Assert.Equal(1L, v.AsNullableInt64); Assert.Equal(null, n.AsNullableInt64); Assert.Throws<InvalidCastException>(() => { var x = s.AsNullableInt64; }); } [Fact] public void TestAsNullableObjectId() { var objectId = ObjectId.GenerateNewId(); BsonValue v = objectId; BsonValue n = BsonNull.Value; BsonValue s = ""; Assert.Equal(objectId, v.AsNullableObjectId); Assert.Equal(null, n.AsNullableObjectId); Assert.Throws<InvalidCastException>(() => { var x = s.AsNullableObjectId; }); } [Fact] public void TestAsObjectId() { var objectId = ObjectId.GenerateNewId(); BsonValue v = objectId; BsonValue s = ""; var o = v.AsObjectId; Assert.Equal(objectId, o); Assert.Throws<InvalidCastException>(() => { var x = s.AsObjectId; }); } [Fact] public void TestAsRegexOptionNone() { BsonValue v = new BsonRegularExpression("xyz"); BsonValue s = ""; var r = v.AsRegex; Assert.Equal(RegexOptions.None, r.Options); Assert.Throws<InvalidCastException>(() => { var x = s.AsRegex; }); } [Fact] public void TestAsRegexOptionAll() { BsonValue v = new BsonRegularExpression("xyz", "imxs"); BsonValue s = ""; var r = v.AsRegex; Assert.Equal(RegexOptions.IgnoreCase | RegexOptions.Multiline | RegexOptions.IgnorePatternWhitespace | RegexOptions.Singleline, r.Options); Assert.Throws<InvalidCastException>(() => { var x = s.AsRegex; }); } [Fact] public void TestAsRegexOptionI() { BsonValue v = new BsonRegularExpression("xyz", "i"); BsonValue s = ""; var r = v.AsRegex; Assert.Equal(RegexOptions.IgnoreCase, r.Options); Assert.Throws<InvalidCastException>(() => { var x = s.AsRegex; }); } [Fact] public void TestAsRegexOptionM() { BsonValue v = new BsonRegularExpression("xyz", "m"); BsonValue s = ""; var r = v.AsRegex; Assert.Equal(RegexOptions.Multiline, r.Options); Assert.Throws<InvalidCastException>(() => { var x = s.AsRegex; }); } [Fact] public void TestAsRegexOptionX() { BsonValue v = new BsonRegularExpression("xyz", "x"); BsonValue s = ""; var r = v.AsRegex; Assert.Equal(RegexOptions.IgnorePatternWhitespace, r.Options); Assert.Throws<InvalidCastException>(() => { var x = s.AsRegex; }); } [Fact] public void TestAsRegexOptionS() { BsonValue v = new BsonRegularExpression("xyz", "s"); BsonValue s = ""; var r = v.AsRegex; Assert.Equal(RegexOptions.Singleline, r.Options); Assert.Throws<InvalidCastException>(() => { var x = s.AsRegex; }); } [Fact] public void TestAsString() { BsonValue v = "Hello"; BsonValue i = 1; var s = v.AsString; Assert.Equal("Hello", s); Assert.Throws<InvalidCastException>(() => { var x = i.AsString; }); } [Fact] public void TestBsonRegularExpressionConstructors() { var regex = new BsonRegularExpression("pattern"); Assert.IsType<BsonRegularExpression>(regex); Assert.Equal("pattern", regex.Pattern); Assert.Equal("", regex.Options); regex = new BsonRegularExpression("/pattern/i"); Assert.IsType<BsonRegularExpression>(regex); Assert.Equal("pattern", regex.Pattern); Assert.Equal("i", regex.Options); regex = new BsonRegularExpression(@"/pattern\/withslash/i"); Assert.IsType<BsonRegularExpression>(regex); Assert.Equal("pattern/withslash", regex.Pattern); Assert.Equal("i", regex.Options); regex = new BsonRegularExpression("pattern", "i"); Assert.IsType<BsonRegularExpression>(regex); Assert.Equal("pattern", regex.Pattern); Assert.Equal("i", regex.Options); regex = new BsonRegularExpression(new Regex("pattern")); Assert.IsType<BsonRegularExpression>(regex); Assert.Equal("pattern", regex.Pattern); Assert.Equal("", regex.Options); regex = new BsonRegularExpression(new Regex("pattern", RegexOptions.IgnoreCase | RegexOptions.Multiline | RegexOptions.IgnorePatternWhitespace | RegexOptions.Singleline)); Assert.IsType<BsonRegularExpression>(regex); Assert.Equal("pattern", regex.Pattern); Assert.Equal("imxs", regex.Options); regex = new BsonRegularExpression(new Regex("pattern", RegexOptions.IgnoreCase)); Assert.IsType<BsonRegularExpression>(regex); Assert.Equal("pattern", regex.Pattern); Assert.Equal("i", regex.Options); regex = new BsonRegularExpression(new Regex("pattern", RegexOptions.Multiline)); Assert.IsType<BsonRegularExpression>(regex); Assert.Equal("pattern", regex.Pattern); Assert.Equal("m", regex.Options); regex = new BsonRegularExpression(new Regex("pattern", RegexOptions.IgnorePatternWhitespace)); Assert.IsType<BsonRegularExpression>(regex); Assert.Equal("pattern", regex.Pattern); Assert.Equal("x", regex.Options); regex = new BsonRegularExpression(new Regex("pattern", RegexOptions.Singleline)); Assert.IsType<BsonRegularExpression>(regex); Assert.Equal("pattern", regex.Pattern); Assert.Equal("s", regex.Options); } [Fact] public void TestBsonValueEqualsFalse() { BsonValue a = false; Assert.True(a == false); Assert.False(a != false); Assert.False(a == true); Assert.True(a != true); } [Fact] public void TestBsonValueEqualsTrue() { BsonValue a = true; Assert.True(a == true); Assert.False(a != true); Assert.False(a == false); Assert.True(a != false); } [Fact] public void TestBsonValueEqualsDouble() { BsonValue a = 1; Assert.True(a == 1.0); Assert.False(a != 1.0); Assert.False(a == 2.0); Assert.True(a != 2.0); } [Fact] public void TestBsonValueEqualsInt32() { BsonValue a = 1; Assert.True(a == 1); Assert.False(a != 1); Assert.False(a == 2); Assert.True(a != 2); } [Fact] public void TestBsonValueEqualsInt64() { BsonValue a = 1; Assert.True(a == 1); Assert.False(a != 1); Assert.False(a == 2); Assert.True(a != 2); } [Fact] public void TestCreateNull() { object obj = null; Assert.Same(BsonNull.Value, BsonValue.Create(obj)); } [Fact] public void TestImplicitConversionFromBoolean() { BsonValue v = true; Assert.IsType<BsonBoolean>(v); var b = (BsonBoolean)v; Assert.Equal(true, b.Value); } [Fact] public void TestImplicitConversionFromByteArray() { BsonValue v = new byte[] { 1, 2 }; BsonValue n = (byte[])null; Assert.IsType<BsonBinaryData>(v); Assert.Null(n); var b = (BsonBinaryData)v; Assert.Equal(BsonBinarySubType.Binary, b.SubType); Assert.Equal(1, b.AsByteArray[0]); Assert.Equal(2, b.AsByteArray[1]); } [Fact] public void TestImplicitConversionFromDateTime() { var utcNow = DateTime.UtcNow; var utcNowTruncated = utcNow.AddTicks(-(utcNow.Ticks % 10000)); BsonValue v = utcNow; Assert.IsType<BsonDateTime>(v); var dt = (BsonDateTime)v; Assert.Equal(utcNowTruncated, dt.ToUniversalTime()); } [Fact] public void TestImplicitConversionFromDouble() { BsonValue v = 1.5; Assert.IsType<BsonDouble>(v); var d = (BsonDouble)v; Assert.Equal(1.5, d.Value); } [Fact] public void TestImplicitConversionFromGuid() { var guid = Guid.NewGuid(); BsonValue v = guid; Assert.IsType<BsonBinaryData>(v); var b = (BsonBinaryData)v; Assert.True(guid.ToByteArray().SequenceEqual(b.AsByteArray)); Assert.Equal(BsonBinarySubType.UuidLegacy, b.SubType); } [Fact] public void TestImplicitConversionFromInt16Enum() { BsonValue v = Int16Enum.A; Assert.IsType<BsonInt32>(v); var n = (BsonInt32)v; Assert.Equal((int)Int16Enum.A, n.Value); } [Fact] public void TestImplicitConversionFromInt32() { BsonValue v = 1; Assert.IsType<BsonInt32>(v); var i = (BsonInt32)v; Assert.Equal(1, i.Value); } [Fact] public void TestImplicitConversionFromInt32Enum() { BsonValue v = Int32Enum.A; Assert.IsType<BsonInt32>(v); var n = (BsonInt32)v; Assert.Equal((int)Int32Enum.A, n.Value); } [Fact] public void TestImplicitConversionFromInt64() { BsonValue v = 1L; Assert.IsType<BsonInt64>(v); var i = (BsonInt64)v; Assert.Equal(1L, i.Value); } [Fact] public void TestImplicitConversionFromInt64Enum() { BsonValue v = Int64Enum.A; Assert.IsType<BsonInt64>(v); var n = (BsonInt64)v; Assert.Equal((int)Int64Enum.A, n.Value); } [Fact] public void TestImplicitConversionFromNullableBoolean() { BsonValue v = (bool?)true; BsonValue n = (bool?)null; Assert.IsType<BsonBoolean>(v); Assert.IsType<BsonNull>(n); var b = (BsonBoolean)v; Assert.Equal(true, b.Value); } [Fact] public void TestImplicitConversionFromNullableDateTime() { var utcNow = DateTime.UtcNow; var utcNowTruncated = utcNow.AddTicks(-(utcNow.Ticks % 10000)); BsonValue v = (DateTime?)utcNow; BsonValue n = (DateTime?)null; Assert.IsType<BsonDateTime>(v); Assert.IsType<BsonNull>(n); var dt = (BsonDateTime)v; Assert.Equal(utcNowTruncated, dt.ToUniversalTime()); } [Fact] public void TestImplicitConversionFromNullableDouble() { BsonValue v = (double?)1.5; BsonValue n = (double?)null; Assert.IsType<BsonDouble>(v); Assert.IsType<BsonNull>(n); var d = (BsonDouble)v; Assert.Equal(1.5, d.Value); } [Fact] public void TestImplicitConversionFromNullableGuid() { var guid = Guid.NewGuid(); BsonValue v = (Guid?)guid; BsonValue n = (Guid?)null; Assert.IsType<BsonBinaryData>(v); Assert.IsType<BsonNull>(n); var b = (BsonBinaryData)v; Assert.True(guid.ToByteArray().SequenceEqual(b.AsByteArray)); Assert.Equal(BsonBinarySubType.UuidLegacy, b.SubType); } [Fact] public void TestImplicitConversionFromNullableInt32() { BsonValue v = (int?)1; BsonValue n = (int?)null; Assert.IsType<BsonInt32>(v); Assert.IsType<BsonNull>(n); var i = (BsonInt32)v; Assert.Equal(1, i.Value); } [Fact] public void TestImplicitConversionFromNullableInt64() { BsonValue v = (long?)1L; BsonValue n = (long?)null; Assert.IsType<BsonInt64>(v); Assert.IsType<BsonNull>(n); var i = (BsonInt64)v; Assert.Equal(1, i.Value); } [Fact] public void TestImplicitConversionFromNullableObjectId() { var objectId = ObjectId.GenerateNewId(); BsonValue v = objectId; BsonValue n = (Guid?)null; Assert.IsType<BsonObjectId>(v); Assert.IsType<BsonNull>(n); var o = (BsonObjectId)v; Assert.Equal(objectId, o.Value); } [Fact] public void TestImplicitConversionFromObjectId() { var objectId = ObjectId.GenerateNewId(); BsonValue v = objectId; Assert.IsType<BsonObjectId>(v); var o = (BsonObjectId)v; Assert.Equal(objectId, o.Value); } [Fact] public void TestImplicitConversionFromRegexOptionNone() { BsonValue v = new Regex("xyz"); BsonValue n = (Regex)null; Assert.IsType<BsonRegularExpression>(v); Assert.Null(n); var r = (BsonRegularExpression)v; Assert.Equal("xyz", r.Pattern); Assert.Equal("", r.Options); } [Fact] public void TestImplicitConversionFromRegexOptionAll() { BsonValue v = new Regex("xyz", RegexOptions.IgnoreCase | RegexOptions.Multiline | RegexOptions.IgnorePatternWhitespace | RegexOptions.Singleline); BsonValue n = (Regex)null; Assert.IsType<BsonRegularExpression>(v); Assert.Null(n); var r = (BsonRegularExpression)v; Assert.Equal("xyz", r.Pattern); Assert.Equal("imxs", r.Options); } [Fact] public void TestImplicitConversionFromRegexOptionI() { BsonValue v = new Regex("xyz", RegexOptions.IgnoreCase); BsonValue n = (Regex)null; Assert.IsType<BsonRegularExpression>(v); Assert.Null(n); var r = (BsonRegularExpression)v; Assert.Equal("xyz", r.Pattern); Assert.Equal("i", r.Options); } [Fact] public void TestImplicitConversionFromRegexOptionM() { BsonValue v = new Regex("xyz", RegexOptions.Multiline); BsonValue n = (Regex)null; Assert.IsType<BsonRegularExpression>(v); Assert.Null(n); var r = (BsonRegularExpression)v; Assert.Equal("xyz", r.Pattern); Assert.Equal("m", r.Options); } [Fact] public void TestImplicitConversionFromRegexOptionX() { BsonValue v = new Regex("xyz", RegexOptions.IgnorePatternWhitespace); BsonValue n = (Regex)null; Assert.IsType<BsonRegularExpression>(v); Assert.Null(n); var r = (BsonRegularExpression)v; Assert.Equal("xyz", r.Pattern); Assert.Equal("x", r.Options); } [Fact] public void TestImplicitConversionFromRegexOptionS() { BsonValue v = new Regex("xyz", RegexOptions.Singleline); BsonValue n = (Regex)null; Assert.IsType<BsonRegularExpression>(v); Assert.Null(n); var r = (BsonRegularExpression)v; Assert.Equal("xyz", r.Pattern); Assert.Equal("s", r.Options); } [Fact] public void TestImplicitConversionFromString() { BsonValue v = "xyz"; BsonValue n = (string)null; Assert.IsType<BsonString>(v); Assert.Null(n); var s = (BsonString)v; Assert.Equal("xyz", s.Value); } // nested types public enum Int16Enum : short { A = 1, B } public enum Int32Enum { A = 1, B } public enum Int64Enum : long { A = 1, B } } }
32.69426
183
0.535296
[ "Apache-2.0" ]
joeenzminger/mongo-csharp-driver
tests/MongoDB.Bson.Tests/ObjectModel/BsonValueTests.cs
29,623
C#
//----------------------------------------------------------------------- // <copyright file="Customer.cs" company="Marimer LLC"> // Copyright (c) Marimer LLC. All rights reserved. // Website: https://cslanet.com // </copyright> // <summary>no summary</summary> //----------------------------------------------------------------------- using System; using System.Collections.Generic; using System.Linq; using System.Text; using Csla; using Csla.Security; using Csla.Core; using Csla.Serialization; namespace Csla.Test.CslaDataProvider { [Serializable] public class Customer : BusinessBase<Customer> { const int customerIDThrowsException = 99; private Customer() { } internal static Customer NewCustomer() { var returnValue = new Customer(); returnValue.Name = "New"; return returnValue; } private static PropertyInfo<int> IdProperty = RegisterProperty<int>(c => c.Id, "Customer Id", 0); public int Id { get { return GetProperty<int>(IdProperty); } set { SetProperty<int>(IdProperty, value); } } private static PropertyInfo<string> NameProperty = RegisterProperty<string>(c => c.Name, "Customer Name", ""); public string Name { get { return GetProperty<string>(NameProperty); } set { SetProperty<string>(NameProperty, value); } } private static PropertyInfo<string> MethodProperty = RegisterProperty<string>(c => c.Method, "Method", ""); public string Method { get { return GetProperty<string>(MethodProperty); } set { SetProperty<string>(MethodProperty, value); } } private static PropertyInfo<Csla.SmartDate> DateCreatedProperty = RegisterProperty<Csla.SmartDate>(c => c.DateCreated, "Date Created On"); public string DateCreated { get { return GetProperty<Csla.SmartDate>(DateCreatedProperty).Text; } set { Csla.SmartDate test = new Csla.SmartDate(); if (Csla.SmartDate.TryParse(value, ref test) == true) { SetProperty<Csla.SmartDate>(DateCreatedProperty, test); } } } private static PropertyInfo<bool> ThrowExceptionProperty = RegisterProperty<bool>(c => c.ThrowException, "ThrowException", false); public bool ThrowException { get { return GetProperty<bool>(ThrowExceptionProperty); } set { LoadProperty<bool>(ThrowExceptionProperty, value); } } protected override void AddBusinessRules() { BusinessRules.AddRule(new Csla.Rules.CommonRules.MinValue<int>(IdProperty, 1)); } [Serializable()] public class FetchCriteria : CriteriaBase<FetchCriteria> { public FetchCriteria() { } public FetchCriteria(int customerID) { _customerId = customerID; } private int _customerId; public int CustomerID { get { return _customerId; } } protected override void OnGetState(Csla.Serialization.Mobile.SerializationInfo info, StateMode mode) { base.OnGetState(info, mode); info.AddValue("_customerId", _customerId); } protected override void OnSetState(Csla.Serialization.Mobile.SerializationInfo info, StateMode mode) { base.OnSetState(info, mode); _customerId = info.GetValue<int>("_customerId"); } } internal static Customer GetCustomer(int customerID) { Customer newCustomer = new Customer(); newCustomer.DataPortal_Fetch(customerID); newCustomer.MarkOld(); return newCustomer; } protected void DataPortal_Fetch(int criteria) { LoadProperty(IdProperty, criteria); LoadProperty(NameProperty, "Customer Name for Id: " + criteria.ToString()); LoadProperty(DateCreatedProperty, new Csla.SmartDate(new DateTime(2000 + criteria, 1, 1))); if (criteria == customerIDThrowsException) throw new ApplicationException("Test Error!"); } protected void DataPortal_Create(int criteria) { LoadProperty(IdProperty, criteria); LoadProperty(NameProperty, "New Customer for Id: " + criteria.ToString()); LoadProperty(DateCreatedProperty, new Csla.SmartDate(DateTime.Today)); } protected override void DataPortal_DeleteSelf() { Method = "Deleted Customer " + GetProperty<string>(NameProperty); } protected void DataPortal_Delete(int criteria) { Method = "Deleted Customer ID " + criteria.ToString(); } protected override void DataPortal_Insert() { Method = "Inserted Customer " + GetProperty<string>(NameProperty); } protected override void DataPortal_Update() { Method = "Updating Customer " + GetProperty<string>(NameProperty); } } }
25.837696
142
0.621277
[ "MIT" ]
Alstig/csla
Source/Csla.test/CslaDataProvider/Customer.cs
4,937
C#
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System.Collections.Generic; using System.Reflection; using Xunit; namespace System.Linq.Expressions.Tests { public class GeneralBinaryTests { private static readonly ExpressionType[] BinaryTypes = { ExpressionType.Add, ExpressionType.AddChecked, ExpressionType.Subtract, ExpressionType.SubtractChecked, ExpressionType.Multiply, ExpressionType.MultiplyChecked, ExpressionType.Divide, ExpressionType.Modulo, ExpressionType.Power, ExpressionType.And, ExpressionType.AndAlso, ExpressionType.Or, ExpressionType.OrElse, ExpressionType.LessThan, ExpressionType.LessThanOrEqual, ExpressionType.GreaterThan, ExpressionType.GreaterThanOrEqual, ExpressionType.Equal, ExpressionType.NotEqual, ExpressionType.ExclusiveOr, ExpressionType.Coalesce, ExpressionType.ArrayIndex, ExpressionType.RightShift, ExpressionType.LeftShift, ExpressionType.Assign, ExpressionType.AddAssign, ExpressionType.AndAssign, ExpressionType.DivideAssign, ExpressionType.ExclusiveOrAssign, ExpressionType.LeftShiftAssign, ExpressionType.ModuloAssign, ExpressionType.MultiplyAssign, ExpressionType.OrAssign, ExpressionType.PowerAssign, ExpressionType.RightShiftAssign, ExpressionType.SubtractAssign, ExpressionType.AddAssignChecked, ExpressionType.SubtractAssignChecked, ExpressionType.MultiplyAssignChecked }; public static IEnumerable<object[]> NonConversionBinaryTypesAndValues { get { yield return new object[] {ExpressionType.Add, 0, 0}; yield return new object[] {ExpressionType.AddChecked, 0, 0}; yield return new object[] {ExpressionType.Subtract, 0, 0}; yield return new object[] {ExpressionType.SubtractChecked, 0, 0}; yield return new object[] {ExpressionType.Multiply, 0, 0}; yield return new object[] {ExpressionType.MultiplyChecked, 0, 0}; yield return new object[] {ExpressionType.Divide, 0, 1}; yield return new object[] {ExpressionType.Modulo, 0, 2}; yield return new object[] {ExpressionType.Power, 1.0, 1.0}; yield return new object[] {ExpressionType.And, 0, 0}; yield return new object[] {ExpressionType.AndAlso, false, false}; yield return new object[] {ExpressionType.Or, 0, 0}; yield return new object[] {ExpressionType.OrElse, false, false}; yield return new object[] {ExpressionType.LessThan, 0, 0}; yield return new object[] {ExpressionType.LessThanOrEqual, 0, 0}; yield return new object[] {ExpressionType.GreaterThan, 0, 0}; yield return new object[] {ExpressionType.GreaterThanOrEqual, 0, 0}; yield return new object[] {ExpressionType.Equal, 0, 0}; yield return new object[] {ExpressionType.NotEqual, 0, 0}; yield return new object[] {ExpressionType.ExclusiveOr, false, false}; yield return new object[] {ExpressionType.ArrayIndex, new int[1], 0}; yield return new object[] {ExpressionType.RightShift, 0, 0}; yield return new object[] {ExpressionType.LeftShift, 0, 0}; } } public static IEnumerable<object[]> NumericMethodAllowedBinaryTypesAndValues { get { yield return new object[] {ExpressionType.Add}; yield return new object[] {ExpressionType.AddChecked}; yield return new object[] {ExpressionType.AddAssign}; yield return new object[] {ExpressionType.AddAssignChecked}; yield return new object[] {ExpressionType.Subtract}; yield return new object[] {ExpressionType.SubtractChecked}; yield return new object[] {ExpressionType.SubtractAssign}; yield return new object[] {ExpressionType.SubtractAssignChecked}; yield return new object[] {ExpressionType.Multiply}; yield return new object[] {ExpressionType.MultiplyChecked}; yield return new object[] {ExpressionType.MultiplyAssign}; yield return new object[] {ExpressionType.MultiplyAssignChecked}; yield return new object[] {ExpressionType.Divide}; yield return new object[] {ExpressionType.DivideAssign}; yield return new object[] {ExpressionType.Modulo}; yield return new object[] {ExpressionType.ModuloAssign}; yield return new object[] {ExpressionType.Power}; yield return new object[] {ExpressionType.PowerAssign}; yield return new object[] {ExpressionType.And}; yield return new object[] {ExpressionType.AndAssign}; yield return new object[] {ExpressionType.Or}; yield return new object[] {ExpressionType.OrAssign}; yield return new object[] {ExpressionType.LessThan}; yield return new object[] {ExpressionType.LessThanOrEqual}; yield return new object[] {ExpressionType.GreaterThan}; yield return new object[] {ExpressionType.GreaterThanOrEqual}; yield return new object[] {ExpressionType.Equal}; yield return new object[] {ExpressionType.NotEqual}; yield return new object[] {ExpressionType.ExclusiveOr}; yield return new object[] {ExpressionType.ExclusiveOrAssign}; yield return new object[] {ExpressionType.RightShift}; yield return new object[] {ExpressionType.RightShiftAssign}; yield return new object[] {ExpressionType.LeftShift}; yield return new object[] {ExpressionType.LeftShiftAssign}; } } public static IEnumerable<object[]> BooleanMethodAllowedBinaryTypesAndValues { get { yield return new object[] {ExpressionType.AndAlso}; yield return new object[] {ExpressionType.OrElse}; } } public static IEnumerable<object[]> BinaryTypesData() { return BinaryTypes.Select(i => new object[] { i }); } private static ExpressionType[] NonBinaryTypes = ((ExpressionType[])Enum.GetValues(typeof(ExpressionType))) .Except(BinaryTypes) .ToArray(); public static IEnumerable<ExpressionType> NonBinaryTypesIncludingInvalid = NonBinaryTypes.Concat(Enumerable.Repeat((ExpressionType)(-1), 1)); public static IEnumerable<object[]> NonBinaryTypesIncludingInvalidData() { return NonBinaryTypesIncludingInvalid.Select(i => new object[] { i }); } [Theory] [MemberData(nameof(NonBinaryTypesIncludingInvalidData))] public void MakeBinaryInvalidType(ExpressionType type) { AssertExtensions.Throws<ArgumentException>("binaryType", () => Expression.MakeBinary(type, Expression.Constant(0), Expression.Constant(0))); AssertExtensions.Throws<ArgumentException>("binaryType", () => Expression.MakeBinary(type, Expression.Constant(0), Expression.Constant(0), false, null)); AssertExtensions.Throws<ArgumentException>("binaryType", () => Expression.MakeBinary(type, Expression.Constant(0), Expression.Constant(0), false, null, null)); } [Theory] [MemberData(nameof(BinaryTypesData))] public void MakeBinaryLeftNull(ExpressionType type) { Assert.Throws<ArgumentNullException>(() => Expression.MakeBinary(type, null, Expression.Constant(0))); Assert.Throws<ArgumentNullException>(() => Expression.MakeBinary(type, null, Expression.Constant(0), false, null)); Assert.Throws<ArgumentNullException>(() => Expression.MakeBinary(type, null, Expression.Constant(0), false, null, null)); } [Theory] [MemberData(nameof(BinaryTypesData))] public void MakeBinaryRightNull(ExpressionType type) { Assert.Throws<ArgumentNullException>(() => Expression.MakeBinary(type, Expression.Variable(typeof(object)), null)); Assert.Throws<ArgumentNullException>(() => Expression.MakeBinary(type, Expression.Variable(typeof(object)), null, false, null)); Assert.Throws<ArgumentNullException>(() => Expression.MakeBinary(type, Expression.Variable(typeof(object)), null, false, null, null)); } internal static void CompileBinaryExpression(BinaryExpression expression, bool useInterpreter, bool expected) { Expression<Func<bool>> e = Expression.Lambda<Func<bool>>(expression, Enumerable.Empty<ParameterExpression>()); Func<bool> f = e.Compile(useInterpreter); Assert.Equal(expected, f()); } internal static bool CustomEquals(object a, object b) { // Allow for NaN if (a is double && b is double) { return (double)a == (double)b; } else if (a is float && b is float) { return (float)a == (float)b; } return a == null ? b == null : a.Equals(b); } public static bool CustomGreaterThan(object a, object b) { if (a is byte && b is byte) { return (byte)a > (byte)b; } else if (a is char && b is char) { return (char)a > (char)b; } else if (a is decimal && b is decimal) { return (decimal)a > (decimal)b; } else if (a is double && b is double) { return (double)a > (double)b; } else if (a is float && b is float) { return (float)a > (float)b; } else if (a is int && b is int) { return (int)a > (int)b; } else if (a is long && b is long) { return (long)a > (long)b; } else if (a is sbyte && b is sbyte) { return (sbyte)a > (sbyte)b; } else if (a is short && b is short) { return (short)a > (short)b; } else if (a is uint && b is uint) { return (uint)a > (uint)b; } else if (a is ulong && b is ulong) { return (ulong)a > (ulong)b; } else if (a is ushort && b is ushort) { return (ushort)a > (ushort)b; } return false; } public static bool CustomLessThan(object a, object b) => BothNotNull(a, b) && !IsNaN(a) && !IsNaN(b) && !CustomGreaterThanOrEqual(a, b); public static bool CustomGreaterThanOrEqual(object a, object b) => BothNotNull(a, b) && CustomEquals(a, b) || CustomGreaterThan(a, b); public static bool CustomLessThanOrEqual(object a, object b) => BothNotNull(a, b) && CustomEquals(a, b) || CustomLessThan(a, b); public static bool IsNaN(object obj) { if (obj is double) { return double.IsNaN((double)obj); } else if (obj is float) { return float.IsNaN((float)obj); } return false; } public static bool BothNotNull(object a, object b) => a != null && b != null; [Theory, PerCompilationType(nameof(NonConversionBinaryTypesAndValues))] public static void ConversionIgnoredWhenIrrelevant( ExpressionType type, object lhs, object rhs, bool useInterpreter) { // The types of binary expression that can't have a converter just ignore any lambda // passed in. This probably shouldn't be the case (an ArgumentException would be // appropriate, but it would be a breaking change to stop this now. Expression<Action> sillyLambda = Expression.Lambda<Action>(Expression.Throw(Expression.Constant(new Exception()))); BinaryExpression op = Expression.MakeBinary( type, Expression.Constant(lhs), Expression.Constant(rhs), false, null, sillyLambda); Expression.Lambda(op).Compile(useInterpreter).DynamicInvoke(); } private class GenericClassWithNonGenericMethod<TClassType> { public static int DoIntStuff(int x, int y) => unchecked(x + y); public static GenericClassWithNonGenericMethod<TClassType> DoBooleanStuff(GenericClassWithNonGenericMethod<TClassType> x, GenericClassWithNonGenericMethod<TClassType> y) => x; public static bool operator true(GenericClassWithNonGenericMethod<TClassType> obj) => true; public static bool operator false(GenericClassWithNonGenericMethod<TClassType> obj) => false; } [Theory, PerCompilationType(nameof(NumericMethodAllowedBinaryTypesAndValues))] public static void MethodOfOpenGeneric(ExpressionType type, bool useInterpreter) { ParameterExpression left = Expression.Parameter(typeof(int)); ConstantExpression right = Expression.Constant(2); var genType = typeof(GenericClassWithNonGenericMethod<>); MethodInfo method = genType.GetMethod(nameof(GenericClassWithNonGenericMethod<int>.DoIntStuff)); AssertExtensions.Throws<ArgumentException>("method", () => Expression.MakeBinary(type, left, right, false, method)); method = genType.MakeGenericType(genType).GetMethod(nameof(GenericClassWithNonGenericMethod<int>.DoIntStuff)); AssertExtensions.Throws<ArgumentException>("method", () => Expression.MakeBinary(type, left, right, false, method)); // Confirm does work when closed. var validType = typeof(GenericClassWithNonGenericMethod<int>); method = validType.GetMethod(nameof(GenericClassWithNonGenericMethod<int>.DoIntStuff)); Expression exp = Expression.MakeBinary(type, left, right, false, method); Func<int, int> f = Expression.Lambda<Func<int, int>>(exp, left).Compile(useInterpreter); Assert.Equal(5, f(3)); } [Theory, PerCompilationType(nameof(BooleanMethodAllowedBinaryTypesAndValues))] public static void MethodOfOpenGenericBoolean(ExpressionType type, bool useInterpreter) { GenericClassWithNonGenericMethod<bool> value = new GenericClassWithNonGenericMethod<bool>(); ConstantExpression left = Expression.Constant(value); ConstantExpression right = Expression.Constant(new GenericClassWithNonGenericMethod<bool>()); var genType = typeof(GenericClassWithNonGenericMethod<>); MethodInfo method = genType.GetMethod(nameof(GenericClassWithNonGenericMethod<bool>.DoBooleanStuff)); AssertExtensions.Throws<ArgumentException>("method", () => Expression.MakeBinary(type, left, right, false, method)); method = genType.MakeGenericType(genType).GetMethod(nameof(GenericClassWithNonGenericMethod<int>.DoIntStuff)); AssertExtensions.Throws<ArgumentException>("method", () => Expression.MakeBinary(type, left, right, false, method)); // Confirm does work when closed. var validType = typeof(GenericClassWithNonGenericMethod<bool>); method = validType.GetMethod(nameof(GenericClassWithNonGenericMethod<bool>.DoBooleanStuff)); Expression exp = Expression.MakeBinary(type, left, right, false, method); Func<GenericClassWithNonGenericMethod<bool>> f = Expression.Lambda<Func<GenericClassWithNonGenericMethod<bool>>>(exp).Compile(useInterpreter); Assert.Same(value, f()); } } }
52.40836
187
0.625253
[ "MIT" ]
06needhamt/runtime
src/libraries/System.Linq.Expressions/tests/BinaryOperators/GeneralBinaryTests.cs
16,299
C#
// In Initialize AddForex("EURUSD", Resolution.Minute); // or AddForex("EURUSD", Resolution.Minute, Market.FXCM); // For OANDA, we need to explictly define the market AddForex("EURUSD", Resolution.Minute, Market.Oanda);
37
52
0.743243
[ "Apache-2.0" ]
Jay-Jay-D/Documentation
03 Asset Classes/02 Forex/01 Forex/01 code.cs
222
C#
//Problem 7. Sort 3 Numbers with Nested Ifs //Write a program that enters 3 real numbers and prints them sorted in descending order. //Use nested if statements. //Note: Don’t use arrays and the built-in sorting functionality. //Examples: //a b c result //5 1 2 5 2 1 //-2 -2 1 1 -2 -2 //-2 4 3 4 3 -2 //0 -2.5 5 5 0 -2.5 //-1.1 -0.5 -0.1 -0.1 -0.5 -1.1 //10 20 30 30 20 10 //1 1 1 1 1 1 using System; class SortThreeNumbers { static void Main() { string task = "Problem 7. Sort 3 Numbers with Nested Ifs\n\nWrite a program that enters 3 real numbers and prints them sorted in descending order.\nUse nested if statements.\nNote: Don’t use arrays and the built-in sorting functionality.\nExamples:\na b c result\n5 1 2 5 2 1\n-2 -2 1 1 -2 -2\n-2 4 3 4 3 -2\n0 -2.5 5 5 0 -2.5\n-1.1 -0.5 -0.1 -0.1 -0.5 -1.1\n10 20 30 30 20 10\n1 1 1 1 1 1\n"; string separator = new string('*', Console.WindowWidth); Console.WriteLine(task); Console.WriteLine(separator); Console.Write("Enter first number: "); double firstNumber = double.Parse(Console.ReadLine()); Console.Write("Enter second number: "); double secondNumber = double.Parse(Console.ReadLine()); Console.Write("Enter third number: "); double thirdNumber = double.Parse(Console.ReadLine()); if (firstNumber > secondNumber) { if (firstNumber > thirdNumber) { if (secondNumber > thirdNumber) { Console.WriteLine("{0} {1} {2}", firstNumber, secondNumber, thirdNumber); } else { Console.WriteLine("{0} {1} {2}", firstNumber, thirdNumber, secondNumber); } } else { Console.WriteLine("{0} {1} {2}", thirdNumber, firstNumber, secondNumber); } } else { if (secondNumber > thirdNumber) { if (firstNumber > thirdNumber) { Console.WriteLine("{0} {1} {2}", secondNumber, firstNumber, thirdNumber); } else { Console.WriteLine("{0} {1} {2}", secondNumber, thirdNumber, firstNumber); } } else { Console.WriteLine("{0} {1} {2}", thirdNumber, secondNumber, firstNumber); } } } }
27.61039
395
0.625118
[ "MIT" ]
SHAMMY1/Telerik-Academy
Homeworks/CSharpPartOne/05.ConditionalStatements/05.Conditional-Statements-HW/07.SortThreeNumbers/SortThreeNumbers.cs
2,132
C#
using System; using System.Collections.Concurrent; using System.Diagnostics; namespace CollectionViewPerformance.Helpers { public static class Profiler { const string Tag = "XFProfiler"; static readonly ConcurrentDictionary<string, Stopwatch> watches = new ConcurrentDictionary<string, Stopwatch>(); public static void Start(object view) { Start(view.GetType().Name); } public static void Start(string tag) { Console.WriteLine("{0}Starting Stopwatch {1}", Tag, tag); var watch = watches[tag] = new Stopwatch(); watch.Start(); } public static void Stop(string tag) { if (watches.TryRemove(tag, out Stopwatch watch)) { Console.WriteLine("{0}Stopwatch {1} took {2}", Tag, tag, watch.Elapsed); } } } }
27.029412
120
0.574538
[ "MIT" ]
jsuarezruiz/xamarin-forms-perf-playground
src/CollectionView/CollectionViewPerformance/CollectionViewPerformance/Helpers/Profiler.cs
921
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Identity; using Microsoft.EntityFrameworkCore; using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; using BookLibrary.Data; using BookLibrary.Models; using BookLibrary.Services; namespace BookLibrary { public class Startup { public Startup(IConfiguration configuration) { Configuration = configuration; } public IConfiguration Configuration { get; } // This method gets called by the runtime. Use this method to add services to the container. public void ConfigureServices(IServiceCollection services) { services.AddDbContext<ApplicationDbContext>(options => options.UseMySQL("server=localhost;database=asp_book_library;user=root;SslMode=none")); services.AddIdentity<ApplicationUser, IdentityRole>(options => { options.Password.RequiredLength = 1; options.Password.RequireLowercase = false; options.Password.RequireUppercase = false; options.Password.RequireNonAlphanumeric = false; options.Password.RequireDigit = false; }) .AddEntityFrameworkStores<ApplicationDbContext>() .AddDefaultTokenProviders(); // Add application services. services.AddTransient<IEmailSender, EmailSender>(); services.AddMvc(); } // This method gets called by the runtime. Use this method to configure the HTTP request pipeline. public void Configure(IApplicationBuilder app, IHostingEnvironment env) { if (env.IsDevelopment()) { app.UseBrowserLink(); app.UseDeveloperExceptionPage(); app.UseDatabaseErrorPage(); } else { app.UseExceptionHandler("/Home/Error"); } app.UseStaticFiles(); app.UseAuthentication(); app.UseMvc(routes => { routes.MapRoute( name: "default", template: "{controller=Home}/{action=Index}/{id?}"); }); } } }
32.052632
106
0.610837
[ "MIT" ]
EmORz/Book-Library
BookLibrary/BookLibrary/Startup.cs
2,438
C#
using System; using System.IO; using System.Linq; using System.Web; using Newtonsoft.Json; using Newtonsoft.Json.Linq; using System.Collections.Generic; namespace MakeIncremental { class Program { static void Main(string[] args) { if (args.Length < 1) { DisplayUsage(); return; } // Parsing arguments string input = ""; foreach (var arg in args) { var order = arg.Substring(0, 3); switch (order) { case "/i:": input = arg.Substring(3); break; default: DisplayUsage(); return; } } if (string.IsNullOrEmpty(input)) { DisplayUsage(); return; } ProcessSourceFile(input); } static void Extract(dynamic meshOrGeometry, string outputDir, string rootFilename, bool mesh = true) { Console.WriteLine("Extracting " + (mesh ? meshOrGeometry.name : meshOrGeometry.id)); if (meshOrGeometry.positions != null && meshOrGeometry.normals != null && meshOrGeometry.indices != null) { meshOrGeometry.delayLoadingFile = CreateDelayLoadingFile(meshOrGeometry, outputDir, rootFilename, mesh); Console.WriteLine("Delay loading file: " + meshOrGeometry.delayLoadingFile); // Compute bounding boxes var positions = ((JArray)meshOrGeometry.positions).Select(v => v.Value<float>()).ToArray(); var minimum = new[] { float.MaxValue, float.MaxValue, float.MaxValue }; var maximum = new[] { float.MinValue, float.MinValue, float.MinValue }; for (var index = 0; index < positions.Length; index += 3) { var x = positions[index]; var y = positions[index + 1]; var z = positions[index + 2]; if (x < minimum[0]) { minimum[0] = x; } if (x > maximum[0]) { maximum[0] = x; } if (y < minimum[1]) { minimum[1] = y; } if (y > maximum[1]) { maximum[1] = y; } if (z < minimum[2]) { minimum[2] = z; } if (z > maximum[2]) { maximum[2] = z; } } meshOrGeometry["boundingBoxMinimum"] = new JArray(minimum); meshOrGeometry["boundingBoxMaximum"] = new JArray(maximum); // Erasing infos meshOrGeometry.positions = null; meshOrGeometry.normals = null; meshOrGeometry.indices = null; if (meshOrGeometry.uvs != null) { meshOrGeometry["hasUVs"] = true; meshOrGeometry.uvs = null; } if (meshOrGeometry.uvs2 != null) { meshOrGeometry["hasUVs2"] = true; meshOrGeometry.uvs2 = null; } if (meshOrGeometry.colors != null) { meshOrGeometry["hasColors"] = true; meshOrGeometry.colors = null; } if (meshOrGeometry.matricesIndices != null) { meshOrGeometry["hasMatricesIndices"] = true; meshOrGeometry.matricesIndices = null; } if (meshOrGeometry.matricesWeights != null) { meshOrGeometry["hasMatricesWeights"] = true; meshOrGeometry.matricesWeights = null; } if (mesh && meshOrGeometry.subMeshes != null) { meshOrGeometry.subMeshes = null; } } } static string CreateDelayLoadingFile(dynamic meshOrGeometry, string outputDir, string rootFilename, bool mesh = true) { string encodedName; if(mesh) encodedName = meshOrGeometry.name.ToString(); else encodedName = meshOrGeometry.id.ToString(); encodedName = encodedName.Replace("+", "_").Replace(" ", "_"); var outputPath = Path.Combine(outputDir, rootFilename + "." + encodedName + (mesh ? ".babylonmeshdata" : ".babylongeometrydata")); var result = new JObject(); result["positions"] = meshOrGeometry.positions; result["indices"] = meshOrGeometry.indices; result["normals"] = meshOrGeometry.normals; if (meshOrGeometry.uvs != null) { result["uvs"] = meshOrGeometry.uvs; } if (meshOrGeometry.uvs2 != null) { result["uvs2"] = meshOrGeometry.uvs2; } if (meshOrGeometry.colors != null) { result["colors"] = meshOrGeometry.colors; } if (meshOrGeometry.matricesIndices != null) { result["matricesIndices"] = meshOrGeometry.matricesIndices; } if (meshOrGeometry.matricesWeights != null) { result["matricesWeights"] = meshOrGeometry.matricesWeights; } if (mesh && meshOrGeometry.subMeshes != null) { result["subMeshes"] = meshOrGeometry.subMeshes; } string json = result.ToString(Formatting.None); using (var writer = new StreamWriter(outputPath)) { writer.Write(json); } return HttpUtility.UrlEncode(Path.GetFileName(outputPath)); } static void ProcessSourceFile(string input) { try { dynamic scene; var outputDir = Path.GetDirectoryName(input); var rootFilename = Path.GetFileNameWithoutExtension(input); // Loading Console.ForegroundColor = ConsoleColor.Green; Console.WriteLine("Loading " + input); Console.WriteLine(); Console.ResetColor(); using (var streamReader = new StreamReader(input)) { using (var reader = new JsonTextReader(streamReader)) { scene = JObject.Load(reader); } } // Marking scene scene["autoClear"] = true; scene["useDelayedTextureLoading"] = true; var doNotDelayLoadingForGeometries = new List<string>(); // Parsing meshes var meshes = (JArray)scene.meshes; foreach (dynamic mesh in meshes) { if (mesh.checkCollisions.Value) // Do not delay load collisions object { if (mesh.geometryId != null) doNotDelayLoadingForGeometries.Add(mesh.geometryId.Value); continue; } Extract(mesh, outputDir, rootFilename); } // Parsing vertexData var geometries = scene.geometries; if (geometries != null) { var vertexData = (JArray)geometries.vertexData; foreach (dynamic geometry in vertexData) { var id = geometry.id.Value; if (doNotDelayLoadingForGeometries.Any(g => g == id)) continue; Extract(geometry, outputDir, rootFilename, false); } } // Saving var outputPath = Path.Combine(outputDir, rootFilename + ".incremental.babylon"); Console.ForegroundColor = ConsoleColor.Green; Console.WriteLine("Saving " + outputPath); string json = scene.ToString(Formatting.None); using (var writer = new StreamWriter(outputPath)) { writer.Write(json); } Console.WriteLine(); Console.ResetColor(); } catch (Exception ex) { Console.ForegroundColor = ConsoleColor.Red; Console.WriteLine("Fatal error encountered:"); Console.WriteLine(ex.Message); Console.ResetColor(); } } static void DisplayUsage() { Console.WriteLine("MakeIncremental usage: MakeIncremental.exe /i:\"source file\" [/textures]"); } } }
33.219081
142
0.456547
[ "Apache-2.0" ]
Chaseshak/RetroVRCade
Babylon.js-2.4.0/Tools/MakeIncremental/Program.cs
9,403
C#
using System; using System.Collections.Generic; using System.Linq; using Amazon.JSII.Runtime.Deputy; using Amazon.JSII.Tests.CalculatorNamespace; using CompositeOperation = Amazon.JSII.Tests.CalculatorNamespace.composition.CompositeOperation; using Amazon.JSII.Tests.CalculatorNamespace.LibNamespace; using Newtonsoft.Json.Linq; using Xunit; using Xunit.Abstractions; [assembly: CollectionBehavior(DisableTestParallelization = true)] #pragma warning disable CS0612 namespace Amazon.JSII.Runtime.IntegrationTests { /// <summary> /// Ported from packages/jsii-java-runtime/src/test/java/org/jsii/testing/ComplianceTest.java. /// </summary> public sealed class ComplianceTests : IClassFixture<ServiceContainerFixture> { class RuntimeException : Exception { public RuntimeException(string message) : base(message) { } } // DateTime.UnixEpoch was added in .NET Core 2.1, but our build container only supports 2.0. static readonly DateTime UnixEpoch = new DateTime(1970, 1, 1, 0, 0, 0, DateTimeKind.Utc); const string Prefix = nameof(IntegrationTests) + ".Compliance."; public ComplianceTests(ITestOutputHelper outputHelper, ServiceContainerFixture serviceContainerFixture) { serviceContainerFixture.SetOverride(outputHelper); } [Fact(DisplayName = Prefix + nameof(PrimitiveTypes))] public void PrimitiveTypes() { AllTypes types = new AllTypes(); // boolean types.BooleanProperty = true; Assert.True(types.BooleanProperty); // string types.StringProperty = "foo"; Assert.Equal("foo", types.StringProperty); // number types.NumberProperty = 1234; Assert.Equal(1234d, types.NumberProperty); // date types.DateProperty = UnixEpoch.AddMilliseconds(123); Assert.Equal(UnixEpoch.AddMilliseconds(123), types.DateProperty); // json types.JsonProperty = JObject.Parse(@"{ ""Foo"": { ""Bar"": 123 } }"); Assert.Equal(123d, types.JsonProperty["Foo"]?["Bar"]?.Value<double>()); } [Fact(DisplayName = Prefix + nameof(Dates))] public void Dates() { var types = new AllTypes(); // strong type types.DateProperty = UnixEpoch.AddMilliseconds(123); Assert.Equal(UnixEpoch.AddMilliseconds(123), types.DateProperty); // weak type types.AnyProperty = UnixEpoch.AddSeconds(999); Assert.Equal(UnixEpoch.AddSeconds(999), types.AnyProperty); } [Fact(DisplayName = Prefix + nameof(CollectionTypes))] public void CollectionTypes() { AllTypes types = new AllTypes(); // array types.ArrayProperty = new[] {"Hello", "World"}; Assert.Equal("World", types.ArrayProperty[1]); // map IDictionary<string, Number> map = new Dictionary<string, Number>(); map["Foo"] = new Number(123); types.MapProperty = map; Assert.Equal(123d, types.MapProperty["Foo"].Value); } [Fact(DisplayName = Prefix + nameof(ComplexCollectionTypes))] public void ComplexCollectionTypes() { // See https://github.com/aws/aws-cdk/issues/2496 AllTypes types = new AllTypes(); // complex map IDictionary<string, object> map = new Dictionary<string, object>(); map.Add("Foo", new Dictionary<string, object>() { {"Key", 123d}}); types.AnyMapProperty = map; var dict = (Dictionary<string, object>)types.AnyMapProperty["Foo"]; Assert.Equal(123d, dict["Key"]); } [Fact(DisplayName = Prefix + nameof(DynamicTypes))] public void DynamicTypes() { AllTypes types = new AllTypes(); // boolean types.AnyProperty = false; Assert.False((bool) types.AnyProperty); // string types.AnyProperty = "String"; Assert.Equal("String", types.AnyProperty); // number types.AnyProperty = 12; Assert.Equal(12d, types.AnyProperty); // date types.AnyProperty = UnixEpoch.AddSeconds(1234); Assert.Equal(UnixEpoch.AddSeconds(1234), types.AnyProperty); // json (notice that when deserialized, it is deserialized as a map). types.AnyProperty = new Dictionary<string, object> { { "Goo", new object[] { "Hello", new Dictionary<string, object> { { "World", 123 } } } } }; var @object = (IDictionary<string, object>) types.AnyProperty; var array = (object[]) @object["Goo"]; var innerObject = (IDictionary<string, object>) array[1]; Assert.Equal(123d, innerObject["World"]); // array types.AnyProperty = new[] {"Hello", "World"}; Assert.Equal("Hello", ((object[]) types.AnyProperty)[0]); Assert.Equal("World", ((object[]) types.AnyProperty)[1]); // array of any types.AnyArrayProperty = new object[] {"Hybrid", new Number(12), 123, false}; Assert.Equal(123d, types.AnyArrayProperty[2]); // map IDictionary<string, object> map = new Dictionary<string, object>(); map["MapKey"] = "MapValue"; types.AnyProperty = map; Assert.Equal("MapValue", ((IDictionary<string, object>) types.AnyProperty)["MapKey"]); // map of any map["Goo"] = 19289812; types.AnyMapProperty = map; Assert.Equal(19289812d, types.AnyMapProperty["Goo"]); // classes var mult = new Multiply(new Number(10), new Number(20)); types.AnyProperty = mult; Assert.Same(types.AnyProperty, mult); Assert.IsType<Multiply>(types.AnyProperty); Assert.Equal(200d, ((Multiply) types.AnyProperty).Value); } [Fact(DisplayName = Prefix + nameof(UnionTypes))] public void UnionTypes() { AllTypes types = new AllTypes(); // single valued property types.UnionProperty = 1234; Assert.Equal(1234d, types.UnionProperty); types.UnionProperty = "Hello"; Assert.Equal("Hello", types.UnionProperty); types.UnionProperty = new Multiply(new Number(2), new Number(12)); Assert.Equal(24d, ((Multiply) types.UnionProperty).Value); // NOTE: union collections are untyped in C# (System.Object) // map // TODO: This is ported from the Java test, but it doesn't seem right. // UnionMapProperty has type Map<PrimitiveType.String | PrimitiveType.Number> // PrimitiveType.Number is not the same as the Number type, so I would expect // this to fail (which it does). /* IDictionary<string, object> map = new Dictionary<string, object>(); map["Foo"] = new Multiply(new Number(2), new Number(00)); types.UnionMapProperty = map; // array types.UnionArrayProperty = new object[] { "Hello", 123, new Number(3) }; Assert.Equal((double)33, ((Number)types.UnionArrayProperty[2]).Value); */ } [Fact(DisplayName = Prefix + nameof(CreateObjectAndCtorOverloads))] public void CreateObjectAndCtorOverloads() { new Calculator(); var calc = new Calculator(new CalculatorProps() { InitialValue = 100 }); Assert.Equal(100, calc.Value); } [Fact(DisplayName = Prefix + nameof(GetSetPrimitiveProperties))] public void GetSetPrimitiveProperties() { var number = new Number(20); Assert.Equal(20d, number.Value); Assert.Equal(40d, number.DoubleValue); Assert.Equal(-30d, new Negate(new Add(new Number(20), new Number(10))).Value); Assert.Equal(20d, new Multiply(new Add(new Number(5), new Number(5)), new Number(2)).Value); Assert.Equal(3d * 3d * 3d * 3d, new Power(new Number(3), new Number(4)).Value); Assert.Equal(999d, new Power(new Number(999), new Number(1)).Value); Assert.Equal(1d, new Power(new Number(999), new Number(0)).Value); } [Fact(DisplayName = Prefix + nameof(CallMethods))] public void CallMethods() { var calc = new Calculator(); calc.Add(10); Assert.Equal(10d, calc.Value); calc.Mul(2); Assert.Equal(20d, calc.Value); calc.Pow(5); Assert.Equal(20d * 20d * 20d * 20d * 20d, calc.Value); calc.Neg(); Assert.Equal(-3200000d, calc.Value); } [Fact(DisplayName = Prefix + nameof(UnmarkshallIntoAbstractType))] public void UnmarkshallIntoAbstractType() { var calc = new Calculator(); calc.Add(120); var value = calc.Curr; Assert.Equal(120d, value.Value); } [Fact(DisplayName = Prefix + nameof(GetAndSetNotPrimitiveProperties))] public void GetAndSetNotPrimitiveProperties() { var calc = new Calculator(); calc.Add(3200000); calc.Neg(); calc.Curr = new Multiply(new Number(2), calc.Curr); Assert.Equal(-6400000d, calc.Value); } [Fact(DisplayName = Prefix + nameof(GetAndSetEnumValues))] public void GetAndSetEnumValues() { // TODO: Generator should create a parameterless constructor. Calculator calc = new Calculator(new CalculatorProps()); calc.Add(9); calc.Pow(3); Assert.Equal(CompositeOperation.CompositionStringStyle.NORMAL, calc.StringStyle); calc.StringStyle = CompositeOperation.CompositionStringStyle.DECORATED; Assert.Equal(CompositeOperation.CompositionStringStyle.DECORATED, calc.StringStyle); Assert.Equal("<<[[{{(((1 * (0 + 9)) * (0 + 9)) * (0 + 9))}}]]>>", calc.ToString()); } [Fact(DisplayName = Prefix + nameof(EnumFromScopedModule))] public void UseEnumFromScopedModule() { ReferenceEnumFromScopedPackage obj = new ReferenceEnumFromScopedPackage(); Assert.Equal(EnumFromScopedModule.VALUE2, obj.Foo); obj.Foo = EnumFromScopedModule.VALUE1; Assert.Equal(EnumFromScopedModule.VALUE1, obj.LoadFoo()); obj.SaveFoo(EnumFromScopedModule.VALUE2); Assert.Equal(EnumFromScopedModule.VALUE2, obj.Foo); } [Fact(DisplayName = Prefix + nameof(UndefinedAndNull))] public void UndefinedAndNull() { // TODO: Generator should create a parameterless constructor. Calculator calculator = new Calculator(new CalculatorProps()); Assert.Null(calculator.MaxValue); calculator.MaxValue = null; } [Fact(DisplayName = Prefix + nameof(Arrays))] public void Arrays() { var sum = new Sum { Parts = new Value_[] {new Number(5), new Number(10), new Multiply(new Number(2), new Number(3))} }; Assert.Equal(10d + 5d + 2d * 3d, sum.Value); Assert.Equal(5d, sum.Parts[0].Value); Assert.Equal(6d, sum.Parts[2].Value); Assert.Equal("(((0 + 5) + 10) + (2 * 3))", sum.ToString()); } [Fact(DisplayName = Prefix + nameof(Maps))] public void Maps() { // TODO: Generator should create a parameterless constructor. var calc = new Calculator(new CalculatorProps()); calc.Add(10); calc.Add(20); calc.Mul(2); Assert.Collection( calc.OperationsMap["add"], val => { }, val => Assert.Equal(30d, val.Value) ); Assert.Collection( calc.OperationsMap["mul"], val => { } ); } [Fact(DisplayName = Prefix + nameof(FluentApi))] public void FluentApi() { Calculator calc = new Calculator(new CalculatorProps { InitialValue = 20, MaximumValue = 30, }); calc.Add(3); Assert.Equal(23, calc.Value); } [Fact(DisplayName = Prefix + nameof(Exceptions))] public void Exceptions() { var calc = new Calculator(new CalculatorProps { InitialValue = 20, MaximumValue = 30, }); calc.Add(3); Assert.Equal(23d, calc.Value); Assert.Throws<JsiiException>(() => calc.Add(10)); calc.MaxValue = 40; calc.Add(10); Assert.Equal(33d, calc.Value); } [Fact(DisplayName = Prefix + nameof(UnionProperties))] public void UnionProperties() { var calc = new Calculator(); calc.UnionProperty = new Multiply(new Number(9), new Number(3)); Assert.IsType<Multiply>(calc.UnionProperty); Assert.Equal(9d * 3, calc.ReadUnionValue()); calc.UnionProperty = new Power(new Number(10), new Number(3)); Assert.IsType<Power>(calc.UnionProperty); } [Fact(DisplayName = Prefix + nameof(SubClassing))] public void SubClassing() { var calc = new Calculator(); calc.Curr = new AddTen(33); calc.Neg(); Assert.Equal(-43d, calc.Value); } [Fact(DisplayName = Prefix + nameof(TestJsObjectLiteralToNative))] public void TestJsObjectLiteralToNative() { var obj = new JSObjectLiteralToNative(); var obj2 = obj.ReturnLiteral(); Assert.Equal("Hello", obj2.PropA); Assert.Equal(102d, obj2.PropB); } [Fact(DisplayName = Prefix + nameof(CreationOfNativeObjectsFromJavaScriptObjects))] public void CreationOfNativeObjectsFromJavaScriptObjects() { var types = new AllTypes(); var jsObj = new Number(44); types.AnyProperty = jsObj; var unmarshalledJSObj = types.AnyProperty; Assert.IsType<Number>(unmarshalledJSObj); var nativeObj = new AddTen(10); types.AnyProperty = nativeObj; var result1 = types.AnyProperty; Assert.Same(nativeObj, result1); var nativeObj2 = new MulTen(20); types.AnyProperty = nativeObj2; var unmarshalledNativeObj = types.AnyProperty; Assert.IsType<MulTen>(unmarshalledNativeObj); Assert.Same(nativeObj2, unmarshalledNativeObj); } class AsyncVirtualMethodsChild : AsyncVirtualMethods { public override double OverrideMe(double mult) { throw new RuntimeException("Thrown by native code"); } } [Fact(DisplayName = Prefix + nameof(AsyncOverrides_CallAsyncMethod))] public void AsyncOverrides_CallAsyncMethod() { AsyncVirtualMethods obj = new AsyncVirtualMethods(); Assert.Equal(128d, obj.CallMe()); Assert.Equal(528d, obj.OverrideMe(44)); } [Fact(DisplayName = Prefix + nameof(AsyncOverrides_OverrideAsyncMethod))] public void AsyncOverrides_OverrideAsyncMethod() { OverrideAsyncMethods obj = new OverrideAsyncMethods(); Assert.Equal(4452d, obj.CallMe()); } [Fact(DisplayName = Prefix + nameof(AsyncOverrides_OverrideAsyncMethodByParentClass))] public void AsyncOverrides_OverrideAsyncMethodByParentClass() { OverrideAsyncMethodsByBaseClass obj = new OverrideAsyncMethodsByBaseClass(); Assert.Equal(4452d, obj.CallMe()); } [Fact(DisplayName = Prefix + nameof(AsyncOverrides_OverrideCallsSuper))] public void AsyncOverrides_OverrideCallsSuper() { OverrideCallsSuper obj = new OverrideCallsSuper(); Assert.Equal(1441d, obj.OverrideMe(12)); Assert.Equal(1209d, obj.CallMe()); } [Fact(DisplayName = Prefix + nameof(AsyncOverrides_TwoOverrides))] public void AsyncOverrides_TwoOverrides() { TwoOverrides obj = new TwoOverrides(); Assert.Equal(684d, obj.CallMe()); } [Fact(DisplayName = Prefix + nameof(AsyncOverrides_OverrideThrows))] public void AsyncOverrides_OverrideThrows() { AsyncVirtualMethodsChild obj = new AsyncVirtualMethodsChild(); JsiiException exception = Assert.Throws<JsiiException>(() => obj.CallMe()); Assert.Contains("Thrown by native code", exception.Message); } class SyncVirtualMethodsChild_Set_CallsSuper : SyncVirtualMethods { public override string TheProperty { get => base.TheProperty; set => base.TheProperty = $"{value}:by override"; } } class SyncVirtualMethodsChild_Get_CallsSuper : SyncVirtualMethods { public override string TheProperty { get => $"super:{base.TheProperty}"; set => base.TheProperty = value; } } class SyncVirtualMethodsChild_Throws : SyncVirtualMethods { public override string TheProperty { get => throw new RuntimeException("Oh no, this is bad"); set => throw new RuntimeException("Exception from overloaded setter"); } } class InterfaceWithProperties : DeputyBase, IInterfaceWithProperties { string? _x; public string ReadOnlyString => "READ_ONLY_STRING"; public string ReadWriteString { get => $"{_x}?"; set => _x = $"{value}!"; } } [Fact(DisplayName = Prefix + nameof(PropertyOverrides_Get_Set))] public void PropertyOverrides_Get_Set() { SyncOverrides so = new SyncOverrides(); Assert.Equal("I am an override!", so.RetrieveValueOfTheProperty()); so.ModifyValueOfTheProperty("New Value"); Assert.Equal("New Value", so.AnotherTheProperty); } [Fact(DisplayName = Prefix + nameof(PropertyOverrides_Get_CallsSuper))] public void PropertyOverrides_Get_CallsSuper() { SyncVirtualMethodsChild_Get_CallsSuper so = new SyncVirtualMethodsChild_Get_CallsSuper(); Assert.Equal("super:initial value", so.RetrieveValueOfTheProperty()); Assert.Equal("super:initial value", so.TheProperty); } [Fact(DisplayName = Prefix + nameof(PropertyOverrides_Get_Throws))] public void PropertyOverrides_Get_Throws() { SyncVirtualMethodsChild_Throws so = new SyncVirtualMethodsChild_Throws(); JsiiException exception = Assert.Throws<JsiiException>(() => so.RetrieveValueOfTheProperty()); Assert.Contains("Oh no, this is bad", exception.Message); } [Fact(DisplayName = Prefix + nameof(PropertyOverrides_Set_CallsSuper))] public void PropertyOverrides_Set_CallsSuper() { SyncVirtualMethodsChild_Set_CallsSuper so = new SyncVirtualMethodsChild_Set_CallsSuper(); so.ModifyValueOfTheProperty("New Value"); Assert.Equal("New Value:by override", so.TheProperty); } [Fact(DisplayName = Prefix + nameof(PropertyOverrides_Set_Throws))] public void PropertyOverrides_Set_Throws() { SyncVirtualMethodsChild_Throws so = new SyncVirtualMethodsChild_Throws(); JsiiException exception = Assert.Throws<JsiiException>(() => so.ModifyValueOfTheProperty("Hii")); Assert.Contains("Exception from overloaded setter", exception.Message); } [Fact(DisplayName = Prefix + nameof(PropertyOverrides_Interfaces))] public void PropertyOverrides_Interfaces() { InterfaceWithProperties obj = new InterfaceWithProperties(); UsesInterfaceWithProperties interact = new UsesInterfaceWithProperties(obj); Assert.Equal("READ_ONLY_STRING", interact.JustRead()); Assert.Equal("Hello!?", interact.WriteAndRead("Hello")); } [Fact(DisplayName = Prefix + nameof(InterfaceBuilder), Skip = "There is no fluent API for C#")] public void InterfaceBuilder() { throw new NotImplementedException(); } [Fact(DisplayName = Prefix + nameof(SyncOverrides_SyncOverrides))] public void SyncOverrides_SyncOverrides() { SyncOverrides obj = new SyncOverrides(); Assert.Equal(10d * 5, obj.CallerIsMethod()); // affect the result obj.Multiplier = 5; Assert.Equal(10d * 5 * 5, obj.CallerIsMethod()); // verify callbacks are invoked from a property Assert.Equal(10d * 5 * 5, obj.CallerIsProperty); // and from an async method obj.Multiplier = 3; Assert.Equal(10d * 5 * 3, obj.CallerIsAsync()); } [Fact(DisplayName = Prefix + nameof(SyncOverrides_CallsSuper))] public void SyncOverrides_CallsSuper() { SyncOverrides obj = new SyncOverrides(); Assert.Equal(10d * 5, obj.CallerIsProperty); obj.ReturnSuper = true; // js code returns n * 2 Assert.Equal(10d * 2, obj.CallerIsProperty); } [Fact(DisplayName = Prefix + nameof(SyncOverrides_CallsDoubleAsyncMethodFails))] public void SyncOverrides_CallsDoubleAsyncMethodFails() { SyncOverrides obj = new SyncOverrides(); obj.CallAsync = true; Assert.Throws<JsiiException>(() => obj.CallerIsMethod()); } [Fact(DisplayName = Prefix + nameof(SyncOverrides_CallsDoubleAsyncPropertyGetterFails))] public void SyncOverrides_CallsDoubleAsyncPropertyGetterFails() { SyncOverrides obj = new SyncOverrides(); obj.CallAsync = true; Assert.Throws<JsiiException>(() => obj.CallerIsProperty); } [Fact(DisplayName = Prefix + nameof(SyncOverrides_CallsDoubleAsyncPropertySetterFails))] public void SyncOverrides_CallsDoubleAsyncPropertySetterFails() { SyncOverrides obj = new SyncOverrides(); obj.CallAsync = true; Assert.Throws<JsiiException>(() => obj.CallerIsProperty = 12); } [Fact(DisplayName = Prefix + nameof(TestInterfaces))] public void TestInterfaces() { IFriendly friendly; IFriendlier friendlier; IRandomNumberGenerator randomNumberGenerator; IFriendlyRandomGenerator friendlyRandomGenerator; Add add = new Add(new Number(10), new Number(20)); friendly = add; // friendlier = add // <-- shouldn't compile since Add implements IFriendly Assert.Equal("Hello, I am a binary operation. What's your name?", friendly.Hello()); Multiply multiply = new Multiply(new Number(10), new Number(30)); friendly = multiply; friendlier = multiply; randomNumberGenerator = multiply; // friendlyRandomGenerator = multiply; // <-- shouldn't compile Assert.Equal("Hello, I am a binary operation. What's your name?", friendly.Hello()); Assert.Equal("Goodbye from Multiply!", friendlier.Goodbye()); Assert.Equal(89d, randomNumberGenerator.Next()); friendlyRandomGenerator = new DoubleTrouble(); Assert.Equal("world", friendlyRandomGenerator.Hello()); Assert.Equal(12d, friendlyRandomGenerator.Next()); Polymorphism poly = new Polymorphism(); Assert.Equal("oh, Hello, I am a binary operation. What's your name?", poly.SayHello(friendly)); Assert.Equal("oh, world", poly.SayHello(friendlyRandomGenerator)); Assert.Equal("oh, SubclassNativeFriendlyRandom", poly.SayHello(new SubclassNativeFriendlyRandom())); Assert.Equal("oh, I am a native!", poly.SayHello(new PureNativeFriendlyRandom())); } /** * This test verifies that native objects passed to jsii code as interfaces will remain "stable" * across invocation. For native objects that derive from JsiiObject, that's natural, because the objref * is stored at the JsiiObject level. But for "pure" native objects, which are not part of the JsiiObject * hierarchy, there's some magic going on: when the pure object is first passed to jsii, an empty javascript * object is created for it (extends Object.prototype) and any native method overrides are assigned (like any * other jsii object). The resulting objref is stored at the engine level (in "objects"). * * We verify two directions: * 1. objref => obj: when .getGenerator() is called, we get back an objref and we assert that it is the *same* * as the one we originally passed. * 2. obj => objref: when we call .isSameGenerator(x) we pass the pure native object back to jsii and we expect * that a new object is not created again. */ [Fact(DisplayName = Prefix + nameof(TestNativeObjectsWithInterfaces))] public void TestNativeObjectsWithInterfaces() { // create a pure and native object, not part of the jsii hierarchy, only implements a jsii interface PureNativeFriendlyRandom pureNative = new PureNativeFriendlyRandom(); SubclassNativeFriendlyRandom subclassedNative = new SubclassNativeFriendlyRandom(); NumberGenerator generatorBoundToPSubclassedObject = new NumberGenerator(subclassedNative); Assert.Same(subclassedNative, generatorBoundToPSubclassedObject.Generator); generatorBoundToPSubclassedObject.IsSameGenerator(subclassedNative); Assert.Equal(10000d, generatorBoundToPSubclassedObject.NextTimes100()); // when we invoke nextTimes100 again, it will use the objref and call into the same object. Assert.Equal(20000d, generatorBoundToPSubclassedObject.NextTimes100()); NumberGenerator generatorBoundToPureNative = new NumberGenerator(pureNative); Assert.Same(pureNative, generatorBoundToPureNative.Generator); generatorBoundToPureNative.IsSameGenerator(pureNative); Assert.Equal(100000d, generatorBoundToPureNative.NextTimes100()); Assert.Equal(200000d, generatorBoundToPureNative.NextTimes100()); } [Fact(DisplayName = Prefix + nameof(TestLiteralInterface))] public void TestLiteralInterface() { JSObjectLiteralForInterface obj = new JSObjectLiteralForInterface(); IFriendly friendly = obj.GiveMeFriendly(); Assert.Equal("I am literally friendly!", friendly.Hello()); IFriendlyRandomGenerator gen = obj.GiveMeFriendlyGenerator(); Assert.Equal("giveMeFriendlyGenerator", gen.Hello()); Assert.Equal(42d, gen.Next()); } [Fact(DisplayName = Prefix + nameof(TestInterfaceParameter))] public void TestInterfaceParameter() { var obj = new JSObjectLiteralForInterface(); var friendly = obj.GiveMeFriendly(); Assert.Equal("I am literally friendly!", friendly.Hello()); var greetingAugmenter = new GreetingAugmenter(); var betterGreeting = greetingAugmenter.BetterGreeting(friendly); Assert.Equal("I am literally friendly! Let me buy you a drink!", betterGreeting); } [Fact(DisplayName = Prefix + nameof(Structs_StepBuilders), Skip = "There is no fluent API for C#")] public void Structs_StepBuilders() { throw new NotImplementedException(); } [Fact(DisplayName = Prefix + nameof(Structs_BuildersContainNullChecks), Skip = "There is no fluent API for C#")] public void Structs_BuildersContainNullChecks() { throw new NotImplementedException(); } [Fact(DisplayName = Prefix + nameof(Structs_SerializeToJsii))] public void Structs_SerializeToJsii() { MyFirstStruct firstStruct = new MyFirstStruct { Astring = "FirstString", Anumber = 999, FirstOptional = new[] {"First", "Optional"} }; DoubleTrouble doubleTrouble = new DoubleTrouble(); DerivedStruct derivedStruct = new DerivedStruct { NonPrimitive = doubleTrouble, Bool = false, AnotherRequired = DateTime.Now, Astring = "String", Anumber = 1234, FirstOptional = new[] {"one", "two"} }; GiveMeStructs gms = new GiveMeStructs(); Assert.Equal(999, gms.ReadFirstNumber(firstStruct)); Assert.Equal(1234, gms.ReadFirstNumber(derivedStruct)); // since derived inherits from first Assert.Same(doubleTrouble, gms.ReadDerivedNonPrimitive(derivedStruct)); IStructWithOnlyOptionals literal = gms.StructLiteral; Assert.Equal("optional1FromStructLiteral", literal.Optional1); Assert.False(literal.Optional3); Assert.Null(literal.Optional2); } [Fact(DisplayName = Prefix + nameof(StaticsTest))] public void StaticsTest() { Assert.Equal("hello ,Yoyo!", Statics.StaticMethod("Yoyo")); Assert.Equal("default", Statics.Instance.Value); Statics newStatics = new Statics("new value"); Statics.Instance = newStatics; Assert.Same(Statics.Instance, newStatics); Assert.Equal("new value", Statics.Instance.Value); Assert.Equal(100, Statics.NonConstStatic); } [Fact(DisplayName = Prefix + nameof(Consts))] public void Consts() { Assert.Equal("hello", Statics.Foo); DoubleTrouble obj = Statics.ConstObj; Assert.Equal("world", obj.Hello()); Assert.Equal(1234, Statics.BAR); Assert.Equal("world", Statics.ZooBar["hello"]); } [Fact(DisplayName = Prefix + nameof(ReservedKeywordsAreSlugifiedInMethodNames), Skip = "TODO")] public void ReservedKeywordsAreSlugifiedInMethodNames() { throw new NotImplementedException(); } [Fact(DisplayName = Prefix + nameof(NodeStandardLibrary))] public void NodeStandardLibrary() { NodeStandardLibrary obj = new NodeStandardLibrary(); Assert.Equal("Hello, resource!", obj.FsReadFile()); Assert.Equal("Hello, resource! SYNC!", obj.FsReadFileSync()); Assert.True(obj.OsPlatform.Length > 0); Assert.Equal("6a2da20943931e9834fc12cfe5bb47bbd9ae43489a30726962b576f4e3993e50", obj.CryptoSha256()); } [Fact(DisplayName = Prefix + nameof(ReturnAbstract))] public void ReturnAbstract() { var obj = new AbstractClassReturner(); var obj2 = obj.GiveMeAbstract(); Assert.Equal("Hello, John!!", obj2.AbstractMethod("John")); Assert.Equal("propFromInterfaceValue", obj2.PropFromInterface); Assert.Equal(42, obj2.NonAbstractMethod()); var iface = obj.GiveMeInterface(); Assert.Equal("propFromInterfaceValue", iface.PropFromInterface); Assert.Equal("hello-abstract-property", obj.ReturnAbstractFromProperty.AbstractProperty); } [Fact(DisplayName = Prefix + nameof(TestClassWithPrivateConstructorAndAutomaticProperties))] public void TestClassWithPrivateConstructorAndAutomaticProperties() { var obj = ClassWithPrivateConstructorAndAutomaticProperties.Create("Hello", "Bye"); Assert.Equal("Bye", obj.ReadWriteString); obj.ReadWriteString = "Hello"; Assert.Equal("Hello", obj.ReadOnlyString); } [Fact(DisplayName = Prefix + nameof(TestReturnInterfaceFromOverride))] public void TestReturnInterfaceFromOverride() { var n = 1337; var obj = new OverrideReturnsObject(); var arg = new NumberReturner(n); Assert.Equal(4 * n, obj.Test(arg)); } [Fact(DisplayName = Prefix + nameof(NullShouldBeTreatedAsUndefined))] public void NullShouldBeTreatedAsUndefined() { // ctor var obj = new NullShouldBeTreatedAsUndefined("param1"); // method argument obj.GiveMeUndefined(); // inside object obj.GiveMeUndefinedInsideAnObject(new NullShouldBeTreatedAsUndefinedData { ThisShouldBeUndefined = null, #pragma warning disable CS8625 ArrayWithThreeElementsAndUndefinedAsSecondArgument = new object[] {"hello", null, "world"} #pragma warning restore CS8625 }); // property obj.ChangeMeToUndefined = null; obj.VerifyPropertyIsUndefined(); } [Fact(DisplayName = Prefix + nameof(OptionalAndVariadicArgumentsTest))] public void OptionalAndVariadicArgumentsTest() { // ctor new NullShouldBeTreatedAsUndefined("param1", null); var objWithoutOptionalProvided = new NullShouldBeTreatedAsUndefined("param1"); // method argument called with null value objWithoutOptionalProvided.GiveMeUndefined(null); // method argument called without null value objWithoutOptionalProvided.GiveMeUndefined(); // Array with no value in constructor params var variadicClassNoParams = new VariadicMethod(); // Array with null value in constructor params #pragma warning disable CS8625 new VariadicMethod(null); #pragma warning restore CS8625 // Array with one value in constructor params new VariadicMethod(1); // Array with multiple values in constructor params new VariadicMethod(1, 2, 3, 4); // Variadic parameter with null passed #pragma warning disable CS8625 variadicClassNoParams.AsArray(double.MinValue, null); #pragma warning restore CS8625 // Variadic parameter with default value used variadicClassNoParams.AsArray(double.MinValue); var list = new List<double>(); // Variadic parameter with array with no value variadicClassNoParams.AsArray(double.MinValue, list.ToArray()); // Variadic parameter with array with one value list.Add(1d); variadicClassNoParams.AsArray(double.MinValue, list.ToArray()); // Variadic parameter with array with multiple value list.Add(2d); list.Add(3d); list.Add(4d); list.Add(5d); list.Add(6d); variadicClassNoParams.AsArray(double.MinValue, list.ToArray()); } [Fact(DisplayName = Prefix + nameof(JsiiAgent))] public void JsiiAgent() { Assert.Equal("DotNet/" + Environment.Version + "/.NETCoreApp,Version=v3.1/1.0.0.0", JsiiAgent_.JsiiAgent); } [Fact(DisplayName = Prefix + nameof(ReceiveInstanceOfPrivateClass))] public void ReceiveInstanceOfPrivateClass() { Assert.True(new ReturnsPrivateImplementationOfInterface().PrivateImplementation.Success); } [Fact(DisplayName = Prefix + nameof(ObjRefsAreLabelledUsingWithTheMostCorrectType))] public void ObjRefsAreLabelledUsingWithTheMostCorrectType() { var classRef = Constructors.MakeClass(); var ifaceRef = Constructors.MakeInterface(); Assert.Equal(typeof(InbetweenClass), classRef.GetType()); Assert.NotEqual(typeof(InbetweenClass), ifaceRef.GetType()); } [Fact(DisplayName = Prefix + nameof(EraseUnsetDataValues))] public void EraseUnsetDataValues() { var opts = new EraseUndefinedHashValuesOptions { Option1 = "option1" }; Assert.True(EraseUndefinedHashValues.DoesKeyExist(opts, "option1")); Assert.False(EraseUndefinedHashValues.DoesKeyExist(opts, "option2")); Assert.Equal(new Dictionary<string, object> { ["prop2"] = "value2" }, EraseUndefinedHashValues.Prop1IsNull()); Assert.Equal(new Dictionary<string, object> { [ "prop1"] = "value1" }, EraseUndefinedHashValues.Prop2IsUndefined()); } [Fact(DisplayName = Prefix + nameof(ObjectIdDoesNotGetReallocatedWhenTheConstructorPassesThisOut), Skip = "Currently broken")] public void ObjectIdDoesNotGetReallocatedWhenTheConstructorPassesThisOut() { var reflector = new PartiallyInitializedThisConsumerImpl(); var obj = new ConstructorPassesThisOut(reflector); Assert.NotNull(obj); } [Fact(DisplayName = Prefix + nameof(CorrectlyReturnsFromVoidCallback))] public void CorrectlyReturnsFromVoidCallback() { var voidCallback = new VoidCallbackImpl(); voidCallback.CallMe(); Assert.True(voidCallback.MethodWasCalled); } [Fact(DisplayName = Prefix + nameof(CallbacksCorrectlyDeserializeArguments))] public void CallbacksCorrectlyDeserializeArguments() { var obj = new DataRendererSubclass(); Assert.Equal("{\n \"anumber\": 42,\n \"astring\": \"bazinga!\"\n}", obj.Render(null)); Assert.Equal("{\n \"Key\": {},\n \"Baz\": \"Zinga\"\n}", obj.RenderArbitrary(new Dictionary<string, object>() { { "Key", obj }, { "Baz", "Zinga" } })); } [Fact(DisplayName = Prefix + nameof(MethodCanReturnArraysOfInterfaces))] public void MethodCanReturnArraysOfInterfaces() { var interfaces = InterfacesMaker.MakeInterfaces(4); Assert.Equal(4, interfaces.Length); } [Fact(DisplayName = Prefix + nameof(CanLeverageIndirectInterfacePolymorphism))] public void CanLeverageIndirectInterfacePolymorphism() { var provider = new AnonymousImplementationProvider(); Assert.Equal(1337d, provider.ProvideAsClass().Value); Assert.Equal(1337d, provider.ProvideAsInterface().Value); Assert.Equal("to implement", provider.ProvideAsInterface().Verb()); } [Fact(DisplayName = Prefix + nameof(CorrectlyDeserializesStructUnions))] public void CorrectlyDeserializesStructUnions() { var a0 = new StructA { RequiredString = "Present!", OptionalString = "Bazinga!" }; var a1 = new StructA { RequiredString = "Present!", OptionalNumber = 1337 }; var b0 = new StructB { RequiredString = "Present!", OptionalBoolean = true }; var b1 = new StructB { RequiredString = "Present!", OptionalStructA = a1 }; Assert.True(StructUnionConsumer.IsStructA(a0)); Assert.True(StructUnionConsumer.IsStructA(a1)); Assert.False(StructUnionConsumer.IsStructA(b0)); Assert.False(StructUnionConsumer.IsStructA(b1)); Assert.False(StructUnionConsumer.IsStructB(a0)); Assert.False(StructUnionConsumer.IsStructB(a1)); Assert.True(StructUnionConsumer.IsStructB(b0)); Assert.True(StructUnionConsumer.IsStructB(b1)); } [Fact(DisplayName = Prefix + nameof(VariadicCallbacksAreHandledCorrectly))] public void VariadicCallbacksAreHandledCorrectly() { var method = new OverrideVariadicMethod(); var invoker = new VariadicInvoker(method); Assert.Equal(new double[]{2d}, invoker.AsArray(1)); Assert.Equal(new double[]{2d, 3d}, invoker.AsArray(1, 2)); Assert.Equal(new double[]{2d, 3d, 4d}, invoker.AsArray(1, 2, 3)); } [Fact(DisplayName = Prefix + nameof(ReturnSubclassThatImplementsInterface976))] public void ReturnSubclassThatImplementsInterface976() { var obj = SomeTypeJsii976.ReturnReturn(); Assert.Equal(333, obj.Foo); } private sealed class OverrideVariadicMethod : VariadicMethod { public override double[] AsArray(double first, params double[] others) { #pragma warning disable CS8604 return base.AsArray(first + 1, others?.Select(n => n + 1).ToArray()); #pragma warning restore CS8604 } } [Fact(DisplayName = Prefix + nameof(OptionalCallbackArgumentsAreHandledCorrectly))] public void OptionalCallbackArgumentsAreHandledCorrectly() { var noOption = new InterfaceWithOptionalMethodArguments(); new OptionalArgumentInvoker(noOption).InvokeWithoutOptional(); Assert.True(noOption.Invoked); var option = new InterfaceWithOptionalMethodArguments(1337); new OptionalArgumentInvoker(option).InvokeWithOptional(); Assert.True(option.Invoked); } private sealed class InterfaceWithOptionalMethodArguments : DeputyBase, IInterfaceWithOptionalMethodArguments { private readonly double? _optionalValue; public InterfaceWithOptionalMethodArguments(double? optionalValue = null) { _optionalValue = optionalValue; } public Boolean Invoked { get; private set; } public void Hello(string arg1, double? arg2 = null) { Invoked = true; Assert.Equal("Howdy", arg1); Assert.Equal(_optionalValue, arg2); } } class DataRendererSubclass : DataRenderer { public override string RenderMap(IDictionary<string, object> map) { return base.RenderMap(map); } } class VoidCallbackImpl : VoidCallback { protected override void OverrideMe() { // Do nothing! } } class PartiallyInitializedThisConsumerImpl : PartiallyInitializedThisConsumer { public override String ConsumePartiallyInitializedThis(ConstructorPassesThisOut obj, DateTime dt, AllTypesEnum ev) { Assert.NotNull(obj); Assert.Equal(new DateTime(0), dt); Assert.Equal(AllTypesEnum.THIS_IS_GREAT, ev); return "OK"; } } class NumberReturner : DeputyBase, IReturnsNumber { public NumberReturner(double number) { NumberProp = new Number(number); } public Number NumberProp { get; } public IDoublable ObtainNumber() { return new Doublable(this.NumberProp); } class Doublable : DeputyBase, IDoublable { public Doublable(Number number) { this.DoubleValue = number.DoubleValue; } public Double DoubleValue { get; } } } class MulTen : Multiply { public MulTen(int value) : base(new Number(value), new Number(10)) { } } class AddTen : Add { public AddTen(int value) : base(new Number(value), new Number(10)) { } } class OverrideAsyncMethods : AsyncVirtualMethods { public override double OverrideMe(double mult) { return Foo() * 2; } public int Foo() { return 2222; } } class OverrideAsyncMethodsByBaseClass : OverrideAsyncMethods { } class OverrideCallsSuper : AsyncVirtualMethods { public override double OverrideMe(double mult) { double superRet = base.OverrideMe(mult); return ((int) superRet) * 10 + 1; } } class TwoOverrides : AsyncVirtualMethods { public override double OverrideMe(double mult) { return 666; } public override double OverrideMeToo() { return 10; } } class SyncOverrides : SyncVirtualMethods { public override double VirtualMethod(double n) { if (ReturnSuper) { return base.VirtualMethod(n); } if (CallAsync) { OverrideAsyncMethods obj = new OverrideAsyncMethods(); return obj.CallMe(); } return 5 * ((int) n) * Multiplier; } public int Multiplier { get; set; } = 1; public bool ReturnSuper { get; set; } public bool CallAsync { get; set; } public override string TheProperty { get => "I am an override!"; set => AnotherTheProperty = value; } public string? AnotherTheProperty { get; set; } } class PureNativeFriendlyRandom : DeputyBase, IFriendlyRandomGenerator { int _nextNumber = 1000; public double Next() { int n = _nextNumber; _nextNumber += 1000; return n; } public string Hello() { return "I am a native!"; } } class SubclassNativeFriendlyRandom : Number, IFriendly, IRandomNumberGenerator { int _nextNumber; public SubclassNativeFriendlyRandom() : base(908) { _nextNumber = 100; } public string Hello() { return "SubclassNativeFriendlyRandom"; } public double Next() { int next = _nextNumber; _nextNumber += 100; return next; } } [Fact(DisplayName = Prefix + nameof(StructsCanBeDowncastedToParentType))] public void StructsCanBeDowncastedToParentType() { Assert.NotNull(Demonstrate982.TakeThis()); Assert.NotNull(Demonstrate982.TakeThisToo()); } [Fact(DisplayName = Prefix + nameof(NullIsAValidOptionalList))] public void NullIsAValidOptionalList() { Assert.Null(DisappointingCollectionSource.MaybeList); } [Fact(DisplayName = Prefix + nameof(NullIsAValidOptionalMap))] public void NullIsAValidOptionalMap() { Assert.Null(DisappointingCollectionSource.MaybeMap); } [Fact(DisplayName = Prefix + nameof(CanUseInterfaceSetters))] public void CanUseInterfaceSetters() { var obj = ObjectWithPropertyProvider.Provide(); obj.Property = "New Value"; Assert.True(obj.WasSet()); } [Fact(DisplayName = Prefix + nameof(StructsAreUndecoratedOntheWayToKernel))] public void StructsAreUndecoratedOntheWayToKernel() { var json = JsonFormatter.Stringify(new StructB {RequiredString = "Bazinga!", OptionalBoolean = false})!; var actual = JObject.Parse(json); var expected = new JObject(); expected.Add("RequiredString", "Bazinga!"); expected.Add("OptionalBoolean", false); Assert.Equal(expected, actual); } [Fact(DisplayName = Prefix + nameof(CanObtainReferenceWithOverloadedSetters))] public void CanObtainReferenceWithOverloadedSetters() { Assert.NotNull(ConfusingToJackson.MakeInstance()); } [Fact(DisplayName = Prefix + nameof(CanObtainStructReferenceWithOverloadedSetters))] public void CanObtainStructReferenceWithOverloadedSetters() { Assert.NotNull(ConfusingToJackson.MakeStructInstance()); } [Fact(DisplayName = Prefix + nameof(PureInterfacesCanBeUsedTransparently))] public void PureInterfacesCanBeUsedTransparently() { var expected = new StructB { RequiredString = "It's Britney b**ch!" }; var del = new StructReturningDelegate(expected); var consumer = new ConsumePureInterface(del); Assert.Equal(expected.RequiredString, consumer.WorkItBaby().RequiredString); } private sealed class StructReturningDelegate: DeputyBase, IStructReturningDelegate { internal StructReturningDelegate(StructB expected) { Expected = expected; } private IStructB Expected { get; } public IStructB ReturnStruct() { return Expected; } } [Fact(DisplayName = Prefix + nameof(PureInterfacesCanBeUsedTransparently_WhenTransitivelyImplemented))] public void PureInterfacesCanBeUsedTransparently_WhenTransitivelyImplemented() { var expected = new StructB { RequiredString = "It's Britney b**ch!" }; var del = new IndirectlyImplementsStructReturningDelegate(expected); var consumer = new ConsumePureInterface(del); Assert.Equal(expected.RequiredString, consumer.WorkItBaby().RequiredString); } private sealed class IndirectlyImplementsStructReturningDelegate : ImplementsStructReturningDelegate { internal IndirectlyImplementsStructReturningDelegate(StructB @struct) : base(@struct) {} } private class ImplementsStructReturningDelegate : DeputyBase, IStructReturningDelegate { private StructB Struct; protected ImplementsStructReturningDelegate(StructB @struct) { this.Struct = @struct; } public IStructB ReturnStruct() { return Struct; } } [Fact(DisplayName = Prefix + nameof(PureInterfacesCanBeUsedTransparently_WhenAddedToJsiiType))] public void PureInterfacesCanBeUsedTransparently_WhenAddedToJsiiType() { var expected = new StructB { RequiredString = "It's Britney b**ch!" }; var del = new ImplementsAdditionalInterface(expected); var consumer = new ConsumePureInterface(del); Assert.Equal(expected.RequiredString, consumer.WorkItBaby().RequiredString); } private sealed class ImplementsAdditionalInterface : AllTypes, IStructReturningDelegate { private StructB Struct; internal ImplementsAdditionalInterface(StructB @struct) { this.Struct = @struct; } public IStructB ReturnStruct() { return Struct; } } [Fact(DisplayName = Prefix + nameof(LiftedKwargWithSameNameAsPositionalArg))] public void LiftedKwargWithSameNameAsPositionalArg() { // This is a replication of a test that mostly affects languages with keyword arguments (e.g: Python, Ruby, ...) var bell = new Bell(); var amb = new AmbiguousParameters(bell, new StructParameterType { Scope = "Driiiing!" }); Assert.Equal(bell, amb.Scope); Assert.Equal("Driiiing!", amb.Props.Scope); } [Fact(DisplayName = Prefix + nameof(AbstractMembersAreCorrectlyHandled))] public void AbstractMembersAreCorrectlyHandled() { var abstractSuite = new AbstractSuiteImpl(); Assert.Equal("Wrapped<String<Oomf!>>", abstractSuite.WorkItAll("Oomf!")); } private sealed class AbstractSuiteImpl : AbstractSuite { private string _property = ""; public AbstractSuiteImpl() {} protected override string SomeMethod(string str) { return $"Wrapped<{str}>"; } protected override string Property { get => _property; set => _property = $"String<{value}>"; } } [Fact(DisplayName = Prefix + nameof(CollectionOfInterfaces_ListOfStructs))] public void CollectionOfInterfaces_ListOfStructs() { foreach (var elt in InterfaceCollections.ListOfStructs()) { Assert.IsAssignableFrom<IStructA>(elt); } } [Fact(DisplayName = Prefix + nameof(CollectionOfInterfaces_ListOfInterfaces))] public void CollectionOfInterfaces_ListOfInterfaces() { foreach (var elt in InterfaceCollections.ListOfInterfaces()) { Assert.IsAssignableFrom<IBell>(elt); } } [Fact(DisplayName = Prefix + nameof(CollectionOfInterfaces_MapOfStructs))] public void CollectionOfInterfaces_MapOfStructs() { foreach (var elt in InterfaceCollections.MapOfStructs().Values) { Assert.IsAssignableFrom<IStructA>(elt); } } [Fact(DisplayName = Prefix + nameof(CollectionOfInterfaces_MapOfInterfaces))] public void CollectionOfInterfaces_MapOfInterfaces() { foreach (var elt in InterfaceCollections.MapOfInterfaces().Values) { Assert.IsAssignableFrom<IBell>(elt); } } } }
37.519022
134
0.591711
[ "Apache-2.0" ]
NGL321/jsii
packages/@jsii/dotnet-runtime-test/test/Amazon.JSII.Runtime.IntegrationTests/ComplianceTests.cs
55,228
C#
namespace _01.MobilePhone { using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; class GSM { //Problem 1: Initialize classes Display, Battery, GSM & Problem 5: Encapsulate all data fields private string model; private string manufacturer; private decimal? price; private string owner; public string Model { get { return model; } set { if (value.Length > 0) { this.model = value; } else { throw new ArgumentException("You must enter Model."); } } } public string Manufacturer { get { return manufacturer; } set { if (value.Length > 0) { this.manufacturer = value; } else { throw new ArgumentException("You must enter Model."); } } } public decimal? Price { get { return price; } set { if (value == null || value >= 0) { this.price = value; } else { throw new ArgumentOutOfRangeException("The price must be positive number."); } } } public string Owner { get { return owner; } set { if (value == null || value.Length > 0) { this.owner = value; } else { throw new ArgumentException(); } } } private Battery battery = new Battery(string.Empty); public Battery Battery { get { return battery; } set { this.battery = value; } } private Display display = new Display(); public Display Display { get { return display; } set { this.display = value; } } //Problem 9: Create list of calls history private List<Call> callHistory = new List<Call>(); public List<Call> CallHistory { get { return callHistory; } set { this.callHistory = value; } } //Problem 2: Define constructors for the classes, model and manufacturer are mandatory public GSM(string model, string manufacturer) { this.model = model; this.manufacturer = manufacturer; this.price = null; this.owner = null; } public GSM(string model, string manufacturer, decimal price) : this(model, manufacturer) { this.price = price; } public GSM(string model, string manufacturer, decimal price, string owner) : this(model, manufacturer, price) { this.owner = owner; } public GSM(string model, string manufacturer, decimal price, string owner, Battery battery) : this(model, manufacturer, price, owner) { this.battery = battery; } public GSM(string model, string manufacturer, decimal price, string owner, Battery battery, Display display) : this(model, manufacturer, price, owner, battery) { this.display = display; } //after task 12 //public GSM(string model, string manufacturer, decimal price, string owner, Battery battery, Display display, Call callhistory) // : this(model, manufacturer, price, owner, battery, display) //{ // this.callHistory = callHistory; //} //Problem 6: Add field and property IPhone4S public static GSM iPhone4S = new GSM("IPhone4S", "Apple", 900, "Dwayne Johnson", new Battery("LiIon", 20, 5), new Display(4, 160000000)); public GSM IPhone4S { get { return GSM.iPhone4S; } private set { } } //Problem 4: Override the ToString() method public override string ToString() { StringBuilder gsmInfo = new StringBuilder(); gsmInfo.AppendFormat("Model: {0}\n", this.model); gsmInfo.AppendFormat("Manufacturer: {0}\n", this.manufacturer); gsmInfo.AppendFormat("Price: {0}\n", this.price); gsmInfo.AppendFormat("Owner: {0}\n", this.owner); gsmInfo.AppendFormat("Battery Model: {0}\n", this.Battery.Model); gsmInfo.AppendFormat("Battery Idle Hours: {0}\n", this.Battery.HoursIdle); gsmInfo.AppendFormat("Battery Idle Talk: {0}\n", this.Battery.HoursTalk); gsmInfo.AppendFormat("Display Size: {0}\n", this.Display.Size); gsmInfo.AppendFormat("Display colors: {0}\n", this.Display.Colors); return gsmInfo.ToString(); } //Problem 10: Add, delete, clear calls history & Problem 11: Calculating price of calls public void AddCall(Call currentCall) { this.callHistory.Add(currentCall); } public void RemoveCall() { decimal bestDuration = decimal.MinValue; decimal currentDuration = 0; int index = 0; int searchedIndex = 0; for (int i = 0; i < callHistory.Count; i++) { currentDuration = 0; for (int j = 0; j < callHistory.Count; j++) { if (callHistory[i].DurationCall > callHistory[j].DurationCall) { currentDuration = callHistory[i].DurationCall.Value; index = i; } } if (currentDuration > bestDuration) { bestDuration = currentDuration; searchedIndex = index; } } callHistory.RemoveAt(searchedIndex); } public void ClearCallHistory() { this.callHistory.Clear(); } public decimal PriceCalc(decimal pricePerMinute) { decimal totalMinutes = 0; decimal totalPrice = 0m; foreach (var seconds in callHistory) { totalMinutes += (decimal)(seconds.DurationCall) / 60; } return totalPrice = totalMinutes * pricePerMinute; } } }
32.085308
136
0.493796
[ "MIT" ]
baretata/CSharpOOP
01.DefiningClassesPart1/01.MobilePhone/GSM.cs
6,772
C#
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System.Diagnostics.CodeAnalysis; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.DependencyInjection.Extensions; using Microsoft.Extensions.Options; namespace Microsoft.AspNetCore.Authentication; /// <summary> /// Used to configure authentication /// </summary> public class AuthenticationBuilder { /// <summary> /// Initializes a new instance of <see cref="AuthenticationBuilder"/>. /// </summary> /// <param name="services">The services being configured.</param> public AuthenticationBuilder(IServiceCollection services) => Services = services; /// <summary> /// The services being configured. /// </summary> public virtual IServiceCollection Services { get; } private AuthenticationBuilder AddSchemeHelper<TOptions, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] THandler>(string authenticationScheme, string? displayName, Action<TOptions>? configureOptions) where TOptions : AuthenticationSchemeOptions, new() where THandler : class, IAuthenticationHandler { Services.Configure<AuthenticationOptions>(o => { o.AddScheme(authenticationScheme, scheme => { scheme.HandlerType = typeof(THandler); scheme.DisplayName = displayName; }); }); if (configureOptions != null) { Services.Configure(authenticationScheme, configureOptions); } Services.AddOptions<TOptions>(authenticationScheme).Validate(o => { o.Validate(authenticationScheme); return true; }); Services.AddTransient<THandler>(); return this; } /// <summary> /// Adds a <see cref="AuthenticationScheme"/> which can be used by <see cref="IAuthenticationService"/>. /// </summary> /// <typeparam name="TOptions">The <see cref="AuthenticationSchemeOptions"/> type to configure the handler."/>.</typeparam> /// <typeparam name="THandler">The <see cref="AuthenticationHandler{TOptions}"/> used to handle this scheme.</typeparam> /// <param name="authenticationScheme">The name of this scheme.</param> /// <param name="displayName">The display name of this scheme.</param> /// <param name="configureOptions">Used to configure the scheme options.</param> /// <returns>The builder.</returns> public virtual AuthenticationBuilder AddScheme<TOptions, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] THandler>(string authenticationScheme, string? displayName, Action<TOptions>? configureOptions) where TOptions : AuthenticationSchemeOptions, new() where THandler : AuthenticationHandler<TOptions> => AddSchemeHelper<TOptions, THandler>(authenticationScheme, displayName, configureOptions); /// <summary> /// Adds a <see cref="AuthenticationScheme"/> which can be used by <see cref="IAuthenticationService"/>. /// </summary> /// <typeparam name="TOptions">The <see cref="AuthenticationSchemeOptions"/> type to configure the handler."/>.</typeparam> /// <typeparam name="THandler">The <see cref="AuthenticationHandler{TOptions}"/> used to handle this scheme.</typeparam> /// <param name="authenticationScheme">The name of this scheme.</param> /// <param name="configureOptions">Used to configure the scheme options.</param> /// <returns>The builder.</returns> public virtual AuthenticationBuilder AddScheme<TOptions, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] THandler>(string authenticationScheme, Action<TOptions>? configureOptions) where TOptions : AuthenticationSchemeOptions, new() where THandler : AuthenticationHandler<TOptions> => AddScheme<TOptions, THandler>(authenticationScheme, displayName: null, configureOptions: configureOptions); /// <summary> /// Adds a <see cref="RemoteAuthenticationHandler{TOptions}"/> based <see cref="AuthenticationScheme"/> that supports remote authentication /// which can be used by <see cref="IAuthenticationService"/>. /// </summary> /// <typeparam name="TOptions">The <see cref="RemoteAuthenticationOptions"/> type to configure the handler."/>.</typeparam> /// <typeparam name="THandler">The <see cref="RemoteAuthenticationHandler{TOptions}"/> used to handle this scheme.</typeparam> /// <param name="authenticationScheme">The name of this scheme.</param> /// <param name="displayName">The display name of this scheme.</param> /// <param name="configureOptions">Used to configure the scheme options.</param> /// <returns>The builder.</returns> public virtual AuthenticationBuilder AddRemoteScheme<TOptions, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] THandler>(string authenticationScheme, string? displayName, Action<TOptions>? configureOptions) where TOptions : RemoteAuthenticationOptions, new() where THandler : RemoteAuthenticationHandler<TOptions> { Services.TryAddEnumerable(ServiceDescriptor.Singleton<IPostConfigureOptions<TOptions>, EnsureSignInScheme<TOptions>>()); return AddScheme<TOptions, THandler>(authenticationScheme, displayName, configureOptions: configureOptions); } /// <summary> /// Adds a <see cref="PolicySchemeHandler"/> based authentication handler which can be used to /// redirect to other authentication schemes. /// </summary> /// <param name="authenticationScheme">The name of this scheme.</param> /// <param name="displayName">The display name of this scheme.</param> /// <param name="configureOptions">Used to configure the scheme options.</param> /// <returns>The builder.</returns> public virtual AuthenticationBuilder AddPolicyScheme(string authenticationScheme, string? displayName, Action<PolicySchemeOptions> configureOptions) => AddSchemeHelper<PolicySchemeOptions, PolicySchemeHandler>(authenticationScheme, displayName, configureOptions); // Used to ensure that there's always a default sign in scheme that's not itself private sealed class EnsureSignInScheme<TOptions> : IPostConfigureOptions<TOptions> where TOptions : RemoteAuthenticationOptions { private readonly AuthenticationOptions _authOptions; public EnsureSignInScheme(IOptions<AuthenticationOptions> authOptions) { _authOptions = authOptions.Value; } public void PostConfigure(string? name, TOptions options) { options.SignInScheme ??= _authOptions.DefaultSignInScheme ?? _authOptions.DefaultScheme; } } }
54.664
242
0.720328
[ "MIT" ]
SpaceChina/aspnetcore
src/Security/Authentication/Core/src/AuthenticationBuilder.cs
6,833
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace JohnLambe.Util.TimeUtilities { //[ComplexType] public abstract class DateClass { //TODO: Implement (by delegation to Value) other methods and operators. public virtual DateTime Value { get { return _value; } set { _value = PreprocessDateTime(value); } } protected abstract DateTime PreprocessDateTime(DateTime value); public static implicit operator DateTime(DateClass value) { return value.Value; } private DateTime _value; } /// <summary> /// Holds a date whose time part is always 00:00. /// </summary> public class StartDate : DateClass { public StartDate(DateTime value) { this.Value = value; } protected override DateTime PreprocessDateTime(DateTime value) { return value.Date; } public static implicit operator StartDate(DateTime value) { return new StartDate(value); } } /// <summary> /// Holds a date whose time part is always the end of the day. /// </summary> public class EndDate : DateClass { public EndDate(DateTime value) { this.Value = value; } protected override DateTime PreprocessDateTime(DateTime value) { return TimeUtil.EndOfDay(value); } public static implicit operator EndDate(DateTime value) { return new EndDate(value); } } }
23.305556
79
0.585816
[ "MIT" ]
JohnLambe/JLCSUtils
JLCSUtils/JLUtils/TimeUtilities/DateClass.cs
1,680
C#
// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with // the License. You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on // an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the // specific language governing permissions and limitations under the License. //------------------------------------------------------------------------------ // <auto-generated> // This code was generated by google-apis-code-generator 1.5.1 // C# generator version: 1.42.0 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> //------------------------------------------------------------------------------ /** * \brief * Content API for Shopping Version v2 * * \section ApiInfo API Version Information * <table> * <tr><th>API * <td><a href='https://developers.google.com/shopping-content'>Content API for Shopping</a> * <tr><th>API Version<td>v2 * <tr><th>API Rev<td>20191126 (1790) * <tr><th>API Docs * <td><a href='https://developers.google.com/shopping-content'> * https://developers.google.com/shopping-content</a> * <tr><th>Discovery Name<td>content * </table> * * \section ForMoreInfo For More Information * * The complete API documentation for using Content API for Shopping can be found at * <a href='https://developers.google.com/shopping-content'>https://developers.google.com/shopping-content</a>. * * For more information about the Google APIs Client Library for .NET, see * <a href='https://developers.google.com/api-client-library/dotnet/get_started'> * https://developers.google.com/api-client-library/dotnet/get_started</a> */ namespace Google.Apis.ShoppingContent.v2 { /// <summary>The ShoppingContent Service.</summary> public class ShoppingContentService : Google.Apis.Services.BaseClientService { /// <summary>The API version.</summary> public const string Version = "v2"; /// <summary>The discovery version used to generate this service.</summary> public static Google.Apis.Discovery.DiscoveryVersion DiscoveryVersionUsed = Google.Apis.Discovery.DiscoveryVersion.Version_1_0; /// <summary>Constructs a new service.</summary> public ShoppingContentService() : this(new Google.Apis.Services.BaseClientService.Initializer()) {} /// <summary>Constructs a new service.</summary> /// <param name="initializer">The service initializer.</param> public ShoppingContentService(Google.Apis.Services.BaseClientService.Initializer initializer) : base(initializer) { accounts = new AccountsResource(this); accountstatuses = new AccountstatusesResource(this); accounttax = new AccounttaxResource(this); datafeeds = new DatafeedsResource(this); datafeedstatuses = new DatafeedstatusesResource(this); inventory = new InventoryResource(this); liasettings = new LiasettingsResource(this); orderinvoices = new OrderinvoicesResource(this); orderreports = new OrderreportsResource(this); orderreturns = new OrderreturnsResource(this); orders = new OrdersResource(this); pos = new PosResource(this); products = new ProductsResource(this); productstatuses = new ProductstatusesResource(this); shippingsettings = new ShippingsettingsResource(this); } /// <summary>Gets the service supported features.</summary> public override System.Collections.Generic.IList<string> Features { get { return new string[0]; } } /// <summary>Gets the service name.</summary> public override string Name { get { return "content"; } } /// <summary>Gets the service base URI.</summary> public override string BaseUri { #if NETSTANDARD1_3 || NETSTANDARD2_0 || NET45 get { return BaseUriOverride ?? "https://www.googleapis.com/content/v2/"; } #else get { return "https://www.googleapis.com/content/v2/"; } #endif } /// <summary>Gets the service base path.</summary> public override string BasePath { get { return "content/v2/"; } } #if !NET40 /// <summary>Gets the batch base URI; <c>null</c> if unspecified.</summary> public override string BatchUri { get { return "https://www.googleapis.com/batch/content/v2"; } } /// <summary>Gets the batch base path; <c>null</c> if unspecified.</summary> public override string BatchPath { get { return "batch/content/v2"; } } #endif /// <summary>Available OAuth 2.0 scopes for use with the Content API for Shopping.</summary> public class Scope { /// <summary>Manage your product listings and accounts for Google Shopping</summary> public static string Content = "https://www.googleapis.com/auth/content"; } /// <summary>Available OAuth 2.0 scope constants for use with the Content API for Shopping.</summary> public static class ScopeConstants { /// <summary>Manage your product listings and accounts for Google Shopping</summary> public const string Content = "https://www.googleapis.com/auth/content"; } private readonly AccountsResource accounts; /// <summary>Gets the Accounts resource.</summary> public virtual AccountsResource Accounts { get { return accounts; } } private readonly AccountstatusesResource accountstatuses; /// <summary>Gets the Accountstatuses resource.</summary> public virtual AccountstatusesResource Accountstatuses { get { return accountstatuses; } } private readonly AccounttaxResource accounttax; /// <summary>Gets the Accounttax resource.</summary> public virtual AccounttaxResource Accounttax { get { return accounttax; } } private readonly DatafeedsResource datafeeds; /// <summary>Gets the Datafeeds resource.</summary> public virtual DatafeedsResource Datafeeds { get { return datafeeds; } } private readonly DatafeedstatusesResource datafeedstatuses; /// <summary>Gets the Datafeedstatuses resource.</summary> public virtual DatafeedstatusesResource Datafeedstatuses { get { return datafeedstatuses; } } private readonly InventoryResource inventory; /// <summary>Gets the Inventory resource.</summary> public virtual InventoryResource Inventory { get { return inventory; } } private readonly LiasettingsResource liasettings; /// <summary>Gets the Liasettings resource.</summary> public virtual LiasettingsResource Liasettings { get { return liasettings; } } private readonly OrderinvoicesResource orderinvoices; /// <summary>Gets the Orderinvoices resource.</summary> public virtual OrderinvoicesResource Orderinvoices { get { return orderinvoices; } } private readonly OrderreportsResource orderreports; /// <summary>Gets the Orderreports resource.</summary> public virtual OrderreportsResource Orderreports { get { return orderreports; } } private readonly OrderreturnsResource orderreturns; /// <summary>Gets the Orderreturns resource.</summary> public virtual OrderreturnsResource Orderreturns { get { return orderreturns; } } private readonly OrdersResource orders; /// <summary>Gets the Orders resource.</summary> public virtual OrdersResource Orders { get { return orders; } } private readonly PosResource pos; /// <summary>Gets the Pos resource.</summary> public virtual PosResource Pos { get { return pos; } } private readonly ProductsResource products; /// <summary>Gets the Products resource.</summary> public virtual ProductsResource Products { get { return products; } } private readonly ProductstatusesResource productstatuses; /// <summary>Gets the Productstatuses resource.</summary> public virtual ProductstatusesResource Productstatuses { get { return productstatuses; } } private readonly ShippingsettingsResource shippingsettings; /// <summary>Gets the Shippingsettings resource.</summary> public virtual ShippingsettingsResource Shippingsettings { get { return shippingsettings; } } } ///<summary>A base abstract class for ShoppingContent requests.</summary> public abstract class ShoppingContentBaseServiceRequest<TResponse> : Google.Apis.Requests.ClientServiceRequest<TResponse> { ///<summary>Constructs a new ShoppingContentBaseServiceRequest instance.</summary> protected ShoppingContentBaseServiceRequest(Google.Apis.Services.IClientService service) : base(service) { } /// <summary>Data format for the response.</summary> /// [default: json] [Google.Apis.Util.RequestParameterAttribute("alt", Google.Apis.Util.RequestParameterType.Query)] public virtual System.Nullable<AltEnum> Alt { get; set; } /// <summary>Data format for the response.</summary> public enum AltEnum { /// <summary>Responses with Content-Type of application/json</summary> [Google.Apis.Util.StringValueAttribute("json")] Json, } /// <summary>Selector specifying which fields to include in a partial response.</summary> [Google.Apis.Util.RequestParameterAttribute("fields", Google.Apis.Util.RequestParameterType.Query)] public virtual string Fields { get; set; } /// <summary>API key. Your API key identifies your project and provides you with API access, quota, and reports. /// Required unless you provide an OAuth 2.0 token.</summary> [Google.Apis.Util.RequestParameterAttribute("key", Google.Apis.Util.RequestParameterType.Query)] public virtual string Key { get; set; } /// <summary>OAuth 2.0 token for the current user.</summary> [Google.Apis.Util.RequestParameterAttribute("oauth_token", Google.Apis.Util.RequestParameterType.Query)] public virtual string OauthToken { get; set; } /// <summary>Returns response with indentations and line breaks.</summary> /// [default: true] [Google.Apis.Util.RequestParameterAttribute("prettyPrint", Google.Apis.Util.RequestParameterType.Query)] public virtual System.Nullable<bool> PrettyPrint { get; set; } /// <summary>An opaque string that represents a user for quota purposes. Must not exceed 40 /// characters.</summary> [Google.Apis.Util.RequestParameterAttribute("quotaUser", Google.Apis.Util.RequestParameterType.Query)] public virtual string QuotaUser { get; set; } /// <summary>Deprecated. Please use quotaUser instead.</summary> [Google.Apis.Util.RequestParameterAttribute("userIp", Google.Apis.Util.RequestParameterType.Query)] public virtual string UserIp { get; set; } /// <summary>Initializes ShoppingContent parameter list.</summary> protected override void InitParameters() { base.InitParameters(); RequestParameters.Add( "alt", new Google.Apis.Discovery.Parameter { Name = "alt", IsRequired = false, ParameterType = "query", DefaultValue = "json", Pattern = null, }); RequestParameters.Add( "fields", new Google.Apis.Discovery.Parameter { Name = "fields", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); RequestParameters.Add( "key", new Google.Apis.Discovery.Parameter { Name = "key", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); RequestParameters.Add( "oauth_token", new Google.Apis.Discovery.Parameter { Name = "oauth_token", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); RequestParameters.Add( "prettyPrint", new Google.Apis.Discovery.Parameter { Name = "prettyPrint", IsRequired = false, ParameterType = "query", DefaultValue = "true", Pattern = null, }); RequestParameters.Add( "quotaUser", new Google.Apis.Discovery.Parameter { Name = "quotaUser", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); RequestParameters.Add( "userIp", new Google.Apis.Discovery.Parameter { Name = "userIp", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); } } /// <summary>The "accounts" collection of methods.</summary> public class AccountsResource { private const string Resource = "accounts"; /// <summary>The service which this resource belongs to.</summary> private readonly Google.Apis.Services.IClientService service; /// <summary>Constructs a new resource.</summary> public AccountsResource(Google.Apis.Services.IClientService service) { this.service = service; } /// <summary>Returns information about the authenticated user.</summary> public virtual AuthinfoRequest Authinfo() { return new AuthinfoRequest(service); } /// <summary>Returns information about the authenticated user.</summary> public class AuthinfoRequest : ShoppingContentBaseServiceRequest<Google.Apis.ShoppingContent.v2.Data.AccountsAuthInfoResponse> { /// <summary>Constructs a new Authinfo request.</summary> public AuthinfoRequest(Google.Apis.Services.IClientService service) : base(service) { InitParameters(); } ///<summary>Gets the method name.</summary> public override string MethodName { get { return "authinfo"; } } ///<summary>Gets the HTTP method.</summary> public override string HttpMethod { get { return "GET"; } } ///<summary>Gets the REST path.</summary> public override string RestPath { get { return "accounts/authinfo"; } } /// <summary>Initializes Authinfo parameter list.</summary> protected override void InitParameters() { base.InitParameters(); } } /// <summary>Claims the website of a Merchant Center sub-account.</summary> /// <param name="merchantId">The ID of the managing account. If this parameter is not the same as accountId, then this /// account must be a multi-client account and accountId must be the ID of a sub-account of this /// account.</param> /// <param name="accountId">The ID of the account whose website is claimed.</param> public virtual ClaimwebsiteRequest Claimwebsite(ulong merchantId, ulong accountId) { return new ClaimwebsiteRequest(service, merchantId, accountId); } /// <summary>Claims the website of a Merchant Center sub-account.</summary> public class ClaimwebsiteRequest : ShoppingContentBaseServiceRequest<Google.Apis.ShoppingContent.v2.Data.AccountsClaimWebsiteResponse> { /// <summary>Constructs a new Claimwebsite request.</summary> public ClaimwebsiteRequest(Google.Apis.Services.IClientService service, ulong merchantId, ulong accountId) : base(service) { MerchantId = merchantId; AccountId = accountId; InitParameters(); } /// <summary>The ID of the managing account. If this parameter is not the same as accountId, then this /// account must be a multi-client account and accountId must be the ID of a sub-account of this /// account.</summary> [Google.Apis.Util.RequestParameterAttribute("merchantId", Google.Apis.Util.RequestParameterType.Path)] public virtual ulong MerchantId { get; private set; } /// <summary>The ID of the account whose website is claimed.</summary> [Google.Apis.Util.RequestParameterAttribute("accountId", Google.Apis.Util.RequestParameterType.Path)] public virtual ulong AccountId { get; private set; } /// <summary>Only available to selected merchants. When set to True, this flag removes any existing claim on /// the requested website by another account and replaces it with a claim from this account.</summary> [Google.Apis.Util.RequestParameterAttribute("overwrite", Google.Apis.Util.RequestParameterType.Query)] public virtual System.Nullable<bool> Overwrite { get; set; } ///<summary>Gets the method name.</summary> public override string MethodName { get { return "claimwebsite"; } } ///<summary>Gets the HTTP method.</summary> public override string HttpMethod { get { return "POST"; } } ///<summary>Gets the REST path.</summary> public override string RestPath { get { return "{merchantId}/accounts/{accountId}/claimwebsite"; } } /// <summary>Initializes Claimwebsite parameter list.</summary> protected override void InitParameters() { base.InitParameters(); RequestParameters.Add( "merchantId", new Google.Apis.Discovery.Parameter { Name = "merchantId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add( "accountId", new Google.Apis.Discovery.Parameter { Name = "accountId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add( "overwrite", new Google.Apis.Discovery.Parameter { Name = "overwrite", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); } } /// <summary>Retrieves, inserts, updates, and deletes multiple Merchant Center (sub-)accounts in a single /// request.</summary> /// <param name="body">The body of the request.</param> public virtual CustombatchRequest Custombatch(Google.Apis.ShoppingContent.v2.Data.AccountsCustomBatchRequest body) { return new CustombatchRequest(service, body); } /// <summary>Retrieves, inserts, updates, and deletes multiple Merchant Center (sub-)accounts in a single /// request.</summary> public class CustombatchRequest : ShoppingContentBaseServiceRequest<Google.Apis.ShoppingContent.v2.Data.AccountsCustomBatchResponse> { /// <summary>Constructs a new Custombatch request.</summary> public CustombatchRequest(Google.Apis.Services.IClientService service, Google.Apis.ShoppingContent.v2.Data.AccountsCustomBatchRequest body) : base(service) { Body = body; InitParameters(); } /// <summary>Flag to simulate a request like in a live environment. If set to true, dry-run mode checks the /// validity of the request and returns errors (if any).</summary> [Google.Apis.Util.RequestParameterAttribute("dryRun", Google.Apis.Util.RequestParameterType.Query)] public virtual System.Nullable<bool> DryRun { get; set; } /// <summary>Gets or sets the body of this request.</summary> Google.Apis.ShoppingContent.v2.Data.AccountsCustomBatchRequest Body { get; set; } ///<summary>Returns the body of the request.</summary> protected override object GetBody() { return Body; } ///<summary>Gets the method name.</summary> public override string MethodName { get { return "custombatch"; } } ///<summary>Gets the HTTP method.</summary> public override string HttpMethod { get { return "POST"; } } ///<summary>Gets the REST path.</summary> public override string RestPath { get { return "accounts/batch"; } } /// <summary>Initializes Custombatch parameter list.</summary> protected override void InitParameters() { base.InitParameters(); RequestParameters.Add( "dryRun", new Google.Apis.Discovery.Parameter { Name = "dryRun", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); } } /// <summary>Deletes a Merchant Center sub-account.</summary> /// <param name="merchantId">The ID of the managing account. This must be a multi-client account, and accountId must be /// the ID of a sub-account of this account.</param> /// <param name="accountId">The ID of the account.</param> public virtual DeleteRequest Delete(ulong merchantId, ulong accountId) { return new DeleteRequest(service, merchantId, accountId); } /// <summary>Deletes a Merchant Center sub-account.</summary> public class DeleteRequest : ShoppingContentBaseServiceRequest<string> { /// <summary>Constructs a new Delete request.</summary> public DeleteRequest(Google.Apis.Services.IClientService service, ulong merchantId, ulong accountId) : base(service) { MerchantId = merchantId; AccountId = accountId; InitParameters(); } /// <summary>The ID of the managing account. This must be a multi-client account, and accountId must be the /// ID of a sub-account of this account.</summary> [Google.Apis.Util.RequestParameterAttribute("merchantId", Google.Apis.Util.RequestParameterType.Path)] public virtual ulong MerchantId { get; private set; } /// <summary>The ID of the account.</summary> [Google.Apis.Util.RequestParameterAttribute("accountId", Google.Apis.Util.RequestParameterType.Path)] public virtual ulong AccountId { get; private set; } /// <summary>Flag to simulate a request like in a live environment. If set to true, dry-run mode checks the /// validity of the request and returns errors (if any).</summary> [Google.Apis.Util.RequestParameterAttribute("dryRun", Google.Apis.Util.RequestParameterType.Query)] public virtual System.Nullable<bool> DryRun { get; set; } /// <summary>Flag to delete sub-accounts with products. The default value is false.</summary> /// [default: false] [Google.Apis.Util.RequestParameterAttribute("force", Google.Apis.Util.RequestParameterType.Query)] public virtual System.Nullable<bool> Force { get; set; } ///<summary>Gets the method name.</summary> public override string MethodName { get { return "delete"; } } ///<summary>Gets the HTTP method.</summary> public override string HttpMethod { get { return "DELETE"; } } ///<summary>Gets the REST path.</summary> public override string RestPath { get { return "{merchantId}/accounts/{accountId}"; } } /// <summary>Initializes Delete parameter list.</summary> protected override void InitParameters() { base.InitParameters(); RequestParameters.Add( "merchantId", new Google.Apis.Discovery.Parameter { Name = "merchantId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add( "accountId", new Google.Apis.Discovery.Parameter { Name = "accountId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add( "dryRun", new Google.Apis.Discovery.Parameter { Name = "dryRun", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); RequestParameters.Add( "force", new Google.Apis.Discovery.Parameter { Name = "force", IsRequired = false, ParameterType = "query", DefaultValue = "false", Pattern = null, }); } } /// <summary>Retrieves a Merchant Center account.</summary> /// <param name="merchantId">The ID of the managing account. If this parameter is not the same as accountId, then this /// account must be a multi-client account and accountId must be the ID of a sub-account of this /// account.</param> /// <param name="accountId">The ID of the account.</param> public virtual GetRequest Get(ulong merchantId, ulong accountId) { return new GetRequest(service, merchantId, accountId); } /// <summary>Retrieves a Merchant Center account.</summary> public class GetRequest : ShoppingContentBaseServiceRequest<Google.Apis.ShoppingContent.v2.Data.Account> { /// <summary>Constructs a new Get request.</summary> public GetRequest(Google.Apis.Services.IClientService service, ulong merchantId, ulong accountId) : base(service) { MerchantId = merchantId; AccountId = accountId; InitParameters(); } /// <summary>The ID of the managing account. If this parameter is not the same as accountId, then this /// account must be a multi-client account and accountId must be the ID of a sub-account of this /// account.</summary> [Google.Apis.Util.RequestParameterAttribute("merchantId", Google.Apis.Util.RequestParameterType.Path)] public virtual ulong MerchantId { get; private set; } /// <summary>The ID of the account.</summary> [Google.Apis.Util.RequestParameterAttribute("accountId", Google.Apis.Util.RequestParameterType.Path)] public virtual ulong AccountId { get; private set; } ///<summary>Gets the method name.</summary> public override string MethodName { get { return "get"; } } ///<summary>Gets the HTTP method.</summary> public override string HttpMethod { get { return "GET"; } } ///<summary>Gets the REST path.</summary> public override string RestPath { get { return "{merchantId}/accounts/{accountId}"; } } /// <summary>Initializes Get parameter list.</summary> protected override void InitParameters() { base.InitParameters(); RequestParameters.Add( "merchantId", new Google.Apis.Discovery.Parameter { Name = "merchantId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add( "accountId", new Google.Apis.Discovery.Parameter { Name = "accountId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); } } /// <summary>Creates a Merchant Center sub-account.</summary> /// <param name="body">The body of the request.</param> /// <param name="merchantId">The ID of the managing account. This must be a multi-client account.</param> public virtual InsertRequest Insert(Google.Apis.ShoppingContent.v2.Data.Account body, ulong merchantId) { return new InsertRequest(service, body, merchantId); } /// <summary>Creates a Merchant Center sub-account.</summary> public class InsertRequest : ShoppingContentBaseServiceRequest<Google.Apis.ShoppingContent.v2.Data.Account> { /// <summary>Constructs a new Insert request.</summary> public InsertRequest(Google.Apis.Services.IClientService service, Google.Apis.ShoppingContent.v2.Data.Account body, ulong merchantId) : base(service) { MerchantId = merchantId; Body = body; InitParameters(); } /// <summary>The ID of the managing account. This must be a multi-client account.</summary> [Google.Apis.Util.RequestParameterAttribute("merchantId", Google.Apis.Util.RequestParameterType.Path)] public virtual ulong MerchantId { get; private set; } /// <summary>Flag to simulate a request like in a live environment. If set to true, dry-run mode checks the /// validity of the request and returns errors (if any).</summary> [Google.Apis.Util.RequestParameterAttribute("dryRun", Google.Apis.Util.RequestParameterType.Query)] public virtual System.Nullable<bool> DryRun { get; set; } /// <summary>Gets or sets the body of this request.</summary> Google.Apis.ShoppingContent.v2.Data.Account Body { get; set; } ///<summary>Returns the body of the request.</summary> protected override object GetBody() { return Body; } ///<summary>Gets the method name.</summary> public override string MethodName { get { return "insert"; } } ///<summary>Gets the HTTP method.</summary> public override string HttpMethod { get { return "POST"; } } ///<summary>Gets the REST path.</summary> public override string RestPath { get { return "{merchantId}/accounts"; } } /// <summary>Initializes Insert parameter list.</summary> protected override void InitParameters() { base.InitParameters(); RequestParameters.Add( "merchantId", new Google.Apis.Discovery.Parameter { Name = "merchantId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add( "dryRun", new Google.Apis.Discovery.Parameter { Name = "dryRun", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); } } /// <summary>Performs an action on a link between two Merchant Center accounts, namely accountId and /// linkedAccountId.</summary> /// <param name="body">The body of the request.</param> /// <param name="merchantId">The ID of the managing account. If this parameter is not the same as accountId, then this /// account must be a multi-client account and accountId must be the ID of a sub-account of this /// account.</param> /// <param name="accountId">The ID of the account that should be linked.</param> public virtual LinkRequest Link(Google.Apis.ShoppingContent.v2.Data.AccountsLinkRequest body, ulong merchantId, ulong accountId) { return new LinkRequest(service, body, merchantId, accountId); } /// <summary>Performs an action on a link between two Merchant Center accounts, namely accountId and /// linkedAccountId.</summary> public class LinkRequest : ShoppingContentBaseServiceRequest<Google.Apis.ShoppingContent.v2.Data.AccountsLinkResponse> { /// <summary>Constructs a new Link request.</summary> public LinkRequest(Google.Apis.Services.IClientService service, Google.Apis.ShoppingContent.v2.Data.AccountsLinkRequest body, ulong merchantId, ulong accountId) : base(service) { MerchantId = merchantId; AccountId = accountId; Body = body; InitParameters(); } /// <summary>The ID of the managing account. If this parameter is not the same as accountId, then this /// account must be a multi-client account and accountId must be the ID of a sub-account of this /// account.</summary> [Google.Apis.Util.RequestParameterAttribute("merchantId", Google.Apis.Util.RequestParameterType.Path)] public virtual ulong MerchantId { get; private set; } /// <summary>The ID of the account that should be linked.</summary> [Google.Apis.Util.RequestParameterAttribute("accountId", Google.Apis.Util.RequestParameterType.Path)] public virtual ulong AccountId { get; private set; } /// <summary>Gets or sets the body of this request.</summary> Google.Apis.ShoppingContent.v2.Data.AccountsLinkRequest Body { get; set; } ///<summary>Returns the body of the request.</summary> protected override object GetBody() { return Body; } ///<summary>Gets the method name.</summary> public override string MethodName { get { return "link"; } } ///<summary>Gets the HTTP method.</summary> public override string HttpMethod { get { return "POST"; } } ///<summary>Gets the REST path.</summary> public override string RestPath { get { return "{merchantId}/accounts/{accountId}/link"; } } /// <summary>Initializes Link parameter list.</summary> protected override void InitParameters() { base.InitParameters(); RequestParameters.Add( "merchantId", new Google.Apis.Discovery.Parameter { Name = "merchantId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add( "accountId", new Google.Apis.Discovery.Parameter { Name = "accountId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); } } /// <summary>Lists the sub-accounts in your Merchant Center account.</summary> /// <param name="merchantId">The ID of the managing account. This must be a multi-client account.</param> public virtual ListRequest List(ulong merchantId) { return new ListRequest(service, merchantId); } /// <summary>Lists the sub-accounts in your Merchant Center account.</summary> public class ListRequest : ShoppingContentBaseServiceRequest<Google.Apis.ShoppingContent.v2.Data.AccountsListResponse> { /// <summary>Constructs a new List request.</summary> public ListRequest(Google.Apis.Services.IClientService service, ulong merchantId) : base(service) { MerchantId = merchantId; InitParameters(); } /// <summary>The ID of the managing account. This must be a multi-client account.</summary> [Google.Apis.Util.RequestParameterAttribute("merchantId", Google.Apis.Util.RequestParameterType.Path)] public virtual ulong MerchantId { get; private set; } /// <summary>The maximum number of accounts to return in the response, used for paging.</summary> [Google.Apis.Util.RequestParameterAttribute("maxResults", Google.Apis.Util.RequestParameterType.Query)] public virtual System.Nullable<long> MaxResults { get; set; } /// <summary>The token returned by the previous request.</summary> [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] public virtual string PageToken { get; set; } ///<summary>Gets the method name.</summary> public override string MethodName { get { return "list"; } } ///<summary>Gets the HTTP method.</summary> public override string HttpMethod { get { return "GET"; } } ///<summary>Gets the REST path.</summary> public override string RestPath { get { return "{merchantId}/accounts"; } } /// <summary>Initializes List parameter list.</summary> protected override void InitParameters() { base.InitParameters(); RequestParameters.Add( "merchantId", new Google.Apis.Discovery.Parameter { Name = "merchantId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add( "maxResults", new Google.Apis.Discovery.Parameter { Name = "maxResults", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); RequestParameters.Add( "pageToken", new Google.Apis.Discovery.Parameter { Name = "pageToken", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); } } /// <summary>Updates a Merchant Center account.</summary> /// <param name="body">The body of the request.</param> /// <param name="merchantId">The ID of the managing account. If this parameter is not the same as accountId, then this /// account must be a multi-client account and accountId must be the ID of a sub-account of this /// account.</param> /// <param name="accountId">The ID of the account.</param> public virtual UpdateRequest Update(Google.Apis.ShoppingContent.v2.Data.Account body, ulong merchantId, ulong accountId) { return new UpdateRequest(service, body, merchantId, accountId); } /// <summary>Updates a Merchant Center account.</summary> public class UpdateRequest : ShoppingContentBaseServiceRequest<Google.Apis.ShoppingContent.v2.Data.Account> { /// <summary>Constructs a new Update request.</summary> public UpdateRequest(Google.Apis.Services.IClientService service, Google.Apis.ShoppingContent.v2.Data.Account body, ulong merchantId, ulong accountId) : base(service) { MerchantId = merchantId; AccountId = accountId; Body = body; InitParameters(); } /// <summary>The ID of the managing account. If this parameter is not the same as accountId, then this /// account must be a multi-client account and accountId must be the ID of a sub-account of this /// account.</summary> [Google.Apis.Util.RequestParameterAttribute("merchantId", Google.Apis.Util.RequestParameterType.Path)] public virtual ulong MerchantId { get; private set; } /// <summary>The ID of the account.</summary> [Google.Apis.Util.RequestParameterAttribute("accountId", Google.Apis.Util.RequestParameterType.Path)] public virtual ulong AccountId { get; private set; } /// <summary>Flag to simulate a request like in a live environment. If set to true, dry-run mode checks the /// validity of the request and returns errors (if any).</summary> [Google.Apis.Util.RequestParameterAttribute("dryRun", Google.Apis.Util.RequestParameterType.Query)] public virtual System.Nullable<bool> DryRun { get; set; } /// <summary>Gets or sets the body of this request.</summary> Google.Apis.ShoppingContent.v2.Data.Account Body { get; set; } ///<summary>Returns the body of the request.</summary> protected override object GetBody() { return Body; } ///<summary>Gets the method name.</summary> public override string MethodName { get { return "update"; } } ///<summary>Gets the HTTP method.</summary> public override string HttpMethod { get { return "PUT"; } } ///<summary>Gets the REST path.</summary> public override string RestPath { get { return "{merchantId}/accounts/{accountId}"; } } /// <summary>Initializes Update parameter list.</summary> protected override void InitParameters() { base.InitParameters(); RequestParameters.Add( "merchantId", new Google.Apis.Discovery.Parameter { Name = "merchantId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add( "accountId", new Google.Apis.Discovery.Parameter { Name = "accountId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add( "dryRun", new Google.Apis.Discovery.Parameter { Name = "dryRun", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); } } } /// <summary>The "accountstatuses" collection of methods.</summary> public class AccountstatusesResource { private const string Resource = "accountstatuses"; /// <summary>The service which this resource belongs to.</summary> private readonly Google.Apis.Services.IClientService service; /// <summary>Constructs a new resource.</summary> public AccountstatusesResource(Google.Apis.Services.IClientService service) { this.service = service; } /// <summary>Retrieves multiple Merchant Center account statuses in a single request.</summary> /// <param name="body">The body of the request.</param> public virtual CustombatchRequest Custombatch(Google.Apis.ShoppingContent.v2.Data.AccountstatusesCustomBatchRequest body) { return new CustombatchRequest(service, body); } /// <summary>Retrieves multiple Merchant Center account statuses in a single request.</summary> public class CustombatchRequest : ShoppingContentBaseServiceRequest<Google.Apis.ShoppingContent.v2.Data.AccountstatusesCustomBatchResponse> { /// <summary>Constructs a new Custombatch request.</summary> public CustombatchRequest(Google.Apis.Services.IClientService service, Google.Apis.ShoppingContent.v2.Data.AccountstatusesCustomBatchRequest body) : base(service) { Body = body; InitParameters(); } /// <summary>Gets or sets the body of this request.</summary> Google.Apis.ShoppingContent.v2.Data.AccountstatusesCustomBatchRequest Body { get; set; } ///<summary>Returns the body of the request.</summary> protected override object GetBody() { return Body; } ///<summary>Gets the method name.</summary> public override string MethodName { get { return "custombatch"; } } ///<summary>Gets the HTTP method.</summary> public override string HttpMethod { get { return "POST"; } } ///<summary>Gets the REST path.</summary> public override string RestPath { get { return "accountstatuses/batch"; } } /// <summary>Initializes Custombatch parameter list.</summary> protected override void InitParameters() { base.InitParameters(); } } /// <summary>Retrieves the status of a Merchant Center account. No itemLevelIssues are returned for multi-client /// accounts.</summary> /// <param name="merchantId">The ID of the managing account. If this parameter is not the same as accountId, then this /// account must be a multi-client account and accountId must be the ID of a sub-account of this /// account.</param> /// <param name="accountId">The ID of the account.</param> public virtual GetRequest Get(ulong merchantId, ulong accountId) { return new GetRequest(service, merchantId, accountId); } /// <summary>Retrieves the status of a Merchant Center account. No itemLevelIssues are returned for multi-client /// accounts.</summary> public class GetRequest : ShoppingContentBaseServiceRequest<Google.Apis.ShoppingContent.v2.Data.AccountStatus> { /// <summary>Constructs a new Get request.</summary> public GetRequest(Google.Apis.Services.IClientService service, ulong merchantId, ulong accountId) : base(service) { MerchantId = merchantId; AccountId = accountId; InitParameters(); } /// <summary>The ID of the managing account. If this parameter is not the same as accountId, then this /// account must be a multi-client account and accountId must be the ID of a sub-account of this /// account.</summary> [Google.Apis.Util.RequestParameterAttribute("merchantId", Google.Apis.Util.RequestParameterType.Path)] public virtual ulong MerchantId { get; private set; } /// <summary>The ID of the account.</summary> [Google.Apis.Util.RequestParameterAttribute("accountId", Google.Apis.Util.RequestParameterType.Path)] public virtual ulong AccountId { get; private set; } /// <summary>If set, only issues for the specified destinations are returned, otherwise only issues for the /// Shopping destination.</summary> [Google.Apis.Util.RequestParameterAttribute("destinations", Google.Apis.Util.RequestParameterType.Query)] public virtual Google.Apis.Util.Repeatable<string> Destinations { get; set; } ///<summary>Gets the method name.</summary> public override string MethodName { get { return "get"; } } ///<summary>Gets the HTTP method.</summary> public override string HttpMethod { get { return "GET"; } } ///<summary>Gets the REST path.</summary> public override string RestPath { get { return "{merchantId}/accountstatuses/{accountId}"; } } /// <summary>Initializes Get parameter list.</summary> protected override void InitParameters() { base.InitParameters(); RequestParameters.Add( "merchantId", new Google.Apis.Discovery.Parameter { Name = "merchantId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add( "accountId", new Google.Apis.Discovery.Parameter { Name = "accountId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add( "destinations", new Google.Apis.Discovery.Parameter { Name = "destinations", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); } } /// <summary>Lists the statuses of the sub-accounts in your Merchant Center account.</summary> /// <param name="merchantId">The ID of the managing account. This must be a multi-client account.</param> public virtual ListRequest List(ulong merchantId) { return new ListRequest(service, merchantId); } /// <summary>Lists the statuses of the sub-accounts in your Merchant Center account.</summary> public class ListRequest : ShoppingContentBaseServiceRequest<Google.Apis.ShoppingContent.v2.Data.AccountstatusesListResponse> { /// <summary>Constructs a new List request.</summary> public ListRequest(Google.Apis.Services.IClientService service, ulong merchantId) : base(service) { MerchantId = merchantId; InitParameters(); } /// <summary>The ID of the managing account. This must be a multi-client account.</summary> [Google.Apis.Util.RequestParameterAttribute("merchantId", Google.Apis.Util.RequestParameterType.Path)] public virtual ulong MerchantId { get; private set; } /// <summary>If set, only issues for the specified destinations are returned, otherwise only issues for the /// Shopping destination.</summary> [Google.Apis.Util.RequestParameterAttribute("destinations", Google.Apis.Util.RequestParameterType.Query)] public virtual Google.Apis.Util.Repeatable<string> Destinations { get; set; } /// <summary>The maximum number of account statuses to return in the response, used for paging.</summary> [Google.Apis.Util.RequestParameterAttribute("maxResults", Google.Apis.Util.RequestParameterType.Query)] public virtual System.Nullable<long> MaxResults { get; set; } /// <summary>The token returned by the previous request.</summary> [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] public virtual string PageToken { get; set; } ///<summary>Gets the method name.</summary> public override string MethodName { get { return "list"; } } ///<summary>Gets the HTTP method.</summary> public override string HttpMethod { get { return "GET"; } } ///<summary>Gets the REST path.</summary> public override string RestPath { get { return "{merchantId}/accountstatuses"; } } /// <summary>Initializes List parameter list.</summary> protected override void InitParameters() { base.InitParameters(); RequestParameters.Add( "merchantId", new Google.Apis.Discovery.Parameter { Name = "merchantId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add( "destinations", new Google.Apis.Discovery.Parameter { Name = "destinations", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); RequestParameters.Add( "maxResults", new Google.Apis.Discovery.Parameter { Name = "maxResults", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); RequestParameters.Add( "pageToken", new Google.Apis.Discovery.Parameter { Name = "pageToken", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); } } } /// <summary>The "accounttax" collection of methods.</summary> public class AccounttaxResource { private const string Resource = "accounttax"; /// <summary>The service which this resource belongs to.</summary> private readonly Google.Apis.Services.IClientService service; /// <summary>Constructs a new resource.</summary> public AccounttaxResource(Google.Apis.Services.IClientService service) { this.service = service; } /// <summary>Retrieves and updates tax settings of multiple accounts in a single request.</summary> /// <param name="body">The body of the request.</param> public virtual CustombatchRequest Custombatch(Google.Apis.ShoppingContent.v2.Data.AccounttaxCustomBatchRequest body) { return new CustombatchRequest(service, body); } /// <summary>Retrieves and updates tax settings of multiple accounts in a single request.</summary> public class CustombatchRequest : ShoppingContentBaseServiceRequest<Google.Apis.ShoppingContent.v2.Data.AccounttaxCustomBatchResponse> { /// <summary>Constructs a new Custombatch request.</summary> public CustombatchRequest(Google.Apis.Services.IClientService service, Google.Apis.ShoppingContent.v2.Data.AccounttaxCustomBatchRequest body) : base(service) { Body = body; InitParameters(); } /// <summary>Flag to simulate a request like in a live environment. If set to true, dry-run mode checks the /// validity of the request and returns errors (if any).</summary> [Google.Apis.Util.RequestParameterAttribute("dryRun", Google.Apis.Util.RequestParameterType.Query)] public virtual System.Nullable<bool> DryRun { get; set; } /// <summary>Gets or sets the body of this request.</summary> Google.Apis.ShoppingContent.v2.Data.AccounttaxCustomBatchRequest Body { get; set; } ///<summary>Returns the body of the request.</summary> protected override object GetBody() { return Body; } ///<summary>Gets the method name.</summary> public override string MethodName { get { return "custombatch"; } } ///<summary>Gets the HTTP method.</summary> public override string HttpMethod { get { return "POST"; } } ///<summary>Gets the REST path.</summary> public override string RestPath { get { return "accounttax/batch"; } } /// <summary>Initializes Custombatch parameter list.</summary> protected override void InitParameters() { base.InitParameters(); RequestParameters.Add( "dryRun", new Google.Apis.Discovery.Parameter { Name = "dryRun", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); } } /// <summary>Retrieves the tax settings of the account.</summary> /// <param name="merchantId">The ID of the managing account. If this parameter is not the same as accountId, then this /// account must be a multi-client account and accountId must be the ID of a sub-account of this /// account.</param> /// <param name="accountId">The ID of the account for which to get/update account tax /// settings.</param> public virtual GetRequest Get(ulong merchantId, ulong accountId) { return new GetRequest(service, merchantId, accountId); } /// <summary>Retrieves the tax settings of the account.</summary> public class GetRequest : ShoppingContentBaseServiceRequest<Google.Apis.ShoppingContent.v2.Data.AccountTax> { /// <summary>Constructs a new Get request.</summary> public GetRequest(Google.Apis.Services.IClientService service, ulong merchantId, ulong accountId) : base(service) { MerchantId = merchantId; AccountId = accountId; InitParameters(); } /// <summary>The ID of the managing account. If this parameter is not the same as accountId, then this /// account must be a multi-client account and accountId must be the ID of a sub-account of this /// account.</summary> [Google.Apis.Util.RequestParameterAttribute("merchantId", Google.Apis.Util.RequestParameterType.Path)] public virtual ulong MerchantId { get; private set; } /// <summary>The ID of the account for which to get/update account tax settings.</summary> [Google.Apis.Util.RequestParameterAttribute("accountId", Google.Apis.Util.RequestParameterType.Path)] public virtual ulong AccountId { get; private set; } ///<summary>Gets the method name.</summary> public override string MethodName { get { return "get"; } } ///<summary>Gets the HTTP method.</summary> public override string HttpMethod { get { return "GET"; } } ///<summary>Gets the REST path.</summary> public override string RestPath { get { return "{merchantId}/accounttax/{accountId}"; } } /// <summary>Initializes Get parameter list.</summary> protected override void InitParameters() { base.InitParameters(); RequestParameters.Add( "merchantId", new Google.Apis.Discovery.Parameter { Name = "merchantId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add( "accountId", new Google.Apis.Discovery.Parameter { Name = "accountId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); } } /// <summary>Lists the tax settings of the sub-accounts in your Merchant Center account.</summary> /// <param name="merchantId">The ID of the managing account. This must be a multi-client account.</param> public virtual ListRequest List(ulong merchantId) { return new ListRequest(service, merchantId); } /// <summary>Lists the tax settings of the sub-accounts in your Merchant Center account.</summary> public class ListRequest : ShoppingContentBaseServiceRequest<Google.Apis.ShoppingContent.v2.Data.AccounttaxListResponse> { /// <summary>Constructs a new List request.</summary> public ListRequest(Google.Apis.Services.IClientService service, ulong merchantId) : base(service) { MerchantId = merchantId; InitParameters(); } /// <summary>The ID of the managing account. This must be a multi-client account.</summary> [Google.Apis.Util.RequestParameterAttribute("merchantId", Google.Apis.Util.RequestParameterType.Path)] public virtual ulong MerchantId { get; private set; } /// <summary>The maximum number of tax settings to return in the response, used for paging.</summary> [Google.Apis.Util.RequestParameterAttribute("maxResults", Google.Apis.Util.RequestParameterType.Query)] public virtual System.Nullable<long> MaxResults { get; set; } /// <summary>The token returned by the previous request.</summary> [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] public virtual string PageToken { get; set; } ///<summary>Gets the method name.</summary> public override string MethodName { get { return "list"; } } ///<summary>Gets the HTTP method.</summary> public override string HttpMethod { get { return "GET"; } } ///<summary>Gets the REST path.</summary> public override string RestPath { get { return "{merchantId}/accounttax"; } } /// <summary>Initializes List parameter list.</summary> protected override void InitParameters() { base.InitParameters(); RequestParameters.Add( "merchantId", new Google.Apis.Discovery.Parameter { Name = "merchantId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add( "maxResults", new Google.Apis.Discovery.Parameter { Name = "maxResults", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); RequestParameters.Add( "pageToken", new Google.Apis.Discovery.Parameter { Name = "pageToken", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); } } /// <summary>Updates the tax settings of the account.</summary> /// <param name="body">The body of the request.</param> /// <param name="merchantId">The ID of the managing account. If this parameter is not the same as accountId, then this /// account must be a multi-client account and accountId must be the ID of a sub-account of this /// account.</param> /// <param name="accountId">The ID of the account for which to get/update account tax /// settings.</param> public virtual UpdateRequest Update(Google.Apis.ShoppingContent.v2.Data.AccountTax body, ulong merchantId, ulong accountId) { return new UpdateRequest(service, body, merchantId, accountId); } /// <summary>Updates the tax settings of the account.</summary> public class UpdateRequest : ShoppingContentBaseServiceRequest<Google.Apis.ShoppingContent.v2.Data.AccountTax> { /// <summary>Constructs a new Update request.</summary> public UpdateRequest(Google.Apis.Services.IClientService service, Google.Apis.ShoppingContent.v2.Data.AccountTax body, ulong merchantId, ulong accountId) : base(service) { MerchantId = merchantId; AccountId = accountId; Body = body; InitParameters(); } /// <summary>The ID of the managing account. If this parameter is not the same as accountId, then this /// account must be a multi-client account and accountId must be the ID of a sub-account of this /// account.</summary> [Google.Apis.Util.RequestParameterAttribute("merchantId", Google.Apis.Util.RequestParameterType.Path)] public virtual ulong MerchantId { get; private set; } /// <summary>The ID of the account for which to get/update account tax settings.</summary> [Google.Apis.Util.RequestParameterAttribute("accountId", Google.Apis.Util.RequestParameterType.Path)] public virtual ulong AccountId { get; private set; } /// <summary>Flag to simulate a request like in a live environment. If set to true, dry-run mode checks the /// validity of the request and returns errors (if any).</summary> [Google.Apis.Util.RequestParameterAttribute("dryRun", Google.Apis.Util.RequestParameterType.Query)] public virtual System.Nullable<bool> DryRun { get; set; } /// <summary>Gets or sets the body of this request.</summary> Google.Apis.ShoppingContent.v2.Data.AccountTax Body { get; set; } ///<summary>Returns the body of the request.</summary> protected override object GetBody() { return Body; } ///<summary>Gets the method name.</summary> public override string MethodName { get { return "update"; } } ///<summary>Gets the HTTP method.</summary> public override string HttpMethod { get { return "PUT"; } } ///<summary>Gets the REST path.</summary> public override string RestPath { get { return "{merchantId}/accounttax/{accountId}"; } } /// <summary>Initializes Update parameter list.</summary> protected override void InitParameters() { base.InitParameters(); RequestParameters.Add( "merchantId", new Google.Apis.Discovery.Parameter { Name = "merchantId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add( "accountId", new Google.Apis.Discovery.Parameter { Name = "accountId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add( "dryRun", new Google.Apis.Discovery.Parameter { Name = "dryRun", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); } } } /// <summary>The "datafeeds" collection of methods.</summary> public class DatafeedsResource { private const string Resource = "datafeeds"; /// <summary>The service which this resource belongs to.</summary> private readonly Google.Apis.Services.IClientService service; /// <summary>Constructs a new resource.</summary> public DatafeedsResource(Google.Apis.Services.IClientService service) { this.service = service; } /// <summary>Deletes, fetches, gets, inserts and updates multiple datafeeds in a single request.</summary> /// <param name="body">The body of the request.</param> public virtual CustombatchRequest Custombatch(Google.Apis.ShoppingContent.v2.Data.DatafeedsCustomBatchRequest body) { return new CustombatchRequest(service, body); } /// <summary>Deletes, fetches, gets, inserts and updates multiple datafeeds in a single request.</summary> public class CustombatchRequest : ShoppingContentBaseServiceRequest<Google.Apis.ShoppingContent.v2.Data.DatafeedsCustomBatchResponse> { /// <summary>Constructs a new Custombatch request.</summary> public CustombatchRequest(Google.Apis.Services.IClientService service, Google.Apis.ShoppingContent.v2.Data.DatafeedsCustomBatchRequest body) : base(service) { Body = body; InitParameters(); } /// <summary>Flag to simulate a request like in a live environment. If set to true, dry-run mode checks the /// validity of the request and returns errors (if any).</summary> [Google.Apis.Util.RequestParameterAttribute("dryRun", Google.Apis.Util.RequestParameterType.Query)] public virtual System.Nullable<bool> DryRun { get; set; } /// <summary>Gets or sets the body of this request.</summary> Google.Apis.ShoppingContent.v2.Data.DatafeedsCustomBatchRequest Body { get; set; } ///<summary>Returns the body of the request.</summary> protected override object GetBody() { return Body; } ///<summary>Gets the method name.</summary> public override string MethodName { get { return "custombatch"; } } ///<summary>Gets the HTTP method.</summary> public override string HttpMethod { get { return "POST"; } } ///<summary>Gets the REST path.</summary> public override string RestPath { get { return "datafeeds/batch"; } } /// <summary>Initializes Custombatch parameter list.</summary> protected override void InitParameters() { base.InitParameters(); RequestParameters.Add( "dryRun", new Google.Apis.Discovery.Parameter { Name = "dryRun", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); } } /// <summary>Deletes a datafeed configuration from your Merchant Center account.</summary> /// <param name="merchantId">The ID of the account that manages the datafeed. This account cannot be a multi-client /// account.</param> /// <param name="datafeedId">The ID of the datafeed.</param> public virtual DeleteRequest Delete(ulong merchantId, ulong datafeedId) { return new DeleteRequest(service, merchantId, datafeedId); } /// <summary>Deletes a datafeed configuration from your Merchant Center account.</summary> public class DeleteRequest : ShoppingContentBaseServiceRequest<string> { /// <summary>Constructs a new Delete request.</summary> public DeleteRequest(Google.Apis.Services.IClientService service, ulong merchantId, ulong datafeedId) : base(service) { MerchantId = merchantId; DatafeedId = datafeedId; InitParameters(); } /// <summary>The ID of the account that manages the datafeed. This account cannot be a multi-client /// account.</summary> [Google.Apis.Util.RequestParameterAttribute("merchantId", Google.Apis.Util.RequestParameterType.Path)] public virtual ulong MerchantId { get; private set; } /// <summary>The ID of the datafeed.</summary> [Google.Apis.Util.RequestParameterAttribute("datafeedId", Google.Apis.Util.RequestParameterType.Path)] public virtual ulong DatafeedId { get; private set; } /// <summary>Flag to simulate a request like in a live environment. If set to true, dry-run mode checks the /// validity of the request and returns errors (if any).</summary> [Google.Apis.Util.RequestParameterAttribute("dryRun", Google.Apis.Util.RequestParameterType.Query)] public virtual System.Nullable<bool> DryRun { get; set; } ///<summary>Gets the method name.</summary> public override string MethodName { get { return "delete"; } } ///<summary>Gets the HTTP method.</summary> public override string HttpMethod { get { return "DELETE"; } } ///<summary>Gets the REST path.</summary> public override string RestPath { get { return "{merchantId}/datafeeds/{datafeedId}"; } } /// <summary>Initializes Delete parameter list.</summary> protected override void InitParameters() { base.InitParameters(); RequestParameters.Add( "merchantId", new Google.Apis.Discovery.Parameter { Name = "merchantId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add( "datafeedId", new Google.Apis.Discovery.Parameter { Name = "datafeedId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add( "dryRun", new Google.Apis.Discovery.Parameter { Name = "dryRun", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); } } /// <summary>Invokes a fetch for the datafeed in your Merchant Center account.</summary> /// <param name="merchantId">The ID of the account that manages the datafeed. This account cannot be a multi-client /// account.</param> /// <param name="datafeedId">The ID of the datafeed to be fetched.</param> public virtual FetchnowRequest Fetchnow(ulong merchantId, ulong datafeedId) { return new FetchnowRequest(service, merchantId, datafeedId); } /// <summary>Invokes a fetch for the datafeed in your Merchant Center account.</summary> public class FetchnowRequest : ShoppingContentBaseServiceRequest<Google.Apis.ShoppingContent.v2.Data.DatafeedsFetchNowResponse> { /// <summary>Constructs a new Fetchnow request.</summary> public FetchnowRequest(Google.Apis.Services.IClientService service, ulong merchantId, ulong datafeedId) : base(service) { MerchantId = merchantId; DatafeedId = datafeedId; InitParameters(); } /// <summary>The ID of the account that manages the datafeed. This account cannot be a multi-client /// account.</summary> [Google.Apis.Util.RequestParameterAttribute("merchantId", Google.Apis.Util.RequestParameterType.Path)] public virtual ulong MerchantId { get; private set; } /// <summary>The ID of the datafeed to be fetched.</summary> [Google.Apis.Util.RequestParameterAttribute("datafeedId", Google.Apis.Util.RequestParameterType.Path)] public virtual ulong DatafeedId { get; private set; } /// <summary>Flag to simulate a request like in a live environment. If set to true, dry-run mode checks the /// validity of the request and returns errors (if any).</summary> [Google.Apis.Util.RequestParameterAttribute("dryRun", Google.Apis.Util.RequestParameterType.Query)] public virtual System.Nullable<bool> DryRun { get; set; } ///<summary>Gets the method name.</summary> public override string MethodName { get { return "fetchnow"; } } ///<summary>Gets the HTTP method.</summary> public override string HttpMethod { get { return "POST"; } } ///<summary>Gets the REST path.</summary> public override string RestPath { get { return "{merchantId}/datafeeds/{datafeedId}/fetchNow"; } } /// <summary>Initializes Fetchnow parameter list.</summary> protected override void InitParameters() { base.InitParameters(); RequestParameters.Add( "merchantId", new Google.Apis.Discovery.Parameter { Name = "merchantId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add( "datafeedId", new Google.Apis.Discovery.Parameter { Name = "datafeedId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add( "dryRun", new Google.Apis.Discovery.Parameter { Name = "dryRun", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); } } /// <summary>Retrieves a datafeed configuration from your Merchant Center account.</summary> /// <param name="merchantId">The ID of the account that manages the datafeed. This account cannot be a multi-client /// account.</param> /// <param name="datafeedId">The ID of the datafeed.</param> public virtual GetRequest Get(ulong merchantId, ulong datafeedId) { return new GetRequest(service, merchantId, datafeedId); } /// <summary>Retrieves a datafeed configuration from your Merchant Center account.</summary> public class GetRequest : ShoppingContentBaseServiceRequest<Google.Apis.ShoppingContent.v2.Data.Datafeed> { /// <summary>Constructs a new Get request.</summary> public GetRequest(Google.Apis.Services.IClientService service, ulong merchantId, ulong datafeedId) : base(service) { MerchantId = merchantId; DatafeedId = datafeedId; InitParameters(); } /// <summary>The ID of the account that manages the datafeed. This account cannot be a multi-client /// account.</summary> [Google.Apis.Util.RequestParameterAttribute("merchantId", Google.Apis.Util.RequestParameterType.Path)] public virtual ulong MerchantId { get; private set; } /// <summary>The ID of the datafeed.</summary> [Google.Apis.Util.RequestParameterAttribute("datafeedId", Google.Apis.Util.RequestParameterType.Path)] public virtual ulong DatafeedId { get; private set; } ///<summary>Gets the method name.</summary> public override string MethodName { get { return "get"; } } ///<summary>Gets the HTTP method.</summary> public override string HttpMethod { get { return "GET"; } } ///<summary>Gets the REST path.</summary> public override string RestPath { get { return "{merchantId}/datafeeds/{datafeedId}"; } } /// <summary>Initializes Get parameter list.</summary> protected override void InitParameters() { base.InitParameters(); RequestParameters.Add( "merchantId", new Google.Apis.Discovery.Parameter { Name = "merchantId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add( "datafeedId", new Google.Apis.Discovery.Parameter { Name = "datafeedId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); } } /// <summary>Registers a datafeed configuration with your Merchant Center account.</summary> /// <param name="body">The body of the request.</param> /// <param name="merchantId">The ID of the account that manages the datafeed. This account cannot be a multi-client /// account.</param> public virtual InsertRequest Insert(Google.Apis.ShoppingContent.v2.Data.Datafeed body, ulong merchantId) { return new InsertRequest(service, body, merchantId); } /// <summary>Registers a datafeed configuration with your Merchant Center account.</summary> public class InsertRequest : ShoppingContentBaseServiceRequest<Google.Apis.ShoppingContent.v2.Data.Datafeed> { /// <summary>Constructs a new Insert request.</summary> public InsertRequest(Google.Apis.Services.IClientService service, Google.Apis.ShoppingContent.v2.Data.Datafeed body, ulong merchantId) : base(service) { MerchantId = merchantId; Body = body; InitParameters(); } /// <summary>The ID of the account that manages the datafeed. This account cannot be a multi-client /// account.</summary> [Google.Apis.Util.RequestParameterAttribute("merchantId", Google.Apis.Util.RequestParameterType.Path)] public virtual ulong MerchantId { get; private set; } /// <summary>Flag to simulate a request like in a live environment. If set to true, dry-run mode checks the /// validity of the request and returns errors (if any).</summary> [Google.Apis.Util.RequestParameterAttribute("dryRun", Google.Apis.Util.RequestParameterType.Query)] public virtual System.Nullable<bool> DryRun { get; set; } /// <summary>Gets or sets the body of this request.</summary> Google.Apis.ShoppingContent.v2.Data.Datafeed Body { get; set; } ///<summary>Returns the body of the request.</summary> protected override object GetBody() { return Body; } ///<summary>Gets the method name.</summary> public override string MethodName { get { return "insert"; } } ///<summary>Gets the HTTP method.</summary> public override string HttpMethod { get { return "POST"; } } ///<summary>Gets the REST path.</summary> public override string RestPath { get { return "{merchantId}/datafeeds"; } } /// <summary>Initializes Insert parameter list.</summary> protected override void InitParameters() { base.InitParameters(); RequestParameters.Add( "merchantId", new Google.Apis.Discovery.Parameter { Name = "merchantId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add( "dryRun", new Google.Apis.Discovery.Parameter { Name = "dryRun", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); } } /// <summary>Lists the configurations for datafeeds in your Merchant Center account.</summary> /// <param name="merchantId">The ID of the account that manages the datafeeds. This account cannot be a multi-client /// account.</param> public virtual ListRequest List(ulong merchantId) { return new ListRequest(service, merchantId); } /// <summary>Lists the configurations for datafeeds in your Merchant Center account.</summary> public class ListRequest : ShoppingContentBaseServiceRequest<Google.Apis.ShoppingContent.v2.Data.DatafeedsListResponse> { /// <summary>Constructs a new List request.</summary> public ListRequest(Google.Apis.Services.IClientService service, ulong merchantId) : base(service) { MerchantId = merchantId; InitParameters(); } /// <summary>The ID of the account that manages the datafeeds. This account cannot be a multi-client /// account.</summary> [Google.Apis.Util.RequestParameterAttribute("merchantId", Google.Apis.Util.RequestParameterType.Path)] public virtual ulong MerchantId { get; private set; } /// <summary>The maximum number of products to return in the response, used for paging.</summary> [Google.Apis.Util.RequestParameterAttribute("maxResults", Google.Apis.Util.RequestParameterType.Query)] public virtual System.Nullable<long> MaxResults { get; set; } /// <summary>The token returned by the previous request.</summary> [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] public virtual string PageToken { get; set; } ///<summary>Gets the method name.</summary> public override string MethodName { get { return "list"; } } ///<summary>Gets the HTTP method.</summary> public override string HttpMethod { get { return "GET"; } } ///<summary>Gets the REST path.</summary> public override string RestPath { get { return "{merchantId}/datafeeds"; } } /// <summary>Initializes List parameter list.</summary> protected override void InitParameters() { base.InitParameters(); RequestParameters.Add( "merchantId", new Google.Apis.Discovery.Parameter { Name = "merchantId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add( "maxResults", new Google.Apis.Discovery.Parameter { Name = "maxResults", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); RequestParameters.Add( "pageToken", new Google.Apis.Discovery.Parameter { Name = "pageToken", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); } } /// <summary>Updates a datafeed configuration of your Merchant Center account.</summary> /// <param name="body">The body of the request.</param> /// <param name="merchantId">The ID of the account that manages the datafeed. This account cannot be a multi-client /// account.</param> /// <param name="datafeedId">The ID of the datafeed.</param> public virtual UpdateRequest Update(Google.Apis.ShoppingContent.v2.Data.Datafeed body, ulong merchantId, ulong datafeedId) { return new UpdateRequest(service, body, merchantId, datafeedId); } /// <summary>Updates a datafeed configuration of your Merchant Center account.</summary> public class UpdateRequest : ShoppingContentBaseServiceRequest<Google.Apis.ShoppingContent.v2.Data.Datafeed> { /// <summary>Constructs a new Update request.</summary> public UpdateRequest(Google.Apis.Services.IClientService service, Google.Apis.ShoppingContent.v2.Data.Datafeed body, ulong merchantId, ulong datafeedId) : base(service) { MerchantId = merchantId; DatafeedId = datafeedId; Body = body; InitParameters(); } /// <summary>The ID of the account that manages the datafeed. This account cannot be a multi-client /// account.</summary> [Google.Apis.Util.RequestParameterAttribute("merchantId", Google.Apis.Util.RequestParameterType.Path)] public virtual ulong MerchantId { get; private set; } /// <summary>The ID of the datafeed.</summary> [Google.Apis.Util.RequestParameterAttribute("datafeedId", Google.Apis.Util.RequestParameterType.Path)] public virtual ulong DatafeedId { get; private set; } /// <summary>Flag to simulate a request like in a live environment. If set to true, dry-run mode checks the /// validity of the request and returns errors (if any).</summary> [Google.Apis.Util.RequestParameterAttribute("dryRun", Google.Apis.Util.RequestParameterType.Query)] public virtual System.Nullable<bool> DryRun { get; set; } /// <summary>Gets or sets the body of this request.</summary> Google.Apis.ShoppingContent.v2.Data.Datafeed Body { get; set; } ///<summary>Returns the body of the request.</summary> protected override object GetBody() { return Body; } ///<summary>Gets the method name.</summary> public override string MethodName { get { return "update"; } } ///<summary>Gets the HTTP method.</summary> public override string HttpMethod { get { return "PUT"; } } ///<summary>Gets the REST path.</summary> public override string RestPath { get { return "{merchantId}/datafeeds/{datafeedId}"; } } /// <summary>Initializes Update parameter list.</summary> protected override void InitParameters() { base.InitParameters(); RequestParameters.Add( "merchantId", new Google.Apis.Discovery.Parameter { Name = "merchantId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add( "datafeedId", new Google.Apis.Discovery.Parameter { Name = "datafeedId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add( "dryRun", new Google.Apis.Discovery.Parameter { Name = "dryRun", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); } } } /// <summary>The "datafeedstatuses" collection of methods.</summary> public class DatafeedstatusesResource { private const string Resource = "datafeedstatuses"; /// <summary>The service which this resource belongs to.</summary> private readonly Google.Apis.Services.IClientService service; /// <summary>Constructs a new resource.</summary> public DatafeedstatusesResource(Google.Apis.Services.IClientService service) { this.service = service; } /// <summary>Gets multiple Merchant Center datafeed statuses in a single request.</summary> /// <param name="body">The body of the request.</param> public virtual CustombatchRequest Custombatch(Google.Apis.ShoppingContent.v2.Data.DatafeedstatusesCustomBatchRequest body) { return new CustombatchRequest(service, body); } /// <summary>Gets multiple Merchant Center datafeed statuses in a single request.</summary> public class CustombatchRequest : ShoppingContentBaseServiceRequest<Google.Apis.ShoppingContent.v2.Data.DatafeedstatusesCustomBatchResponse> { /// <summary>Constructs a new Custombatch request.</summary> public CustombatchRequest(Google.Apis.Services.IClientService service, Google.Apis.ShoppingContent.v2.Data.DatafeedstatusesCustomBatchRequest body) : base(service) { Body = body; InitParameters(); } /// <summary>Gets or sets the body of this request.</summary> Google.Apis.ShoppingContent.v2.Data.DatafeedstatusesCustomBatchRequest Body { get; set; } ///<summary>Returns the body of the request.</summary> protected override object GetBody() { return Body; } ///<summary>Gets the method name.</summary> public override string MethodName { get { return "custombatch"; } } ///<summary>Gets the HTTP method.</summary> public override string HttpMethod { get { return "POST"; } } ///<summary>Gets the REST path.</summary> public override string RestPath { get { return "datafeedstatuses/batch"; } } /// <summary>Initializes Custombatch parameter list.</summary> protected override void InitParameters() { base.InitParameters(); } } /// <summary>Retrieves the status of a datafeed from your Merchant Center account.</summary> /// <param name="merchantId">The ID of the account that manages the datafeed. This account cannot be a multi-client /// account.</param> /// <param name="datafeedId">The ID of the datafeed.</param> public virtual GetRequest Get(ulong merchantId, ulong datafeedId) { return new GetRequest(service, merchantId, datafeedId); } /// <summary>Retrieves the status of a datafeed from your Merchant Center account.</summary> public class GetRequest : ShoppingContentBaseServiceRequest<Google.Apis.ShoppingContent.v2.Data.DatafeedStatus> { /// <summary>Constructs a new Get request.</summary> public GetRequest(Google.Apis.Services.IClientService service, ulong merchantId, ulong datafeedId) : base(service) { MerchantId = merchantId; DatafeedId = datafeedId; InitParameters(); } /// <summary>The ID of the account that manages the datafeed. This account cannot be a multi-client /// account.</summary> [Google.Apis.Util.RequestParameterAttribute("merchantId", Google.Apis.Util.RequestParameterType.Path)] public virtual ulong MerchantId { get; private set; } /// <summary>The ID of the datafeed.</summary> [Google.Apis.Util.RequestParameterAttribute("datafeedId", Google.Apis.Util.RequestParameterType.Path)] public virtual ulong DatafeedId { get; private set; } /// <summary>The country for which to get the datafeed status. If this parameter is provided then language /// must also be provided. Note that this parameter is required for feeds targeting multiple countries and /// languages, since a feed may have a different status for each target.</summary> [Google.Apis.Util.RequestParameterAttribute("country", Google.Apis.Util.RequestParameterType.Query)] public virtual string Country { get; set; } /// <summary>The language for which to get the datafeed status. If this parameter is provided then country /// must also be provided. Note that this parameter is required for feeds targeting multiple countries and /// languages, since a feed may have a different status for each target.</summary> [Google.Apis.Util.RequestParameterAttribute("language", Google.Apis.Util.RequestParameterType.Query)] public virtual string Language { get; set; } ///<summary>Gets the method name.</summary> public override string MethodName { get { return "get"; } } ///<summary>Gets the HTTP method.</summary> public override string HttpMethod { get { return "GET"; } } ///<summary>Gets the REST path.</summary> public override string RestPath { get { return "{merchantId}/datafeedstatuses/{datafeedId}"; } } /// <summary>Initializes Get parameter list.</summary> protected override void InitParameters() { base.InitParameters(); RequestParameters.Add( "merchantId", new Google.Apis.Discovery.Parameter { Name = "merchantId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add( "datafeedId", new Google.Apis.Discovery.Parameter { Name = "datafeedId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add( "country", new Google.Apis.Discovery.Parameter { Name = "country", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); RequestParameters.Add( "language", new Google.Apis.Discovery.Parameter { Name = "language", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); } } /// <summary>Lists the statuses of the datafeeds in your Merchant Center account.</summary> /// <param name="merchantId">The ID of the account that manages the datafeeds. This account cannot be a multi-client /// account.</param> public virtual ListRequest List(ulong merchantId) { return new ListRequest(service, merchantId); } /// <summary>Lists the statuses of the datafeeds in your Merchant Center account.</summary> public class ListRequest : ShoppingContentBaseServiceRequest<Google.Apis.ShoppingContent.v2.Data.DatafeedstatusesListResponse> { /// <summary>Constructs a new List request.</summary> public ListRequest(Google.Apis.Services.IClientService service, ulong merchantId) : base(service) { MerchantId = merchantId; InitParameters(); } /// <summary>The ID of the account that manages the datafeeds. This account cannot be a multi-client /// account.</summary> [Google.Apis.Util.RequestParameterAttribute("merchantId", Google.Apis.Util.RequestParameterType.Path)] public virtual ulong MerchantId { get; private set; } /// <summary>The maximum number of products to return in the response, used for paging.</summary> [Google.Apis.Util.RequestParameterAttribute("maxResults", Google.Apis.Util.RequestParameterType.Query)] public virtual System.Nullable<long> MaxResults { get; set; } /// <summary>The token returned by the previous request.</summary> [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] public virtual string PageToken { get; set; } ///<summary>Gets the method name.</summary> public override string MethodName { get { return "list"; } } ///<summary>Gets the HTTP method.</summary> public override string HttpMethod { get { return "GET"; } } ///<summary>Gets the REST path.</summary> public override string RestPath { get { return "{merchantId}/datafeedstatuses"; } } /// <summary>Initializes List parameter list.</summary> protected override void InitParameters() { base.InitParameters(); RequestParameters.Add( "merchantId", new Google.Apis.Discovery.Parameter { Name = "merchantId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add( "maxResults", new Google.Apis.Discovery.Parameter { Name = "maxResults", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); RequestParameters.Add( "pageToken", new Google.Apis.Discovery.Parameter { Name = "pageToken", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); } } } /// <summary>The "inventory" collection of methods.</summary> public class InventoryResource { private const string Resource = "inventory"; /// <summary>The service which this resource belongs to.</summary> private readonly Google.Apis.Services.IClientService service; /// <summary>Constructs a new resource.</summary> public InventoryResource(Google.Apis.Services.IClientService service) { this.service = service; } /// <summary>Updates price and availability for multiple products or stores in a single request. This operation /// does not update the expiration date of the products.</summary> /// <param name="body">The body of the request.</param> public virtual CustombatchRequest Custombatch(Google.Apis.ShoppingContent.v2.Data.InventoryCustomBatchRequest body) { return new CustombatchRequest(service, body); } /// <summary>Updates price and availability for multiple products or stores in a single request. This operation /// does not update the expiration date of the products.</summary> public class CustombatchRequest : ShoppingContentBaseServiceRequest<Google.Apis.ShoppingContent.v2.Data.InventoryCustomBatchResponse> { /// <summary>Constructs a new Custombatch request.</summary> public CustombatchRequest(Google.Apis.Services.IClientService service, Google.Apis.ShoppingContent.v2.Data.InventoryCustomBatchRequest body) : base(service) { Body = body; InitParameters(); } /// <summary>Flag to simulate a request like in a live environment. If set to true, dry-run mode checks the /// validity of the request and returns errors (if any).</summary> [Google.Apis.Util.RequestParameterAttribute("dryRun", Google.Apis.Util.RequestParameterType.Query)] public virtual System.Nullable<bool> DryRun { get; set; } /// <summary>Gets or sets the body of this request.</summary> Google.Apis.ShoppingContent.v2.Data.InventoryCustomBatchRequest Body { get; set; } ///<summary>Returns the body of the request.</summary> protected override object GetBody() { return Body; } ///<summary>Gets the method name.</summary> public override string MethodName { get { return "custombatch"; } } ///<summary>Gets the HTTP method.</summary> public override string HttpMethod { get { return "POST"; } } ///<summary>Gets the REST path.</summary> public override string RestPath { get { return "inventory/batch"; } } /// <summary>Initializes Custombatch parameter list.</summary> protected override void InitParameters() { base.InitParameters(); RequestParameters.Add( "dryRun", new Google.Apis.Discovery.Parameter { Name = "dryRun", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); } } /// <summary>Updates price and availability of a product in your Merchant Center account.</summary> /// <param name="body">The body of the request.</param> /// <param name="merchantId">The ID of the account that contains the product. This account cannot be a multi-client /// account.</param> /// <param name="storeCode">The code of the store for which to update price and availability. /// Use online to update price and availability of an online product.</param> /// <param name="productId">The REST /// ID of the product for which to update price and availability.</param> public virtual SetRequest Set(Google.Apis.ShoppingContent.v2.Data.InventorySetRequest body, ulong merchantId, string storeCode, string productId) { return new SetRequest(service, body, merchantId, storeCode, productId); } /// <summary>Updates price and availability of a product in your Merchant Center account.</summary> public class SetRequest : ShoppingContentBaseServiceRequest<Google.Apis.ShoppingContent.v2.Data.InventorySetResponse> { /// <summary>Constructs a new Set request.</summary> public SetRequest(Google.Apis.Services.IClientService service, Google.Apis.ShoppingContent.v2.Data.InventorySetRequest body, ulong merchantId, string storeCode, string productId) : base(service) { MerchantId = merchantId; StoreCode = storeCode; ProductId = productId; Body = body; InitParameters(); } /// <summary>The ID of the account that contains the product. This account cannot be a multi-client /// account.</summary> [Google.Apis.Util.RequestParameterAttribute("merchantId", Google.Apis.Util.RequestParameterType.Path)] public virtual ulong MerchantId { get; private set; } /// <summary>The code of the store for which to update price and availability. Use online to update price /// and availability of an online product.</summary> [Google.Apis.Util.RequestParameterAttribute("storeCode", Google.Apis.Util.RequestParameterType.Path)] public virtual string StoreCode { get; private set; } /// <summary>The REST ID of the product for which to update price and availability.</summary> [Google.Apis.Util.RequestParameterAttribute("productId", Google.Apis.Util.RequestParameterType.Path)] public virtual string ProductId { get; private set; } /// <summary>Flag to simulate a request like in a live environment. If set to true, dry-run mode checks the /// validity of the request and returns errors (if any).</summary> [Google.Apis.Util.RequestParameterAttribute("dryRun", Google.Apis.Util.RequestParameterType.Query)] public virtual System.Nullable<bool> DryRun { get; set; } /// <summary>Gets or sets the body of this request.</summary> Google.Apis.ShoppingContent.v2.Data.InventorySetRequest Body { get; set; } ///<summary>Returns the body of the request.</summary> protected override object GetBody() { return Body; } ///<summary>Gets the method name.</summary> public override string MethodName { get { return "set"; } } ///<summary>Gets the HTTP method.</summary> public override string HttpMethod { get { return "POST"; } } ///<summary>Gets the REST path.</summary> public override string RestPath { get { return "{merchantId}/inventory/{storeCode}/products/{productId}"; } } /// <summary>Initializes Set parameter list.</summary> protected override void InitParameters() { base.InitParameters(); RequestParameters.Add( "merchantId", new Google.Apis.Discovery.Parameter { Name = "merchantId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add( "storeCode", new Google.Apis.Discovery.Parameter { Name = "storeCode", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add( "productId", new Google.Apis.Discovery.Parameter { Name = "productId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add( "dryRun", new Google.Apis.Discovery.Parameter { Name = "dryRun", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); } } } /// <summary>The "liasettings" collection of methods.</summary> public class LiasettingsResource { private const string Resource = "liasettings"; /// <summary>The service which this resource belongs to.</summary> private readonly Google.Apis.Services.IClientService service; /// <summary>Constructs a new resource.</summary> public LiasettingsResource(Google.Apis.Services.IClientService service) { this.service = service; } /// <summary>Retrieves and/or updates the LIA settings of multiple accounts in a single request.</summary> /// <param name="body">The body of the request.</param> public virtual CustombatchRequest Custombatch(Google.Apis.ShoppingContent.v2.Data.LiasettingsCustomBatchRequest body) { return new CustombatchRequest(service, body); } /// <summary>Retrieves and/or updates the LIA settings of multiple accounts in a single request.</summary> public class CustombatchRequest : ShoppingContentBaseServiceRequest<Google.Apis.ShoppingContent.v2.Data.LiasettingsCustomBatchResponse> { /// <summary>Constructs a new Custombatch request.</summary> public CustombatchRequest(Google.Apis.Services.IClientService service, Google.Apis.ShoppingContent.v2.Data.LiasettingsCustomBatchRequest body) : base(service) { Body = body; InitParameters(); } /// <summary>Flag to simulate a request like in a live environment. If set to true, dry-run mode checks the /// validity of the request and returns errors (if any).</summary> [Google.Apis.Util.RequestParameterAttribute("dryRun", Google.Apis.Util.RequestParameterType.Query)] public virtual System.Nullable<bool> DryRun { get; set; } /// <summary>Gets or sets the body of this request.</summary> Google.Apis.ShoppingContent.v2.Data.LiasettingsCustomBatchRequest Body { get; set; } ///<summary>Returns the body of the request.</summary> protected override object GetBody() { return Body; } ///<summary>Gets the method name.</summary> public override string MethodName { get { return "custombatch"; } } ///<summary>Gets the HTTP method.</summary> public override string HttpMethod { get { return "POST"; } } ///<summary>Gets the REST path.</summary> public override string RestPath { get { return "liasettings/batch"; } } /// <summary>Initializes Custombatch parameter list.</summary> protected override void InitParameters() { base.InitParameters(); RequestParameters.Add( "dryRun", new Google.Apis.Discovery.Parameter { Name = "dryRun", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); } } /// <summary>Retrieves the LIA settings of the account.</summary> /// <param name="merchantId">The ID of the managing account. If this parameter is not the same as accountId, then this /// account must be a multi-client account and accountId must be the ID of a sub-account of this /// account.</param> /// <param name="accountId">The ID of the account for which to get or update LIA /// settings.</param> public virtual GetRequest Get(ulong merchantId, ulong accountId) { return new GetRequest(service, merchantId, accountId); } /// <summary>Retrieves the LIA settings of the account.</summary> public class GetRequest : ShoppingContentBaseServiceRequest<Google.Apis.ShoppingContent.v2.Data.LiaSettings> { /// <summary>Constructs a new Get request.</summary> public GetRequest(Google.Apis.Services.IClientService service, ulong merchantId, ulong accountId) : base(service) { MerchantId = merchantId; AccountId = accountId; InitParameters(); } /// <summary>The ID of the managing account. If this parameter is not the same as accountId, then this /// account must be a multi-client account and accountId must be the ID of a sub-account of this /// account.</summary> [Google.Apis.Util.RequestParameterAttribute("merchantId", Google.Apis.Util.RequestParameterType.Path)] public virtual ulong MerchantId { get; private set; } /// <summary>The ID of the account for which to get or update LIA settings.</summary> [Google.Apis.Util.RequestParameterAttribute("accountId", Google.Apis.Util.RequestParameterType.Path)] public virtual ulong AccountId { get; private set; } ///<summary>Gets the method name.</summary> public override string MethodName { get { return "get"; } } ///<summary>Gets the HTTP method.</summary> public override string HttpMethod { get { return "GET"; } } ///<summary>Gets the REST path.</summary> public override string RestPath { get { return "{merchantId}/liasettings/{accountId}"; } } /// <summary>Initializes Get parameter list.</summary> protected override void InitParameters() { base.InitParameters(); RequestParameters.Add( "merchantId", new Google.Apis.Discovery.Parameter { Name = "merchantId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add( "accountId", new Google.Apis.Discovery.Parameter { Name = "accountId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); } } /// <summary>Retrieves the list of accessible Google My Business accounts.</summary> /// <param name="merchantId">The ID of the managing account. If this parameter is not the same as accountId, then this /// account must be a multi-client account and accountId must be the ID of a sub-account of this /// account.</param> /// <param name="accountId">The ID of the account for which to retrieve accessible Google My /// Business accounts.</param> public virtual GetaccessiblegmbaccountsRequest Getaccessiblegmbaccounts(ulong merchantId, ulong accountId) { return new GetaccessiblegmbaccountsRequest(service, merchantId, accountId); } /// <summary>Retrieves the list of accessible Google My Business accounts.</summary> public class GetaccessiblegmbaccountsRequest : ShoppingContentBaseServiceRequest<Google.Apis.ShoppingContent.v2.Data.LiasettingsGetAccessibleGmbAccountsResponse> { /// <summary>Constructs a new Getaccessiblegmbaccounts request.</summary> public GetaccessiblegmbaccountsRequest(Google.Apis.Services.IClientService service, ulong merchantId, ulong accountId) : base(service) { MerchantId = merchantId; AccountId = accountId; InitParameters(); } /// <summary>The ID of the managing account. If this parameter is not the same as accountId, then this /// account must be a multi-client account and accountId must be the ID of a sub-account of this /// account.</summary> [Google.Apis.Util.RequestParameterAttribute("merchantId", Google.Apis.Util.RequestParameterType.Path)] public virtual ulong MerchantId { get; private set; } /// <summary>The ID of the account for which to retrieve accessible Google My Business accounts.</summary> [Google.Apis.Util.RequestParameterAttribute("accountId", Google.Apis.Util.RequestParameterType.Path)] public virtual ulong AccountId { get; private set; } ///<summary>Gets the method name.</summary> public override string MethodName { get { return "getaccessiblegmbaccounts"; } } ///<summary>Gets the HTTP method.</summary> public override string HttpMethod { get { return "GET"; } } ///<summary>Gets the REST path.</summary> public override string RestPath { get { return "{merchantId}/liasettings/{accountId}/accessiblegmbaccounts"; } } /// <summary>Initializes Getaccessiblegmbaccounts parameter list.</summary> protected override void InitParameters() { base.InitParameters(); RequestParameters.Add( "merchantId", new Google.Apis.Discovery.Parameter { Name = "merchantId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add( "accountId", new Google.Apis.Discovery.Parameter { Name = "accountId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); } } /// <summary>Lists the LIA settings of the sub-accounts in your Merchant Center account.</summary> /// <param name="merchantId">The ID of the managing account. This must be a multi-client account.</param> public virtual ListRequest List(ulong merchantId) { return new ListRequest(service, merchantId); } /// <summary>Lists the LIA settings of the sub-accounts in your Merchant Center account.</summary> public class ListRequest : ShoppingContentBaseServiceRequest<Google.Apis.ShoppingContent.v2.Data.LiasettingsListResponse> { /// <summary>Constructs a new List request.</summary> public ListRequest(Google.Apis.Services.IClientService service, ulong merchantId) : base(service) { MerchantId = merchantId; InitParameters(); } /// <summary>The ID of the managing account. This must be a multi-client account.</summary> [Google.Apis.Util.RequestParameterAttribute("merchantId", Google.Apis.Util.RequestParameterType.Path)] public virtual ulong MerchantId { get; private set; } /// <summary>The maximum number of LIA settings to return in the response, used for paging.</summary> [Google.Apis.Util.RequestParameterAttribute("maxResults", Google.Apis.Util.RequestParameterType.Query)] public virtual System.Nullable<long> MaxResults { get; set; } /// <summary>The token returned by the previous request.</summary> [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] public virtual string PageToken { get; set; } ///<summary>Gets the method name.</summary> public override string MethodName { get { return "list"; } } ///<summary>Gets the HTTP method.</summary> public override string HttpMethod { get { return "GET"; } } ///<summary>Gets the REST path.</summary> public override string RestPath { get { return "{merchantId}/liasettings"; } } /// <summary>Initializes List parameter list.</summary> protected override void InitParameters() { base.InitParameters(); RequestParameters.Add( "merchantId", new Google.Apis.Discovery.Parameter { Name = "merchantId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add( "maxResults", new Google.Apis.Discovery.Parameter { Name = "maxResults", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); RequestParameters.Add( "pageToken", new Google.Apis.Discovery.Parameter { Name = "pageToken", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); } } /// <summary>Retrieves the list of POS data providers that have active settings for the all eiligible /// countries.</summary> public virtual ListposdataprovidersRequest Listposdataproviders() { return new ListposdataprovidersRequest(service); } /// <summary>Retrieves the list of POS data providers that have active settings for the all eiligible /// countries.</summary> public class ListposdataprovidersRequest : ShoppingContentBaseServiceRequest<Google.Apis.ShoppingContent.v2.Data.LiasettingsListPosDataProvidersResponse> { /// <summary>Constructs a new Listposdataproviders request.</summary> public ListposdataprovidersRequest(Google.Apis.Services.IClientService service) : base(service) { InitParameters(); } ///<summary>Gets the method name.</summary> public override string MethodName { get { return "listposdataproviders"; } } ///<summary>Gets the HTTP method.</summary> public override string HttpMethod { get { return "GET"; } } ///<summary>Gets the REST path.</summary> public override string RestPath { get { return "liasettings/posdataproviders"; } } /// <summary>Initializes Listposdataproviders parameter list.</summary> protected override void InitParameters() { base.InitParameters(); } } /// <summary>Requests access to a specified Google My Business account.</summary> /// <param name="merchantId">The ID of the managing account. If this parameter is not the same as accountId, then this /// account must be a multi-client account and accountId must be the ID of a sub-account of this /// account.</param> /// <param name="accountId">The ID of the account for which GMB access is /// requested.</param> /// <param name="gmbEmail">The email of the Google My Business account.</param> public virtual RequestgmbaccessRequest Requestgmbaccess(ulong merchantId, ulong accountId, string gmbEmail) { return new RequestgmbaccessRequest(service, merchantId, accountId, gmbEmail); } /// <summary>Requests access to a specified Google My Business account.</summary> public class RequestgmbaccessRequest : ShoppingContentBaseServiceRequest<Google.Apis.ShoppingContent.v2.Data.LiasettingsRequestGmbAccessResponse> { /// <summary>Constructs a new Requestgmbaccess request.</summary> public RequestgmbaccessRequest(Google.Apis.Services.IClientService service, ulong merchantId, ulong accountId, string gmbEmail) : base(service) { MerchantId = merchantId; AccountId = accountId; GmbEmail = gmbEmail; InitParameters(); } /// <summary>The ID of the managing account. If this parameter is not the same as accountId, then this /// account must be a multi-client account and accountId must be the ID of a sub-account of this /// account.</summary> [Google.Apis.Util.RequestParameterAttribute("merchantId", Google.Apis.Util.RequestParameterType.Path)] public virtual ulong MerchantId { get; private set; } /// <summary>The ID of the account for which GMB access is requested.</summary> [Google.Apis.Util.RequestParameterAttribute("accountId", Google.Apis.Util.RequestParameterType.Path)] public virtual ulong AccountId { get; private set; } /// <summary>The email of the Google My Business account.</summary> [Google.Apis.Util.RequestParameterAttribute("gmbEmail", Google.Apis.Util.RequestParameterType.Query)] public virtual string GmbEmail { get; private set; } ///<summary>Gets the method name.</summary> public override string MethodName { get { return "requestgmbaccess"; } } ///<summary>Gets the HTTP method.</summary> public override string HttpMethod { get { return "POST"; } } ///<summary>Gets the REST path.</summary> public override string RestPath { get { return "{merchantId}/liasettings/{accountId}/requestgmbaccess"; } } /// <summary>Initializes Requestgmbaccess parameter list.</summary> protected override void InitParameters() { base.InitParameters(); RequestParameters.Add( "merchantId", new Google.Apis.Discovery.Parameter { Name = "merchantId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add( "accountId", new Google.Apis.Discovery.Parameter { Name = "accountId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add( "gmbEmail", new Google.Apis.Discovery.Parameter { Name = "gmbEmail", IsRequired = true, ParameterType = "query", DefaultValue = null, Pattern = null, }); } } /// <summary>Requests inventory validation for the specified country.</summary> /// <param name="merchantId">The ID of the managing account. If this parameter is not the same as accountId, then this /// account must be a multi-client account and accountId must be the ID of a sub-account of this /// account.</param> /// <param name="accountId">The ID of the account that manages the order. This cannot be a /// multi-client account.</param> /// <param name="country">The country for which inventory validation is /// requested.</param> public virtual RequestinventoryverificationRequest Requestinventoryverification(ulong merchantId, ulong accountId, string country) { return new RequestinventoryverificationRequest(service, merchantId, accountId, country); } /// <summary>Requests inventory validation for the specified country.</summary> public class RequestinventoryverificationRequest : ShoppingContentBaseServiceRequest<Google.Apis.ShoppingContent.v2.Data.LiasettingsRequestInventoryVerificationResponse> { /// <summary>Constructs a new Requestinventoryverification request.</summary> public RequestinventoryverificationRequest(Google.Apis.Services.IClientService service, ulong merchantId, ulong accountId, string country) : base(service) { MerchantId = merchantId; AccountId = accountId; Country = country; InitParameters(); } /// <summary>The ID of the managing account. If this parameter is not the same as accountId, then this /// account must be a multi-client account and accountId must be the ID of a sub-account of this /// account.</summary> [Google.Apis.Util.RequestParameterAttribute("merchantId", Google.Apis.Util.RequestParameterType.Path)] public virtual ulong MerchantId { get; private set; } /// <summary>The ID of the account that manages the order. This cannot be a multi-client account.</summary> [Google.Apis.Util.RequestParameterAttribute("accountId", Google.Apis.Util.RequestParameterType.Path)] public virtual ulong AccountId { get; private set; } /// <summary>The country for which inventory validation is requested.</summary> [Google.Apis.Util.RequestParameterAttribute("country", Google.Apis.Util.RequestParameterType.Path)] public virtual string Country { get; private set; } ///<summary>Gets the method name.</summary> public override string MethodName { get { return "requestinventoryverification"; } } ///<summary>Gets the HTTP method.</summary> public override string HttpMethod { get { return "POST"; } } ///<summary>Gets the REST path.</summary> public override string RestPath { get { return "{merchantId}/liasettings/{accountId}/requestinventoryverification/{country}"; } } /// <summary>Initializes Requestinventoryverification parameter list.</summary> protected override void InitParameters() { base.InitParameters(); RequestParameters.Add( "merchantId", new Google.Apis.Discovery.Parameter { Name = "merchantId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add( "accountId", new Google.Apis.Discovery.Parameter { Name = "accountId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add( "country", new Google.Apis.Discovery.Parameter { Name = "country", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); } } /// <summary>Sets the inventory verification contract for the specified country.</summary> /// <param name="merchantId">The ID of the managing account. If this parameter is not the same as accountId, then this /// account must be a multi-client account and accountId must be the ID of a sub-account of this /// account.</param> /// <param name="accountId">The ID of the account that manages the order. This cannot be a /// multi-client account.</param> /// <param name="contactEmail">The email of the inventory verification /// contact.</param> /// <param name="contactName">The name of the inventory verification contact.</param> /// /// <param name="country">The country for which inventory verification is requested.</param> /// <param /// name="language">The language for which inventory verification is requested.</param> public virtual SetinventoryverificationcontactRequest Setinventoryverificationcontact(ulong merchantId, ulong accountId, string contactEmail, string contactName, string country, string language) { return new SetinventoryverificationcontactRequest(service, merchantId, accountId, contactEmail, contactName, country, language); } /// <summary>Sets the inventory verification contract for the specified country.</summary> public class SetinventoryverificationcontactRequest : ShoppingContentBaseServiceRequest<Google.Apis.ShoppingContent.v2.Data.LiasettingsSetInventoryVerificationContactResponse> { /// <summary>Constructs a new Setinventoryverificationcontact request.</summary> public SetinventoryverificationcontactRequest(Google.Apis.Services.IClientService service, ulong merchantId, ulong accountId, string contactEmail, string contactName, string country, string language) : base(service) { MerchantId = merchantId; AccountId = accountId; ContactEmail = contactEmail; ContactName = contactName; Country = country; Language = language; InitParameters(); } /// <summary>The ID of the managing account. If this parameter is not the same as accountId, then this /// account must be a multi-client account and accountId must be the ID of a sub-account of this /// account.</summary> [Google.Apis.Util.RequestParameterAttribute("merchantId", Google.Apis.Util.RequestParameterType.Path)] public virtual ulong MerchantId { get; private set; } /// <summary>The ID of the account that manages the order. This cannot be a multi-client account.</summary> [Google.Apis.Util.RequestParameterAttribute("accountId", Google.Apis.Util.RequestParameterType.Path)] public virtual ulong AccountId { get; private set; } /// <summary>The email of the inventory verification contact.</summary> [Google.Apis.Util.RequestParameterAttribute("contactEmail", Google.Apis.Util.RequestParameterType.Query)] public virtual string ContactEmail { get; private set; } /// <summary>The name of the inventory verification contact.</summary> [Google.Apis.Util.RequestParameterAttribute("contactName", Google.Apis.Util.RequestParameterType.Query)] public virtual string ContactName { get; private set; } /// <summary>The country for which inventory verification is requested.</summary> [Google.Apis.Util.RequestParameterAttribute("country", Google.Apis.Util.RequestParameterType.Query)] public virtual string Country { get; private set; } /// <summary>The language for which inventory verification is requested.</summary> [Google.Apis.Util.RequestParameterAttribute("language", Google.Apis.Util.RequestParameterType.Query)] public virtual string Language { get; private set; } ///<summary>Gets the method name.</summary> public override string MethodName { get { return "setinventoryverificationcontact"; } } ///<summary>Gets the HTTP method.</summary> public override string HttpMethod { get { return "POST"; } } ///<summary>Gets the REST path.</summary> public override string RestPath { get { return "{merchantId}/liasettings/{accountId}/setinventoryverificationcontact"; } } /// <summary>Initializes Setinventoryverificationcontact parameter list.</summary> protected override void InitParameters() { base.InitParameters(); RequestParameters.Add( "merchantId", new Google.Apis.Discovery.Parameter { Name = "merchantId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add( "accountId", new Google.Apis.Discovery.Parameter { Name = "accountId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add( "contactEmail", new Google.Apis.Discovery.Parameter { Name = "contactEmail", IsRequired = true, ParameterType = "query", DefaultValue = null, Pattern = null, }); RequestParameters.Add( "contactName", new Google.Apis.Discovery.Parameter { Name = "contactName", IsRequired = true, ParameterType = "query", DefaultValue = null, Pattern = null, }); RequestParameters.Add( "country", new Google.Apis.Discovery.Parameter { Name = "country", IsRequired = true, ParameterType = "query", DefaultValue = null, Pattern = null, }); RequestParameters.Add( "language", new Google.Apis.Discovery.Parameter { Name = "language", IsRequired = true, ParameterType = "query", DefaultValue = null, Pattern = null, }); } } /// <summary>Sets the POS data provider for the specified country.</summary> /// <param name="merchantId">The ID of the managing account. If this parameter is not the same as accountId, then this /// account must be a multi-client account and accountId must be the ID of a sub-account of this /// account.</param> /// <param name="accountId">The ID of the account for which to retrieve accessible Google My /// Business accounts.</param> /// <param name="country">The country for which the POS data provider is /// selected.</param> public virtual SetposdataproviderRequest Setposdataprovider(ulong merchantId, ulong accountId, string country) { return new SetposdataproviderRequest(service, merchantId, accountId, country); } /// <summary>Sets the POS data provider for the specified country.</summary> public class SetposdataproviderRequest : ShoppingContentBaseServiceRequest<Google.Apis.ShoppingContent.v2.Data.LiasettingsSetPosDataProviderResponse> { /// <summary>Constructs a new Setposdataprovider request.</summary> public SetposdataproviderRequest(Google.Apis.Services.IClientService service, ulong merchantId, ulong accountId, string country) : base(service) { MerchantId = merchantId; AccountId = accountId; Country = country; InitParameters(); } /// <summary>The ID of the managing account. If this parameter is not the same as accountId, then this /// account must be a multi-client account and accountId must be the ID of a sub-account of this /// account.</summary> [Google.Apis.Util.RequestParameterAttribute("merchantId", Google.Apis.Util.RequestParameterType.Path)] public virtual ulong MerchantId { get; private set; } /// <summary>The ID of the account for which to retrieve accessible Google My Business accounts.</summary> [Google.Apis.Util.RequestParameterAttribute("accountId", Google.Apis.Util.RequestParameterType.Path)] public virtual ulong AccountId { get; private set; } /// <summary>The country for which the POS data provider is selected.</summary> [Google.Apis.Util.RequestParameterAttribute("country", Google.Apis.Util.RequestParameterType.Query)] public virtual string Country { get; private set; } /// <summary>The ID of POS data provider.</summary> [Google.Apis.Util.RequestParameterAttribute("posDataProviderId", Google.Apis.Util.RequestParameterType.Query)] public virtual System.Nullable<ulong> PosDataProviderId { get; set; } /// <summary>The account ID by which this merchant is known to the POS data provider.</summary> [Google.Apis.Util.RequestParameterAttribute("posExternalAccountId", Google.Apis.Util.RequestParameterType.Query)] public virtual string PosExternalAccountId { get; set; } ///<summary>Gets the method name.</summary> public override string MethodName { get { return "setposdataprovider"; } } ///<summary>Gets the HTTP method.</summary> public override string HttpMethod { get { return "POST"; } } ///<summary>Gets the REST path.</summary> public override string RestPath { get { return "{merchantId}/liasettings/{accountId}/setposdataprovider"; } } /// <summary>Initializes Setposdataprovider parameter list.</summary> protected override void InitParameters() { base.InitParameters(); RequestParameters.Add( "merchantId", new Google.Apis.Discovery.Parameter { Name = "merchantId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add( "accountId", new Google.Apis.Discovery.Parameter { Name = "accountId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add( "country", new Google.Apis.Discovery.Parameter { Name = "country", IsRequired = true, ParameterType = "query", DefaultValue = null, Pattern = null, }); RequestParameters.Add( "posDataProviderId", new Google.Apis.Discovery.Parameter { Name = "posDataProviderId", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); RequestParameters.Add( "posExternalAccountId", new Google.Apis.Discovery.Parameter { Name = "posExternalAccountId", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); } } /// <summary>Updates the LIA settings of the account.</summary> /// <param name="body">The body of the request.</param> /// <param name="merchantId">The ID of the managing account. If this parameter is not the same as accountId, then this /// account must be a multi-client account and accountId must be the ID of a sub-account of this /// account.</param> /// <param name="accountId">The ID of the account for which to get or update LIA /// settings.</param> public virtual UpdateRequest Update(Google.Apis.ShoppingContent.v2.Data.LiaSettings body, ulong merchantId, ulong accountId) { return new UpdateRequest(service, body, merchantId, accountId); } /// <summary>Updates the LIA settings of the account.</summary> public class UpdateRequest : ShoppingContentBaseServiceRequest<Google.Apis.ShoppingContent.v2.Data.LiaSettings> { /// <summary>Constructs a new Update request.</summary> public UpdateRequest(Google.Apis.Services.IClientService service, Google.Apis.ShoppingContent.v2.Data.LiaSettings body, ulong merchantId, ulong accountId) : base(service) { MerchantId = merchantId; AccountId = accountId; Body = body; InitParameters(); } /// <summary>The ID of the managing account. If this parameter is not the same as accountId, then this /// account must be a multi-client account and accountId must be the ID of a sub-account of this /// account.</summary> [Google.Apis.Util.RequestParameterAttribute("merchantId", Google.Apis.Util.RequestParameterType.Path)] public virtual ulong MerchantId { get; private set; } /// <summary>The ID of the account for which to get or update LIA settings.</summary> [Google.Apis.Util.RequestParameterAttribute("accountId", Google.Apis.Util.RequestParameterType.Path)] public virtual ulong AccountId { get; private set; } /// <summary>Flag to simulate a request like in a live environment. If set to true, dry-run mode checks the /// validity of the request and returns errors (if any).</summary> [Google.Apis.Util.RequestParameterAttribute("dryRun", Google.Apis.Util.RequestParameterType.Query)] public virtual System.Nullable<bool> DryRun { get; set; } /// <summary>Gets or sets the body of this request.</summary> Google.Apis.ShoppingContent.v2.Data.LiaSettings Body { get; set; } ///<summary>Returns the body of the request.</summary> protected override object GetBody() { return Body; } ///<summary>Gets the method name.</summary> public override string MethodName { get { return "update"; } } ///<summary>Gets the HTTP method.</summary> public override string HttpMethod { get { return "PUT"; } } ///<summary>Gets the REST path.</summary> public override string RestPath { get { return "{merchantId}/liasettings/{accountId}"; } } /// <summary>Initializes Update parameter list.</summary> protected override void InitParameters() { base.InitParameters(); RequestParameters.Add( "merchantId", new Google.Apis.Discovery.Parameter { Name = "merchantId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add( "accountId", new Google.Apis.Discovery.Parameter { Name = "accountId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add( "dryRun", new Google.Apis.Discovery.Parameter { Name = "dryRun", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); } } } /// <summary>The "orderinvoices" collection of methods.</summary> public class OrderinvoicesResource { private const string Resource = "orderinvoices"; /// <summary>The service which this resource belongs to.</summary> private readonly Google.Apis.Services.IClientService service; /// <summary>Constructs a new resource.</summary> public OrderinvoicesResource(Google.Apis.Services.IClientService service) { this.service = service; } /// <summary>Creates a charge invoice for a shipment group, and triggers a charge capture for orderinvoice /// enabled orders.</summary> /// <param name="body">The body of the request.</param> /// <param name="merchantId">The ID of the account that manages the order. This cannot be a multi-client /// account.</param> /// <param name="orderId">The ID of the order.</param> public virtual CreatechargeinvoiceRequest Createchargeinvoice(Google.Apis.ShoppingContent.v2.Data.OrderinvoicesCreateChargeInvoiceRequest body, ulong merchantId, string orderId) { return new CreatechargeinvoiceRequest(service, body, merchantId, orderId); } /// <summary>Creates a charge invoice for a shipment group, and triggers a charge capture for orderinvoice /// enabled orders.</summary> public class CreatechargeinvoiceRequest : ShoppingContentBaseServiceRequest<Google.Apis.ShoppingContent.v2.Data.OrderinvoicesCreateChargeInvoiceResponse> { /// <summary>Constructs a new Createchargeinvoice request.</summary> public CreatechargeinvoiceRequest(Google.Apis.Services.IClientService service, Google.Apis.ShoppingContent.v2.Data.OrderinvoicesCreateChargeInvoiceRequest body, ulong merchantId, string orderId) : base(service) { MerchantId = merchantId; OrderId = orderId; Body = body; InitParameters(); } /// <summary>The ID of the account that manages the order. This cannot be a multi-client account.</summary> [Google.Apis.Util.RequestParameterAttribute("merchantId", Google.Apis.Util.RequestParameterType.Path)] public virtual ulong MerchantId { get; private set; } /// <summary>The ID of the order.</summary> [Google.Apis.Util.RequestParameterAttribute("orderId", Google.Apis.Util.RequestParameterType.Path)] public virtual string OrderId { get; private set; } /// <summary>Gets or sets the body of this request.</summary> Google.Apis.ShoppingContent.v2.Data.OrderinvoicesCreateChargeInvoiceRequest Body { get; set; } ///<summary>Returns the body of the request.</summary> protected override object GetBody() { return Body; } ///<summary>Gets the method name.</summary> public override string MethodName { get { return "createchargeinvoice"; } } ///<summary>Gets the HTTP method.</summary> public override string HttpMethod { get { return "POST"; } } ///<summary>Gets the REST path.</summary> public override string RestPath { get { return "{merchantId}/orderinvoices/{orderId}/createChargeInvoice"; } } /// <summary>Initializes Createchargeinvoice parameter list.</summary> protected override void InitParameters() { base.InitParameters(); RequestParameters.Add( "merchantId", new Google.Apis.Discovery.Parameter { Name = "merchantId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add( "orderId", new Google.Apis.Discovery.Parameter { Name = "orderId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); } } /// <summary>Creates a refund invoice for one or more shipment groups, and triggers a refund for orderinvoice /// enabled orders. This can only be used for line items that have previously been charged using /// createChargeInvoice. All amounts (except for the summary) are incremental with respect to the previous /// invoice.</summary> /// <param name="body">The body of the request.</param> /// <param name="merchantId">The ID of the account that manages the order. This cannot be a multi-client /// account.</param> /// <param name="orderId">The ID of the order.</param> public virtual CreaterefundinvoiceRequest Createrefundinvoice(Google.Apis.ShoppingContent.v2.Data.OrderinvoicesCreateRefundInvoiceRequest body, ulong merchantId, string orderId) { return new CreaterefundinvoiceRequest(service, body, merchantId, orderId); } /// <summary>Creates a refund invoice for one or more shipment groups, and triggers a refund for orderinvoice /// enabled orders. This can only be used for line items that have previously been charged using /// createChargeInvoice. All amounts (except for the summary) are incremental with respect to the previous /// invoice.</summary> public class CreaterefundinvoiceRequest : ShoppingContentBaseServiceRequest<Google.Apis.ShoppingContent.v2.Data.OrderinvoicesCreateRefundInvoiceResponse> { /// <summary>Constructs a new Createrefundinvoice request.</summary> public CreaterefundinvoiceRequest(Google.Apis.Services.IClientService service, Google.Apis.ShoppingContent.v2.Data.OrderinvoicesCreateRefundInvoiceRequest body, ulong merchantId, string orderId) : base(service) { MerchantId = merchantId; OrderId = orderId; Body = body; InitParameters(); } /// <summary>The ID of the account that manages the order. This cannot be a multi-client account.</summary> [Google.Apis.Util.RequestParameterAttribute("merchantId", Google.Apis.Util.RequestParameterType.Path)] public virtual ulong MerchantId { get; private set; } /// <summary>The ID of the order.</summary> [Google.Apis.Util.RequestParameterAttribute("orderId", Google.Apis.Util.RequestParameterType.Path)] public virtual string OrderId { get; private set; } /// <summary>Gets or sets the body of this request.</summary> Google.Apis.ShoppingContent.v2.Data.OrderinvoicesCreateRefundInvoiceRequest Body { get; set; } ///<summary>Returns the body of the request.</summary> protected override object GetBody() { return Body; } ///<summary>Gets the method name.</summary> public override string MethodName { get { return "createrefundinvoice"; } } ///<summary>Gets the HTTP method.</summary> public override string HttpMethod { get { return "POST"; } } ///<summary>Gets the REST path.</summary> public override string RestPath { get { return "{merchantId}/orderinvoices/{orderId}/createRefundInvoice"; } } /// <summary>Initializes Createrefundinvoice parameter list.</summary> protected override void InitParameters() { base.InitParameters(); RequestParameters.Add( "merchantId", new Google.Apis.Discovery.Parameter { Name = "merchantId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add( "orderId", new Google.Apis.Discovery.Parameter { Name = "orderId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); } } } /// <summary>The "orderreports" collection of methods.</summary> public class OrderreportsResource { private const string Resource = "orderreports"; /// <summary>The service which this resource belongs to.</summary> private readonly Google.Apis.Services.IClientService service; /// <summary>Constructs a new resource.</summary> public OrderreportsResource(Google.Apis.Services.IClientService service) { this.service = service; } /// <summary>Retrieves a report for disbursements from your Merchant Center account.</summary> /// <param name="merchantId">The ID of the account that manages the order. This cannot be a multi-client /// account.</param> /// <param name="disbursementStartDate">The first date which disbursements occurred. In ISO /// 8601 format.</param> public virtual ListdisbursementsRequest Listdisbursements(ulong merchantId, string disbursementStartDate) { return new ListdisbursementsRequest(service, merchantId, disbursementStartDate); } /// <summary>Retrieves a report for disbursements from your Merchant Center account.</summary> public class ListdisbursementsRequest : ShoppingContentBaseServiceRequest<Google.Apis.ShoppingContent.v2.Data.OrderreportsListDisbursementsResponse> { /// <summary>Constructs a new Listdisbursements request.</summary> public ListdisbursementsRequest(Google.Apis.Services.IClientService service, ulong merchantId, string disbursementStartDate) : base(service) { MerchantId = merchantId; DisbursementStartDate = disbursementStartDate; InitParameters(); } /// <summary>The ID of the account that manages the order. This cannot be a multi-client account.</summary> [Google.Apis.Util.RequestParameterAttribute("merchantId", Google.Apis.Util.RequestParameterType.Path)] public virtual ulong MerchantId { get; private set; } /// <summary>The first date which disbursements occurred. In ISO 8601 format.</summary> [Google.Apis.Util.RequestParameterAttribute("disbursementStartDate", Google.Apis.Util.RequestParameterType.Query)] public virtual string DisbursementStartDate { get; private set; } /// <summary>The last date which disbursements occurred. In ISO 8601 format. Default: current /// date.</summary> [Google.Apis.Util.RequestParameterAttribute("disbursementEndDate", Google.Apis.Util.RequestParameterType.Query)] public virtual string DisbursementEndDate { get; set; } /// <summary>The maximum number of disbursements to return in the response, used for paging.</summary> [Google.Apis.Util.RequestParameterAttribute("maxResults", Google.Apis.Util.RequestParameterType.Query)] public virtual System.Nullable<long> MaxResults { get; set; } /// <summary>The token returned by the previous request.</summary> [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] public virtual string PageToken { get; set; } ///<summary>Gets the method name.</summary> public override string MethodName { get { return "listdisbursements"; } } ///<summary>Gets the HTTP method.</summary> public override string HttpMethod { get { return "GET"; } } ///<summary>Gets the REST path.</summary> public override string RestPath { get { return "{merchantId}/orderreports/disbursements"; } } /// <summary>Initializes Listdisbursements parameter list.</summary> protected override void InitParameters() { base.InitParameters(); RequestParameters.Add( "merchantId", new Google.Apis.Discovery.Parameter { Name = "merchantId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add( "disbursementStartDate", new Google.Apis.Discovery.Parameter { Name = "disbursementStartDate", IsRequired = true, ParameterType = "query", DefaultValue = null, Pattern = null, }); RequestParameters.Add( "disbursementEndDate", new Google.Apis.Discovery.Parameter { Name = "disbursementEndDate", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); RequestParameters.Add( "maxResults", new Google.Apis.Discovery.Parameter { Name = "maxResults", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); RequestParameters.Add( "pageToken", new Google.Apis.Discovery.Parameter { Name = "pageToken", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); } } /// <summary>Retrieves a list of transactions for a disbursement from your Merchant Center account.</summary> /// <param name="merchantId">The ID of the account that manages the order. This cannot be a multi-client /// account.</param> /// <param name="disbursementId">The Google-provided ID of the disbursement (found in /// Wallet).</param> /// <param name="transactionStartDate">The first date in which transaction occurred. In ISO /// 8601 format.</param> public virtual ListtransactionsRequest Listtransactions(ulong merchantId, string disbursementId, string transactionStartDate) { return new ListtransactionsRequest(service, merchantId, disbursementId, transactionStartDate); } /// <summary>Retrieves a list of transactions for a disbursement from your Merchant Center account.</summary> public class ListtransactionsRequest : ShoppingContentBaseServiceRequest<Google.Apis.ShoppingContent.v2.Data.OrderreportsListTransactionsResponse> { /// <summary>Constructs a new Listtransactions request.</summary> public ListtransactionsRequest(Google.Apis.Services.IClientService service, ulong merchantId, string disbursementId, string transactionStartDate) : base(service) { MerchantId = merchantId; DisbursementId = disbursementId; TransactionStartDate = transactionStartDate; InitParameters(); } /// <summary>The ID of the account that manages the order. This cannot be a multi-client account.</summary> [Google.Apis.Util.RequestParameterAttribute("merchantId", Google.Apis.Util.RequestParameterType.Path)] public virtual ulong MerchantId { get; private set; } /// <summary>The Google-provided ID of the disbursement (found in Wallet).</summary> [Google.Apis.Util.RequestParameterAttribute("disbursementId", Google.Apis.Util.RequestParameterType.Path)] public virtual string DisbursementId { get; private set; } /// <summary>The first date in which transaction occurred. In ISO 8601 format.</summary> [Google.Apis.Util.RequestParameterAttribute("transactionStartDate", Google.Apis.Util.RequestParameterType.Query)] public virtual string TransactionStartDate { get; private set; } /// <summary>The maximum number of disbursements to return in the response, used for paging.</summary> [Google.Apis.Util.RequestParameterAttribute("maxResults", Google.Apis.Util.RequestParameterType.Query)] public virtual System.Nullable<long> MaxResults { get; set; } /// <summary>The token returned by the previous request.</summary> [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] public virtual string PageToken { get; set; } /// <summary>The last date in which transaction occurred. In ISO 8601 format. Default: current /// date.</summary> [Google.Apis.Util.RequestParameterAttribute("transactionEndDate", Google.Apis.Util.RequestParameterType.Query)] public virtual string TransactionEndDate { get; set; } ///<summary>Gets the method name.</summary> public override string MethodName { get { return "listtransactions"; } } ///<summary>Gets the HTTP method.</summary> public override string HttpMethod { get { return "GET"; } } ///<summary>Gets the REST path.</summary> public override string RestPath { get { return "{merchantId}/orderreports/disbursements/{disbursementId}/transactions"; } } /// <summary>Initializes Listtransactions parameter list.</summary> protected override void InitParameters() { base.InitParameters(); RequestParameters.Add( "merchantId", new Google.Apis.Discovery.Parameter { Name = "merchantId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add( "disbursementId", new Google.Apis.Discovery.Parameter { Name = "disbursementId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add( "transactionStartDate", new Google.Apis.Discovery.Parameter { Name = "transactionStartDate", IsRequired = true, ParameterType = "query", DefaultValue = null, Pattern = null, }); RequestParameters.Add( "maxResults", new Google.Apis.Discovery.Parameter { Name = "maxResults", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); RequestParameters.Add( "pageToken", new Google.Apis.Discovery.Parameter { Name = "pageToken", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); RequestParameters.Add( "transactionEndDate", new Google.Apis.Discovery.Parameter { Name = "transactionEndDate", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); } } } /// <summary>The "orderreturns" collection of methods.</summary> public class OrderreturnsResource { private const string Resource = "orderreturns"; /// <summary>The service which this resource belongs to.</summary> private readonly Google.Apis.Services.IClientService service; /// <summary>Constructs a new resource.</summary> public OrderreturnsResource(Google.Apis.Services.IClientService service) { this.service = service; } /// <summary>Retrieves an order return from your Merchant Center account.</summary> /// <param name="merchantId">The ID of the account that manages the order. This cannot be a multi-client /// account.</param> /// <param name="returnId">Merchant order return ID generated by Google.</param> public virtual GetRequest Get(ulong merchantId, string returnId) { return new GetRequest(service, merchantId, returnId); } /// <summary>Retrieves an order return from your Merchant Center account.</summary> public class GetRequest : ShoppingContentBaseServiceRequest<Google.Apis.ShoppingContent.v2.Data.MerchantOrderReturn> { /// <summary>Constructs a new Get request.</summary> public GetRequest(Google.Apis.Services.IClientService service, ulong merchantId, string returnId) : base(service) { MerchantId = merchantId; ReturnId = returnId; InitParameters(); } /// <summary>The ID of the account that manages the order. This cannot be a multi-client account.</summary> [Google.Apis.Util.RequestParameterAttribute("merchantId", Google.Apis.Util.RequestParameterType.Path)] public virtual ulong MerchantId { get; private set; } /// <summary>Merchant order return ID generated by Google.</summary> [Google.Apis.Util.RequestParameterAttribute("returnId", Google.Apis.Util.RequestParameterType.Path)] public virtual string ReturnId { get; private set; } ///<summary>Gets the method name.</summary> public override string MethodName { get { return "get"; } } ///<summary>Gets the HTTP method.</summary> public override string HttpMethod { get { return "GET"; } } ///<summary>Gets the REST path.</summary> public override string RestPath { get { return "{merchantId}/orderreturns/{returnId}"; } } /// <summary>Initializes Get parameter list.</summary> protected override void InitParameters() { base.InitParameters(); RequestParameters.Add( "merchantId", new Google.Apis.Discovery.Parameter { Name = "merchantId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add( "returnId", new Google.Apis.Discovery.Parameter { Name = "returnId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); } } /// <summary>Lists order returns in your Merchant Center account.</summary> /// <param name="merchantId">The ID of the account that manages the order. This cannot be a multi-client /// account.</param> public virtual ListRequest List(ulong merchantId) { return new ListRequest(service, merchantId); } /// <summary>Lists order returns in your Merchant Center account.</summary> public class ListRequest : ShoppingContentBaseServiceRequest<Google.Apis.ShoppingContent.v2.Data.OrderreturnsListResponse> { /// <summary>Constructs a new List request.</summary> public ListRequest(Google.Apis.Services.IClientService service, ulong merchantId) : base(service) { MerchantId = merchantId; InitParameters(); } /// <summary>The ID of the account that manages the order. This cannot be a multi-client account.</summary> [Google.Apis.Util.RequestParameterAttribute("merchantId", Google.Apis.Util.RequestParameterType.Path)] public virtual ulong MerchantId { get; private set; } /// <summary>Obtains order returns created before this date (inclusively), in ISO 8601 format.</summary> [Google.Apis.Util.RequestParameterAttribute("createdEndDate", Google.Apis.Util.RequestParameterType.Query)] public virtual string CreatedEndDate { get; set; } /// <summary>Obtains order returns created after this date (inclusively), in ISO 8601 format.</summary> [Google.Apis.Util.RequestParameterAttribute("createdStartDate", Google.Apis.Util.RequestParameterType.Query)] public virtual string CreatedStartDate { get; set; } /// <summary>The maximum number of order returns to return in the response, used for paging. The default /// value is 25 returns per page, and the maximum allowed value is 250 returns per page.</summary> [Google.Apis.Util.RequestParameterAttribute("maxResults", Google.Apis.Util.RequestParameterType.Query)] public virtual System.Nullable<long> MaxResults { get; set; } /// <summary>Return the results in the specified order.</summary> [Google.Apis.Util.RequestParameterAttribute("orderBy", Google.Apis.Util.RequestParameterType.Query)] public virtual System.Nullable<OrderByEnum> OrderBy { get; set; } /// <summary>Return the results in the specified order.</summary> public enum OrderByEnum { [Google.Apis.Util.StringValueAttribute("returnCreationTimeAsc")] ReturnCreationTimeAsc, [Google.Apis.Util.StringValueAttribute("returnCreationTimeDesc")] ReturnCreationTimeDesc, } /// <summary>The token returned by the previous request.</summary> [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] public virtual string PageToken { get; set; } ///<summary>Gets the method name.</summary> public override string MethodName { get { return "list"; } } ///<summary>Gets the HTTP method.</summary> public override string HttpMethod { get { return "GET"; } } ///<summary>Gets the REST path.</summary> public override string RestPath { get { return "{merchantId}/orderreturns"; } } /// <summary>Initializes List parameter list.</summary> protected override void InitParameters() { base.InitParameters(); RequestParameters.Add( "merchantId", new Google.Apis.Discovery.Parameter { Name = "merchantId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add( "createdEndDate", new Google.Apis.Discovery.Parameter { Name = "createdEndDate", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); RequestParameters.Add( "createdStartDate", new Google.Apis.Discovery.Parameter { Name = "createdStartDate", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); RequestParameters.Add( "maxResults", new Google.Apis.Discovery.Parameter { Name = "maxResults", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); RequestParameters.Add( "orderBy", new Google.Apis.Discovery.Parameter { Name = "orderBy", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); RequestParameters.Add( "pageToken", new Google.Apis.Discovery.Parameter { Name = "pageToken", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); } } } /// <summary>The "orders" collection of methods.</summary> public class OrdersResource { private const string Resource = "orders"; /// <summary>The service which this resource belongs to.</summary> private readonly Google.Apis.Services.IClientService service; /// <summary>Constructs a new resource.</summary> public OrdersResource(Google.Apis.Services.IClientService service) { this.service = service; } /// <summary>Marks an order as acknowledged.</summary> /// <param name="body">The body of the request.</param> /// <param name="merchantId">The ID of the account that manages the order. This cannot be a multi-client /// account.</param> /// <param name="orderId">The ID of the order.</param> public virtual AcknowledgeRequest Acknowledge(Google.Apis.ShoppingContent.v2.Data.OrdersAcknowledgeRequest body, ulong merchantId, string orderId) { return new AcknowledgeRequest(service, body, merchantId, orderId); } /// <summary>Marks an order as acknowledged.</summary> public class AcknowledgeRequest : ShoppingContentBaseServiceRequest<Google.Apis.ShoppingContent.v2.Data.OrdersAcknowledgeResponse> { /// <summary>Constructs a new Acknowledge request.</summary> public AcknowledgeRequest(Google.Apis.Services.IClientService service, Google.Apis.ShoppingContent.v2.Data.OrdersAcknowledgeRequest body, ulong merchantId, string orderId) : base(service) { MerchantId = merchantId; OrderId = orderId; Body = body; InitParameters(); } /// <summary>The ID of the account that manages the order. This cannot be a multi-client account.</summary> [Google.Apis.Util.RequestParameterAttribute("merchantId", Google.Apis.Util.RequestParameterType.Path)] public virtual ulong MerchantId { get; private set; } /// <summary>The ID of the order.</summary> [Google.Apis.Util.RequestParameterAttribute("orderId", Google.Apis.Util.RequestParameterType.Path)] public virtual string OrderId { get; private set; } /// <summary>Gets or sets the body of this request.</summary> Google.Apis.ShoppingContent.v2.Data.OrdersAcknowledgeRequest Body { get; set; } ///<summary>Returns the body of the request.</summary> protected override object GetBody() { return Body; } ///<summary>Gets the method name.</summary> public override string MethodName { get { return "acknowledge"; } } ///<summary>Gets the HTTP method.</summary> public override string HttpMethod { get { return "POST"; } } ///<summary>Gets the REST path.</summary> public override string RestPath { get { return "{merchantId}/orders/{orderId}/acknowledge"; } } /// <summary>Initializes Acknowledge parameter list.</summary> protected override void InitParameters() { base.InitParameters(); RequestParameters.Add( "merchantId", new Google.Apis.Discovery.Parameter { Name = "merchantId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add( "orderId", new Google.Apis.Discovery.Parameter { Name = "orderId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); } } /// <summary>Sandbox only. Moves a test order from state "inProgress" to state "pendingShipment".</summary> /// <param name="merchantId">The ID of the account that manages the order. This cannot be a multi-client /// account.</param> /// <param name="orderId">The ID of the test order to modify.</param> public virtual AdvancetestorderRequest Advancetestorder(ulong merchantId, string orderId) { return new AdvancetestorderRequest(service, merchantId, orderId); } /// <summary>Sandbox only. Moves a test order from state "inProgress" to state "pendingShipment".</summary> public class AdvancetestorderRequest : ShoppingContentBaseServiceRequest<Google.Apis.ShoppingContent.v2.Data.OrdersAdvanceTestOrderResponse> { /// <summary>Constructs a new Advancetestorder request.</summary> public AdvancetestorderRequest(Google.Apis.Services.IClientService service, ulong merchantId, string orderId) : base(service) { MerchantId = merchantId; OrderId = orderId; InitParameters(); } /// <summary>The ID of the account that manages the order. This cannot be a multi-client account.</summary> [Google.Apis.Util.RequestParameterAttribute("merchantId", Google.Apis.Util.RequestParameterType.Path)] public virtual ulong MerchantId { get; private set; } /// <summary>The ID of the test order to modify.</summary> [Google.Apis.Util.RequestParameterAttribute("orderId", Google.Apis.Util.RequestParameterType.Path)] public virtual string OrderId { get; private set; } ///<summary>Gets the method name.</summary> public override string MethodName { get { return "advancetestorder"; } } ///<summary>Gets the HTTP method.</summary> public override string HttpMethod { get { return "POST"; } } ///<summary>Gets the REST path.</summary> public override string RestPath { get { return "{merchantId}/testorders/{orderId}/advance"; } } /// <summary>Initializes Advancetestorder parameter list.</summary> protected override void InitParameters() { base.InitParameters(); RequestParameters.Add( "merchantId", new Google.Apis.Discovery.Parameter { Name = "merchantId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add( "orderId", new Google.Apis.Discovery.Parameter { Name = "orderId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); } } /// <summary>Cancels all line items in an order, making a full refund.</summary> /// <param name="body">The body of the request.</param> /// <param name="merchantId">The ID of the account that manages the order. This cannot be a multi-client /// account.</param> /// <param name="orderId">The ID of the order to cancel.</param> public virtual CancelRequest Cancel(Google.Apis.ShoppingContent.v2.Data.OrdersCancelRequest body, ulong merchantId, string orderId) { return new CancelRequest(service, body, merchantId, orderId); } /// <summary>Cancels all line items in an order, making a full refund.</summary> public class CancelRequest : ShoppingContentBaseServiceRequest<Google.Apis.ShoppingContent.v2.Data.OrdersCancelResponse> { /// <summary>Constructs a new Cancel request.</summary> public CancelRequest(Google.Apis.Services.IClientService service, Google.Apis.ShoppingContent.v2.Data.OrdersCancelRequest body, ulong merchantId, string orderId) : base(service) { MerchantId = merchantId; OrderId = orderId; Body = body; InitParameters(); } /// <summary>The ID of the account that manages the order. This cannot be a multi-client account.</summary> [Google.Apis.Util.RequestParameterAttribute("merchantId", Google.Apis.Util.RequestParameterType.Path)] public virtual ulong MerchantId { get; private set; } /// <summary>The ID of the order to cancel.</summary> [Google.Apis.Util.RequestParameterAttribute("orderId", Google.Apis.Util.RequestParameterType.Path)] public virtual string OrderId { get; private set; } /// <summary>Gets or sets the body of this request.</summary> Google.Apis.ShoppingContent.v2.Data.OrdersCancelRequest Body { get; set; } ///<summary>Returns the body of the request.</summary> protected override object GetBody() { return Body; } ///<summary>Gets the method name.</summary> public override string MethodName { get { return "cancel"; } } ///<summary>Gets the HTTP method.</summary> public override string HttpMethod { get { return "POST"; } } ///<summary>Gets the REST path.</summary> public override string RestPath { get { return "{merchantId}/orders/{orderId}/cancel"; } } /// <summary>Initializes Cancel parameter list.</summary> protected override void InitParameters() { base.InitParameters(); RequestParameters.Add( "merchantId", new Google.Apis.Discovery.Parameter { Name = "merchantId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add( "orderId", new Google.Apis.Discovery.Parameter { Name = "orderId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); } } /// <summary>Cancels a line item, making a full refund.</summary> /// <param name="body">The body of the request.</param> /// <param name="merchantId">The ID of the account that manages the order. This cannot be a multi-client /// account.</param> /// <param name="orderId">The ID of the order.</param> public virtual CancellineitemRequest Cancellineitem(Google.Apis.ShoppingContent.v2.Data.OrdersCancelLineItemRequest body, ulong merchantId, string orderId) { return new CancellineitemRequest(service, body, merchantId, orderId); } /// <summary>Cancels a line item, making a full refund.</summary> public class CancellineitemRequest : ShoppingContentBaseServiceRequest<Google.Apis.ShoppingContent.v2.Data.OrdersCancelLineItemResponse> { /// <summary>Constructs a new Cancellineitem request.</summary> public CancellineitemRequest(Google.Apis.Services.IClientService service, Google.Apis.ShoppingContent.v2.Data.OrdersCancelLineItemRequest body, ulong merchantId, string orderId) : base(service) { MerchantId = merchantId; OrderId = orderId; Body = body; InitParameters(); } /// <summary>The ID of the account that manages the order. This cannot be a multi-client account.</summary> [Google.Apis.Util.RequestParameterAttribute("merchantId", Google.Apis.Util.RequestParameterType.Path)] public virtual ulong MerchantId { get; private set; } /// <summary>The ID of the order.</summary> [Google.Apis.Util.RequestParameterAttribute("orderId", Google.Apis.Util.RequestParameterType.Path)] public virtual string OrderId { get; private set; } /// <summary>Gets or sets the body of this request.</summary> Google.Apis.ShoppingContent.v2.Data.OrdersCancelLineItemRequest Body { get; set; } ///<summary>Returns the body of the request.</summary> protected override object GetBody() { return Body; } ///<summary>Gets the method name.</summary> public override string MethodName { get { return "cancellineitem"; } } ///<summary>Gets the HTTP method.</summary> public override string HttpMethod { get { return "POST"; } } ///<summary>Gets the REST path.</summary> public override string RestPath { get { return "{merchantId}/orders/{orderId}/cancelLineItem"; } } /// <summary>Initializes Cancellineitem parameter list.</summary> protected override void InitParameters() { base.InitParameters(); RequestParameters.Add( "merchantId", new Google.Apis.Discovery.Parameter { Name = "merchantId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add( "orderId", new Google.Apis.Discovery.Parameter { Name = "orderId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); } } /// <summary>Sandbox only. Cancels a test order for customer-initiated cancellation.</summary> /// <param name="body">The body of the request.</param> /// <param name="merchantId">The ID of the account that manages the order. This cannot be a multi-client /// account.</param> /// <param name="orderId">The ID of the test order to cancel.</param> public virtual CanceltestorderbycustomerRequest Canceltestorderbycustomer(Google.Apis.ShoppingContent.v2.Data.OrdersCancelTestOrderByCustomerRequest body, ulong merchantId, string orderId) { return new CanceltestorderbycustomerRequest(service, body, merchantId, orderId); } /// <summary>Sandbox only. Cancels a test order for customer-initiated cancellation.</summary> public class CanceltestorderbycustomerRequest : ShoppingContentBaseServiceRequest<Google.Apis.ShoppingContent.v2.Data.OrdersCancelTestOrderByCustomerResponse> { /// <summary>Constructs a new Canceltestorderbycustomer request.</summary> public CanceltestorderbycustomerRequest(Google.Apis.Services.IClientService service, Google.Apis.ShoppingContent.v2.Data.OrdersCancelTestOrderByCustomerRequest body, ulong merchantId, string orderId) : base(service) { MerchantId = merchantId; OrderId = orderId; Body = body; InitParameters(); } /// <summary>The ID of the account that manages the order. This cannot be a multi-client account.</summary> [Google.Apis.Util.RequestParameterAttribute("merchantId", Google.Apis.Util.RequestParameterType.Path)] public virtual ulong MerchantId { get; private set; } /// <summary>The ID of the test order to cancel.</summary> [Google.Apis.Util.RequestParameterAttribute("orderId", Google.Apis.Util.RequestParameterType.Path)] public virtual string OrderId { get; private set; } /// <summary>Gets or sets the body of this request.</summary> Google.Apis.ShoppingContent.v2.Data.OrdersCancelTestOrderByCustomerRequest Body { get; set; } ///<summary>Returns the body of the request.</summary> protected override object GetBody() { return Body; } ///<summary>Gets the method name.</summary> public override string MethodName { get { return "canceltestorderbycustomer"; } } ///<summary>Gets the HTTP method.</summary> public override string HttpMethod { get { return "POST"; } } ///<summary>Gets the REST path.</summary> public override string RestPath { get { return "{merchantId}/testorders/{orderId}/cancelByCustomer"; } } /// <summary>Initializes Canceltestorderbycustomer parameter list.</summary> protected override void InitParameters() { base.InitParameters(); RequestParameters.Add( "merchantId", new Google.Apis.Discovery.Parameter { Name = "merchantId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add( "orderId", new Google.Apis.Discovery.Parameter { Name = "orderId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); } } /// <summary>Sandbox only. Creates a test order.</summary> /// <param name="body">The body of the request.</param> /// <param name="merchantId">The ID of the account that should manage the order. This cannot be a multi-client /// account.</param> public virtual CreatetestorderRequest Createtestorder(Google.Apis.ShoppingContent.v2.Data.OrdersCreateTestOrderRequest body, ulong merchantId) { return new CreatetestorderRequest(service, body, merchantId); } /// <summary>Sandbox only. Creates a test order.</summary> public class CreatetestorderRequest : ShoppingContentBaseServiceRequest<Google.Apis.ShoppingContent.v2.Data.OrdersCreateTestOrderResponse> { /// <summary>Constructs a new Createtestorder request.</summary> public CreatetestorderRequest(Google.Apis.Services.IClientService service, Google.Apis.ShoppingContent.v2.Data.OrdersCreateTestOrderRequest body, ulong merchantId) : base(service) { MerchantId = merchantId; Body = body; InitParameters(); } /// <summary>The ID of the account that should manage the order. This cannot be a multi-client /// account.</summary> [Google.Apis.Util.RequestParameterAttribute("merchantId", Google.Apis.Util.RequestParameterType.Path)] public virtual ulong MerchantId { get; private set; } /// <summary>Gets or sets the body of this request.</summary> Google.Apis.ShoppingContent.v2.Data.OrdersCreateTestOrderRequest Body { get; set; } ///<summary>Returns the body of the request.</summary> protected override object GetBody() { return Body; } ///<summary>Gets the method name.</summary> public override string MethodName { get { return "createtestorder"; } } ///<summary>Gets the HTTP method.</summary> public override string HttpMethod { get { return "POST"; } } ///<summary>Gets the REST path.</summary> public override string RestPath { get { return "{merchantId}/testorders"; } } /// <summary>Initializes Createtestorder parameter list.</summary> protected override void InitParameters() { base.InitParameters(); RequestParameters.Add( "merchantId", new Google.Apis.Discovery.Parameter { Name = "merchantId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); } } /// <summary>Sandbox only. Creates a test return.</summary> /// <param name="body">The body of the request.</param> /// <param name="merchantId">The ID of the account that manages the order. This cannot be a multi-client /// account.</param> /// <param name="orderId">The ID of the order.</param> public virtual CreatetestreturnRequest Createtestreturn(Google.Apis.ShoppingContent.v2.Data.OrdersCreateTestReturnRequest body, ulong merchantId, string orderId) { return new CreatetestreturnRequest(service, body, merchantId, orderId); } /// <summary>Sandbox only. Creates a test return.</summary> public class CreatetestreturnRequest : ShoppingContentBaseServiceRequest<Google.Apis.ShoppingContent.v2.Data.OrdersCreateTestReturnResponse> { /// <summary>Constructs a new Createtestreturn request.</summary> public CreatetestreturnRequest(Google.Apis.Services.IClientService service, Google.Apis.ShoppingContent.v2.Data.OrdersCreateTestReturnRequest body, ulong merchantId, string orderId) : base(service) { MerchantId = merchantId; OrderId = orderId; Body = body; InitParameters(); } /// <summary>The ID of the account that manages the order. This cannot be a multi-client account.</summary> [Google.Apis.Util.RequestParameterAttribute("merchantId", Google.Apis.Util.RequestParameterType.Path)] public virtual ulong MerchantId { get; private set; } /// <summary>The ID of the order.</summary> [Google.Apis.Util.RequestParameterAttribute("orderId", Google.Apis.Util.RequestParameterType.Path)] public virtual string OrderId { get; private set; } /// <summary>Gets or sets the body of this request.</summary> Google.Apis.ShoppingContent.v2.Data.OrdersCreateTestReturnRequest Body { get; set; } ///<summary>Returns the body of the request.</summary> protected override object GetBody() { return Body; } ///<summary>Gets the method name.</summary> public override string MethodName { get { return "createtestreturn"; } } ///<summary>Gets the HTTP method.</summary> public override string HttpMethod { get { return "POST"; } } ///<summary>Gets the REST path.</summary> public override string RestPath { get { return "{merchantId}/orders/{orderId}/testreturn"; } } /// <summary>Initializes Createtestreturn parameter list.</summary> protected override void InitParameters() { base.InitParameters(); RequestParameters.Add( "merchantId", new Google.Apis.Discovery.Parameter { Name = "merchantId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add( "orderId", new Google.Apis.Discovery.Parameter { Name = "orderId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); } } /// <summary>Retrieves or modifies multiple orders in a single request.</summary> /// <param name="body">The body of the request.</param> public virtual CustombatchRequest Custombatch(Google.Apis.ShoppingContent.v2.Data.OrdersCustomBatchRequest body) { return new CustombatchRequest(service, body); } /// <summary>Retrieves or modifies multiple orders in a single request.</summary> public class CustombatchRequest : ShoppingContentBaseServiceRequest<Google.Apis.ShoppingContent.v2.Data.OrdersCustomBatchResponse> { /// <summary>Constructs a new Custombatch request.</summary> public CustombatchRequest(Google.Apis.Services.IClientService service, Google.Apis.ShoppingContent.v2.Data.OrdersCustomBatchRequest body) : base(service) { Body = body; InitParameters(); } /// <summary>Gets or sets the body of this request.</summary> Google.Apis.ShoppingContent.v2.Data.OrdersCustomBatchRequest Body { get; set; } ///<summary>Returns the body of the request.</summary> protected override object GetBody() { return Body; } ///<summary>Gets the method name.</summary> public override string MethodName { get { return "custombatch"; } } ///<summary>Gets the HTTP method.</summary> public override string HttpMethod { get { return "POST"; } } ///<summary>Gets the REST path.</summary> public override string RestPath { get { return "orders/batch"; } } /// <summary>Initializes Custombatch parameter list.</summary> protected override void InitParameters() { base.InitParameters(); } } /// <summary>Retrieves an order from your Merchant Center account.</summary> /// <param name="merchantId">The ID of the account that manages the order. This cannot be a multi-client /// account.</param> /// <param name="orderId">The ID of the order.</param> public virtual GetRequest Get(ulong merchantId, string orderId) { return new GetRequest(service, merchantId, orderId); } /// <summary>Retrieves an order from your Merchant Center account.</summary> public class GetRequest : ShoppingContentBaseServiceRequest<Google.Apis.ShoppingContent.v2.Data.Order> { /// <summary>Constructs a new Get request.</summary> public GetRequest(Google.Apis.Services.IClientService service, ulong merchantId, string orderId) : base(service) { MerchantId = merchantId; OrderId = orderId; InitParameters(); } /// <summary>The ID of the account that manages the order. This cannot be a multi-client account.</summary> [Google.Apis.Util.RequestParameterAttribute("merchantId", Google.Apis.Util.RequestParameterType.Path)] public virtual ulong MerchantId { get; private set; } /// <summary>The ID of the order.</summary> [Google.Apis.Util.RequestParameterAttribute("orderId", Google.Apis.Util.RequestParameterType.Path)] public virtual string OrderId { get; private set; } ///<summary>Gets the method name.</summary> public override string MethodName { get { return "get"; } } ///<summary>Gets the HTTP method.</summary> public override string HttpMethod { get { return "GET"; } } ///<summary>Gets the REST path.</summary> public override string RestPath { get { return "{merchantId}/orders/{orderId}"; } } /// <summary>Initializes Get parameter list.</summary> protected override void InitParameters() { base.InitParameters(); RequestParameters.Add( "merchantId", new Google.Apis.Discovery.Parameter { Name = "merchantId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add( "orderId", new Google.Apis.Discovery.Parameter { Name = "orderId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); } } /// <summary>Retrieves an order using merchant order ID.</summary> /// <param name="merchantId">The ID of the account that manages the order. This cannot be a multi-client /// account.</param> /// <param name="merchantOrderId">The merchant order ID to be looked for.</param> public virtual GetbymerchantorderidRequest Getbymerchantorderid(ulong merchantId, string merchantOrderId) { return new GetbymerchantorderidRequest(service, merchantId, merchantOrderId); } /// <summary>Retrieves an order using merchant order ID.</summary> public class GetbymerchantorderidRequest : ShoppingContentBaseServiceRequest<Google.Apis.ShoppingContent.v2.Data.OrdersGetByMerchantOrderIdResponse> { /// <summary>Constructs a new Getbymerchantorderid request.</summary> public GetbymerchantorderidRequest(Google.Apis.Services.IClientService service, ulong merchantId, string merchantOrderId) : base(service) { MerchantId = merchantId; MerchantOrderId = merchantOrderId; InitParameters(); } /// <summary>The ID of the account that manages the order. This cannot be a multi-client account.</summary> [Google.Apis.Util.RequestParameterAttribute("merchantId", Google.Apis.Util.RequestParameterType.Path)] public virtual ulong MerchantId { get; private set; } /// <summary>The merchant order ID to be looked for.</summary> [Google.Apis.Util.RequestParameterAttribute("merchantOrderId", Google.Apis.Util.RequestParameterType.Path)] public virtual string MerchantOrderId { get; private set; } ///<summary>Gets the method name.</summary> public override string MethodName { get { return "getbymerchantorderid"; } } ///<summary>Gets the HTTP method.</summary> public override string HttpMethod { get { return "GET"; } } ///<summary>Gets the REST path.</summary> public override string RestPath { get { return "{merchantId}/ordersbymerchantid/{merchantOrderId}"; } } /// <summary>Initializes Getbymerchantorderid parameter list.</summary> protected override void InitParameters() { base.InitParameters(); RequestParameters.Add( "merchantId", new Google.Apis.Discovery.Parameter { Name = "merchantId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add( "merchantOrderId", new Google.Apis.Discovery.Parameter { Name = "merchantOrderId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); } } /// <summary>Sandbox only. Retrieves an order template that can be used to quickly create a new order in /// sandbox.</summary> /// <param name="merchantId">The ID of the account that should manage the order. This cannot be a multi-client /// account.</param> /// <param name="templateName">The name of the template to retrieve.</param> public virtual GettestordertemplateRequest Gettestordertemplate(ulong merchantId, GettestordertemplateRequest.TemplateNameEnum templateName) { return new GettestordertemplateRequest(service, merchantId, templateName); } /// <summary>Sandbox only. Retrieves an order template that can be used to quickly create a new order in /// sandbox.</summary> public class GettestordertemplateRequest : ShoppingContentBaseServiceRequest<Google.Apis.ShoppingContent.v2.Data.OrdersGetTestOrderTemplateResponse> { /// <summary>Constructs a new Gettestordertemplate request.</summary> public GettestordertemplateRequest(Google.Apis.Services.IClientService service, ulong merchantId, GettestordertemplateRequest.TemplateNameEnum templateName) : base(service) { MerchantId = merchantId; TemplateName = templateName; InitParameters(); } /// <summary>The ID of the account that should manage the order. This cannot be a multi-client /// account.</summary> [Google.Apis.Util.RequestParameterAttribute("merchantId", Google.Apis.Util.RequestParameterType.Path)] public virtual ulong MerchantId { get; private set; } /// <summary>The name of the template to retrieve.</summary> [Google.Apis.Util.RequestParameterAttribute("templateName", Google.Apis.Util.RequestParameterType.Path)] public virtual TemplateNameEnum TemplateName { get; private set; } /// <summary>The name of the template to retrieve.</summary> public enum TemplateNameEnum { [Google.Apis.Util.StringValueAttribute("template1")] Template1, [Google.Apis.Util.StringValueAttribute("template1a")] Template1a, [Google.Apis.Util.StringValueAttribute("template1b")] Template1b, [Google.Apis.Util.StringValueAttribute("template2")] Template2, } /// <summary>The country of the template to retrieve. Defaults to US.</summary> [Google.Apis.Util.RequestParameterAttribute("country", Google.Apis.Util.RequestParameterType.Query)] public virtual string Country { get; set; } ///<summary>Gets the method name.</summary> public override string MethodName { get { return "gettestordertemplate"; } } ///<summary>Gets the HTTP method.</summary> public override string HttpMethod { get { return "GET"; } } ///<summary>Gets the REST path.</summary> public override string RestPath { get { return "{merchantId}/testordertemplates/{templateName}"; } } /// <summary>Initializes Gettestordertemplate parameter list.</summary> protected override void InitParameters() { base.InitParameters(); RequestParameters.Add( "merchantId", new Google.Apis.Discovery.Parameter { Name = "merchantId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add( "templateName", new Google.Apis.Discovery.Parameter { Name = "templateName", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add( "country", new Google.Apis.Discovery.Parameter { Name = "country", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); } } /// <summary>Deprecated. Notifies that item return and refund was handled directly by merchant outside of Google /// payments processing (e.g. cash refund done in store). Note: We recommend calling the returnrefundlineitem /// method to refund in-store returns. We will issue the refund directly to the customer. This helps to prevent /// possible differences arising between merchant and Google transaction records. We also recommend having the /// point of sale system communicate with Google to ensure that customers do not receive a double refund by /// first refunding via Google then via an in-store return.</summary> /// <param name="body">The body of the request.</param> /// <param name="merchantId">The ID of the account that manages the order. This cannot be a multi-client /// account.</param> /// <param name="orderId">The ID of the order.</param> public virtual InstorerefundlineitemRequest Instorerefundlineitem(Google.Apis.ShoppingContent.v2.Data.OrdersInStoreRefundLineItemRequest body, ulong merchantId, string orderId) { return new InstorerefundlineitemRequest(service, body, merchantId, orderId); } /// <summary>Deprecated. Notifies that item return and refund was handled directly by merchant outside of Google /// payments processing (e.g. cash refund done in store). Note: We recommend calling the returnrefundlineitem /// method to refund in-store returns. We will issue the refund directly to the customer. This helps to prevent /// possible differences arising between merchant and Google transaction records. We also recommend having the /// point of sale system communicate with Google to ensure that customers do not receive a double refund by /// first refunding via Google then via an in-store return.</summary> public class InstorerefundlineitemRequest : ShoppingContentBaseServiceRequest<Google.Apis.ShoppingContent.v2.Data.OrdersInStoreRefundLineItemResponse> { /// <summary>Constructs a new Instorerefundlineitem request.</summary> public InstorerefundlineitemRequest(Google.Apis.Services.IClientService service, Google.Apis.ShoppingContent.v2.Data.OrdersInStoreRefundLineItemRequest body, ulong merchantId, string orderId) : base(service) { MerchantId = merchantId; OrderId = orderId; Body = body; InitParameters(); } /// <summary>The ID of the account that manages the order. This cannot be a multi-client account.</summary> [Google.Apis.Util.RequestParameterAttribute("merchantId", Google.Apis.Util.RequestParameterType.Path)] public virtual ulong MerchantId { get; private set; } /// <summary>The ID of the order.</summary> [Google.Apis.Util.RequestParameterAttribute("orderId", Google.Apis.Util.RequestParameterType.Path)] public virtual string OrderId { get; private set; } /// <summary>Gets or sets the body of this request.</summary> Google.Apis.ShoppingContent.v2.Data.OrdersInStoreRefundLineItemRequest Body { get; set; } ///<summary>Returns the body of the request.</summary> protected override object GetBody() { return Body; } ///<summary>Gets the method name.</summary> public override string MethodName { get { return "instorerefundlineitem"; } } ///<summary>Gets the HTTP method.</summary> public override string HttpMethod { get { return "POST"; } } ///<summary>Gets the REST path.</summary> public override string RestPath { get { return "{merchantId}/orders/{orderId}/inStoreRefundLineItem"; } } /// <summary>Initializes Instorerefundlineitem parameter list.</summary> protected override void InitParameters() { base.InitParameters(); RequestParameters.Add( "merchantId", new Google.Apis.Discovery.Parameter { Name = "merchantId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add( "orderId", new Google.Apis.Discovery.Parameter { Name = "orderId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); } } /// <summary>Lists the orders in your Merchant Center account.</summary> /// <param name="merchantId">The ID of the account that manages the order. This cannot be a multi-client /// account.</param> public virtual ListRequest List(ulong merchantId) { return new ListRequest(service, merchantId); } /// <summary>Lists the orders in your Merchant Center account.</summary> public class ListRequest : ShoppingContentBaseServiceRequest<Google.Apis.ShoppingContent.v2.Data.OrdersListResponse> { /// <summary>Constructs a new List request.</summary> public ListRequest(Google.Apis.Services.IClientService service, ulong merchantId) : base(service) { MerchantId = merchantId; InitParameters(); } /// <summary>The ID of the account that manages the order. This cannot be a multi-client account.</summary> [Google.Apis.Util.RequestParameterAttribute("merchantId", Google.Apis.Util.RequestParameterType.Path)] public virtual ulong MerchantId { get; private set; } /// <summary>Obtains orders that match the acknowledgement status. When set to true, obtains orders that /// have been acknowledged. When false, obtains orders that have not been acknowledged. We recommend using /// this filter set to false, in conjunction with the acknowledge call, such that only un-acknowledged /// orders are returned.</summary> [Google.Apis.Util.RequestParameterAttribute("acknowledged", Google.Apis.Util.RequestParameterType.Query)] public virtual System.Nullable<bool> Acknowledged { get; set; } /// <summary>The maximum number of orders to return in the response, used for paging. The default value is /// 25 orders per page, and the maximum allowed value is 250 orders per page.</summary> [Google.Apis.Util.RequestParameterAttribute("maxResults", Google.Apis.Util.RequestParameterType.Query)] public virtual System.Nullable<long> MaxResults { get; set; } /// <summary>Order results by placement date in descending or ascending order. /// /// Acceptable values are: - placedDateAsc - placedDateDesc</summary> [Google.Apis.Util.RequestParameterAttribute("orderBy", Google.Apis.Util.RequestParameterType.Query)] public virtual string OrderBy { get; set; } /// <summary>The token returned by the previous request.</summary> [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] public virtual string PageToken { get; set; } /// <summary>Obtains orders placed before this date (exclusively), in ISO 8601 format.</summary> [Google.Apis.Util.RequestParameterAttribute("placedDateEnd", Google.Apis.Util.RequestParameterType.Query)] public virtual string PlacedDateEnd { get; set; } /// <summary>Obtains orders placed after this date (inclusively), in ISO 8601 format.</summary> [Google.Apis.Util.RequestParameterAttribute("placedDateStart", Google.Apis.Util.RequestParameterType.Query)] public virtual string PlacedDateStart { get; set; } /// <summary>Obtains orders that match any of the specified statuses. Please note that active is a shortcut /// for pendingShipment and partiallyShipped, and completed is a shortcut for shipped, partiallyDelivered, /// delivered, partiallyReturned, returned, and canceled.</summary> [Google.Apis.Util.RequestParameterAttribute("statuses", Google.Apis.Util.RequestParameterType.Query)] public virtual System.Nullable<StatusesEnum> Statuses { get; set; } /// <summary>Obtains orders that match any of the specified statuses. Please note that active is a shortcut /// for pendingShipment and partiallyShipped, and completed is a shortcut for shipped, partiallyDelivered, /// delivered, partiallyReturned, returned, and canceled.</summary> public enum StatusesEnum { [Google.Apis.Util.StringValueAttribute("active")] Active, [Google.Apis.Util.StringValueAttribute("canceled")] Canceled, [Google.Apis.Util.StringValueAttribute("completed")] Completed, [Google.Apis.Util.StringValueAttribute("delivered")] Delivered, [Google.Apis.Util.StringValueAttribute("inProgress")] InProgress, [Google.Apis.Util.StringValueAttribute("partiallyDelivered")] PartiallyDelivered, [Google.Apis.Util.StringValueAttribute("partiallyReturned")] PartiallyReturned, [Google.Apis.Util.StringValueAttribute("partiallyShipped")] PartiallyShipped, [Google.Apis.Util.StringValueAttribute("pendingShipment")] PendingShipment, [Google.Apis.Util.StringValueAttribute("returned")] Returned, [Google.Apis.Util.StringValueAttribute("shipped")] Shipped, } ///<summary>Gets the method name.</summary> public override string MethodName { get { return "list"; } } ///<summary>Gets the HTTP method.</summary> public override string HttpMethod { get { return "GET"; } } ///<summary>Gets the REST path.</summary> public override string RestPath { get { return "{merchantId}/orders"; } } /// <summary>Initializes List parameter list.</summary> protected override void InitParameters() { base.InitParameters(); RequestParameters.Add( "merchantId", new Google.Apis.Discovery.Parameter { Name = "merchantId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add( "acknowledged", new Google.Apis.Discovery.Parameter { Name = "acknowledged", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); RequestParameters.Add( "maxResults", new Google.Apis.Discovery.Parameter { Name = "maxResults", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); RequestParameters.Add( "orderBy", new Google.Apis.Discovery.Parameter { Name = "orderBy", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); RequestParameters.Add( "pageToken", new Google.Apis.Discovery.Parameter { Name = "pageToken", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); RequestParameters.Add( "placedDateEnd", new Google.Apis.Discovery.Parameter { Name = "placedDateEnd", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); RequestParameters.Add( "placedDateStart", new Google.Apis.Discovery.Parameter { Name = "placedDateStart", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); RequestParameters.Add( "statuses", new Google.Apis.Discovery.Parameter { Name = "statuses", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); } } /// <summary>Deprecated, please use returnRefundLineItem instead.</summary> /// <param name="body">The body of the request.</param> /// <param name="merchantId">The ID of the account that manages the order. This cannot be a multi-client /// account.</param> /// <param name="orderId">The ID of the order to refund.</param> public virtual RefundRequest Refund(Google.Apis.ShoppingContent.v2.Data.OrdersRefundRequest body, ulong merchantId, string orderId) { return new RefundRequest(service, body, merchantId, orderId); } /// <summary>Deprecated, please use returnRefundLineItem instead.</summary> public class RefundRequest : ShoppingContentBaseServiceRequest<Google.Apis.ShoppingContent.v2.Data.OrdersRefundResponse> { /// <summary>Constructs a new Refund request.</summary> public RefundRequest(Google.Apis.Services.IClientService service, Google.Apis.ShoppingContent.v2.Data.OrdersRefundRequest body, ulong merchantId, string orderId) : base(service) { MerchantId = merchantId; OrderId = orderId; Body = body; InitParameters(); } /// <summary>The ID of the account that manages the order. This cannot be a multi-client account.</summary> [Google.Apis.Util.RequestParameterAttribute("merchantId", Google.Apis.Util.RequestParameterType.Path)] public virtual ulong MerchantId { get; private set; } /// <summary>The ID of the order to refund.</summary> [Google.Apis.Util.RequestParameterAttribute("orderId", Google.Apis.Util.RequestParameterType.Path)] public virtual string OrderId { get; private set; } /// <summary>Gets or sets the body of this request.</summary> Google.Apis.ShoppingContent.v2.Data.OrdersRefundRequest Body { get; set; } ///<summary>Returns the body of the request.</summary> protected override object GetBody() { return Body; } ///<summary>Gets the method name.</summary> public override string MethodName { get { return "refund"; } } ///<summary>Gets the HTTP method.</summary> public override string HttpMethod { get { return "POST"; } } ///<summary>Gets the REST path.</summary> public override string RestPath { get { return "{merchantId}/orders/{orderId}/refund"; } } /// <summary>Initializes Refund parameter list.</summary> protected override void InitParameters() { base.InitParameters(); RequestParameters.Add( "merchantId", new Google.Apis.Discovery.Parameter { Name = "merchantId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add( "orderId", new Google.Apis.Discovery.Parameter { Name = "orderId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); } } /// <summary>Rejects return on an line item.</summary> /// <param name="body">The body of the request.</param> /// <param name="merchantId">The ID of the account that manages the order. This cannot be a multi-client /// account.</param> /// <param name="orderId">The ID of the order.</param> public virtual RejectreturnlineitemRequest Rejectreturnlineitem(Google.Apis.ShoppingContent.v2.Data.OrdersRejectReturnLineItemRequest body, ulong merchantId, string orderId) { return new RejectreturnlineitemRequest(service, body, merchantId, orderId); } /// <summary>Rejects return on an line item.</summary> public class RejectreturnlineitemRequest : ShoppingContentBaseServiceRequest<Google.Apis.ShoppingContent.v2.Data.OrdersRejectReturnLineItemResponse> { /// <summary>Constructs a new Rejectreturnlineitem request.</summary> public RejectreturnlineitemRequest(Google.Apis.Services.IClientService service, Google.Apis.ShoppingContent.v2.Data.OrdersRejectReturnLineItemRequest body, ulong merchantId, string orderId) : base(service) { MerchantId = merchantId; OrderId = orderId; Body = body; InitParameters(); } /// <summary>The ID of the account that manages the order. This cannot be a multi-client account.</summary> [Google.Apis.Util.RequestParameterAttribute("merchantId", Google.Apis.Util.RequestParameterType.Path)] public virtual ulong MerchantId { get; private set; } /// <summary>The ID of the order.</summary> [Google.Apis.Util.RequestParameterAttribute("orderId", Google.Apis.Util.RequestParameterType.Path)] public virtual string OrderId { get; private set; } /// <summary>Gets or sets the body of this request.</summary> Google.Apis.ShoppingContent.v2.Data.OrdersRejectReturnLineItemRequest Body { get; set; } ///<summary>Returns the body of the request.</summary> protected override object GetBody() { return Body; } ///<summary>Gets the method name.</summary> public override string MethodName { get { return "rejectreturnlineitem"; } } ///<summary>Gets the HTTP method.</summary> public override string HttpMethod { get { return "POST"; } } ///<summary>Gets the REST path.</summary> public override string RestPath { get { return "{merchantId}/orders/{orderId}/rejectReturnLineItem"; } } /// <summary>Initializes Rejectreturnlineitem parameter list.</summary> protected override void InitParameters() { base.InitParameters(); RequestParameters.Add( "merchantId", new Google.Apis.Discovery.Parameter { Name = "merchantId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add( "orderId", new Google.Apis.Discovery.Parameter { Name = "orderId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); } } /// <summary>Returns a line item.</summary> /// <param name="body">The body of the request.</param> /// <param name="merchantId">The ID of the account that manages the order. This cannot be a multi-client /// account.</param> /// <param name="orderId">The ID of the order.</param> public virtual ReturnlineitemRequest Returnlineitem(Google.Apis.ShoppingContent.v2.Data.OrdersReturnLineItemRequest body, ulong merchantId, string orderId) { return new ReturnlineitemRequest(service, body, merchantId, orderId); } /// <summary>Returns a line item.</summary> public class ReturnlineitemRequest : ShoppingContentBaseServiceRequest<Google.Apis.ShoppingContent.v2.Data.OrdersReturnLineItemResponse> { /// <summary>Constructs a new Returnlineitem request.</summary> public ReturnlineitemRequest(Google.Apis.Services.IClientService service, Google.Apis.ShoppingContent.v2.Data.OrdersReturnLineItemRequest body, ulong merchantId, string orderId) : base(service) { MerchantId = merchantId; OrderId = orderId; Body = body; InitParameters(); } /// <summary>The ID of the account that manages the order. This cannot be a multi-client account.</summary> [Google.Apis.Util.RequestParameterAttribute("merchantId", Google.Apis.Util.RequestParameterType.Path)] public virtual ulong MerchantId { get; private set; } /// <summary>The ID of the order.</summary> [Google.Apis.Util.RequestParameterAttribute("orderId", Google.Apis.Util.RequestParameterType.Path)] public virtual string OrderId { get; private set; } /// <summary>Gets or sets the body of this request.</summary> Google.Apis.ShoppingContent.v2.Data.OrdersReturnLineItemRequest Body { get; set; } ///<summary>Returns the body of the request.</summary> protected override object GetBody() { return Body; } ///<summary>Gets the method name.</summary> public override string MethodName { get { return "returnlineitem"; } } ///<summary>Gets the HTTP method.</summary> public override string HttpMethod { get { return "POST"; } } ///<summary>Gets the REST path.</summary> public override string RestPath { get { return "{merchantId}/orders/{orderId}/returnLineItem"; } } /// <summary>Initializes Returnlineitem parameter list.</summary> protected override void InitParameters() { base.InitParameters(); RequestParameters.Add( "merchantId", new Google.Apis.Discovery.Parameter { Name = "merchantId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add( "orderId", new Google.Apis.Discovery.Parameter { Name = "orderId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); } } /// <summary>Returns and refunds a line item. Note that this method can only be called on fully shipped /// orders.</summary> /// <param name="body">The body of the request.</param> /// <param name="merchantId">The ID of the account that manages the order. This cannot be a multi-client /// account.</param> /// <param name="orderId">The ID of the order.</param> public virtual ReturnrefundlineitemRequest Returnrefundlineitem(Google.Apis.ShoppingContent.v2.Data.OrdersReturnRefundLineItemRequest body, ulong merchantId, string orderId) { return new ReturnrefundlineitemRequest(service, body, merchantId, orderId); } /// <summary>Returns and refunds a line item. Note that this method can only be called on fully shipped /// orders.</summary> public class ReturnrefundlineitemRequest : ShoppingContentBaseServiceRequest<Google.Apis.ShoppingContent.v2.Data.OrdersReturnRefundLineItemResponse> { /// <summary>Constructs a new Returnrefundlineitem request.</summary> public ReturnrefundlineitemRequest(Google.Apis.Services.IClientService service, Google.Apis.ShoppingContent.v2.Data.OrdersReturnRefundLineItemRequest body, ulong merchantId, string orderId) : base(service) { MerchantId = merchantId; OrderId = orderId; Body = body; InitParameters(); } /// <summary>The ID of the account that manages the order. This cannot be a multi-client account.</summary> [Google.Apis.Util.RequestParameterAttribute("merchantId", Google.Apis.Util.RequestParameterType.Path)] public virtual ulong MerchantId { get; private set; } /// <summary>The ID of the order.</summary> [Google.Apis.Util.RequestParameterAttribute("orderId", Google.Apis.Util.RequestParameterType.Path)] public virtual string OrderId { get; private set; } /// <summary>Gets or sets the body of this request.</summary> Google.Apis.ShoppingContent.v2.Data.OrdersReturnRefundLineItemRequest Body { get; set; } ///<summary>Returns the body of the request.</summary> protected override object GetBody() { return Body; } ///<summary>Gets the method name.</summary> public override string MethodName { get { return "returnrefundlineitem"; } } ///<summary>Gets the HTTP method.</summary> public override string HttpMethod { get { return "POST"; } } ///<summary>Gets the REST path.</summary> public override string RestPath { get { return "{merchantId}/orders/{orderId}/returnRefundLineItem"; } } /// <summary>Initializes Returnrefundlineitem parameter list.</summary> protected override void InitParameters() { base.InitParameters(); RequestParameters.Add( "merchantId", new Google.Apis.Discovery.Parameter { Name = "merchantId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add( "orderId", new Google.Apis.Discovery.Parameter { Name = "orderId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); } } /// <summary>Sets (or overrides if it already exists) merchant provided annotations in the form of key-value /// pairs. A common use case would be to supply us with additional structured information about a line item that /// cannot be provided via other methods. Submitted key-value pairs can be retrieved as part of the orders /// resource.</summary> /// <param name="body">The body of the request.</param> /// <param name="merchantId">The ID of the account that manages the order. This cannot be a multi-client /// account.</param> /// <param name="orderId">The ID of the order.</param> public virtual SetlineitemmetadataRequest Setlineitemmetadata(Google.Apis.ShoppingContent.v2.Data.OrdersSetLineItemMetadataRequest body, ulong merchantId, string orderId) { return new SetlineitemmetadataRequest(service, body, merchantId, orderId); } /// <summary>Sets (or overrides if it already exists) merchant provided annotations in the form of key-value /// pairs. A common use case would be to supply us with additional structured information about a line item that /// cannot be provided via other methods. Submitted key-value pairs can be retrieved as part of the orders /// resource.</summary> public class SetlineitemmetadataRequest : ShoppingContentBaseServiceRequest<Google.Apis.ShoppingContent.v2.Data.OrdersSetLineItemMetadataResponse> { /// <summary>Constructs a new Setlineitemmetadata request.</summary> public SetlineitemmetadataRequest(Google.Apis.Services.IClientService service, Google.Apis.ShoppingContent.v2.Data.OrdersSetLineItemMetadataRequest body, ulong merchantId, string orderId) : base(service) { MerchantId = merchantId; OrderId = orderId; Body = body; InitParameters(); } /// <summary>The ID of the account that manages the order. This cannot be a multi-client account.</summary> [Google.Apis.Util.RequestParameterAttribute("merchantId", Google.Apis.Util.RequestParameterType.Path)] public virtual ulong MerchantId { get; private set; } /// <summary>The ID of the order.</summary> [Google.Apis.Util.RequestParameterAttribute("orderId", Google.Apis.Util.RequestParameterType.Path)] public virtual string OrderId { get; private set; } /// <summary>Gets or sets the body of this request.</summary> Google.Apis.ShoppingContent.v2.Data.OrdersSetLineItemMetadataRequest Body { get; set; } ///<summary>Returns the body of the request.</summary> protected override object GetBody() { return Body; } ///<summary>Gets the method name.</summary> public override string MethodName { get { return "setlineitemmetadata"; } } ///<summary>Gets the HTTP method.</summary> public override string HttpMethod { get { return "POST"; } } ///<summary>Gets the REST path.</summary> public override string RestPath { get { return "{merchantId}/orders/{orderId}/setLineItemMetadata"; } } /// <summary>Initializes Setlineitemmetadata parameter list.</summary> protected override void InitParameters() { base.InitParameters(); RequestParameters.Add( "merchantId", new Google.Apis.Discovery.Parameter { Name = "merchantId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add( "orderId", new Google.Apis.Discovery.Parameter { Name = "orderId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); } } /// <summary>Marks line item(s) as shipped.</summary> /// <param name="body">The body of the request.</param> /// <param name="merchantId">The ID of the account that manages the order. This cannot be a multi-client /// account.</param> /// <param name="orderId">The ID of the order.</param> public virtual ShiplineitemsRequest Shiplineitems(Google.Apis.ShoppingContent.v2.Data.OrdersShipLineItemsRequest body, ulong merchantId, string orderId) { return new ShiplineitemsRequest(service, body, merchantId, orderId); } /// <summary>Marks line item(s) as shipped.</summary> public class ShiplineitemsRequest : ShoppingContentBaseServiceRequest<Google.Apis.ShoppingContent.v2.Data.OrdersShipLineItemsResponse> { /// <summary>Constructs a new Shiplineitems request.</summary> public ShiplineitemsRequest(Google.Apis.Services.IClientService service, Google.Apis.ShoppingContent.v2.Data.OrdersShipLineItemsRequest body, ulong merchantId, string orderId) : base(service) { MerchantId = merchantId; OrderId = orderId; Body = body; InitParameters(); } /// <summary>The ID of the account that manages the order. This cannot be a multi-client account.</summary> [Google.Apis.Util.RequestParameterAttribute("merchantId", Google.Apis.Util.RequestParameterType.Path)] public virtual ulong MerchantId { get; private set; } /// <summary>The ID of the order.</summary> [Google.Apis.Util.RequestParameterAttribute("orderId", Google.Apis.Util.RequestParameterType.Path)] public virtual string OrderId { get; private set; } /// <summary>Gets or sets the body of this request.</summary> Google.Apis.ShoppingContent.v2.Data.OrdersShipLineItemsRequest Body { get; set; } ///<summary>Returns the body of the request.</summary> protected override object GetBody() { return Body; } ///<summary>Gets the method name.</summary> public override string MethodName { get { return "shiplineitems"; } } ///<summary>Gets the HTTP method.</summary> public override string HttpMethod { get { return "POST"; } } ///<summary>Gets the REST path.</summary> public override string RestPath { get { return "{merchantId}/orders/{orderId}/shipLineItems"; } } /// <summary>Initializes Shiplineitems parameter list.</summary> protected override void InitParameters() { base.InitParameters(); RequestParameters.Add( "merchantId", new Google.Apis.Discovery.Parameter { Name = "merchantId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add( "orderId", new Google.Apis.Discovery.Parameter { Name = "orderId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); } } /// <summary>Updates ship by and delivery by dates for a line item.</summary> /// <param name="body">The body of the request.</param> /// <param name="merchantId">The ID of the account that manages the order. This cannot be a multi-client /// account.</param> /// <param name="orderId">The ID of the order.</param> public virtual UpdatelineitemshippingdetailsRequest Updatelineitemshippingdetails(Google.Apis.ShoppingContent.v2.Data.OrdersUpdateLineItemShippingDetailsRequest body, ulong merchantId, string orderId) { return new UpdatelineitemshippingdetailsRequest(service, body, merchantId, orderId); } /// <summary>Updates ship by and delivery by dates for a line item.</summary> public class UpdatelineitemshippingdetailsRequest : ShoppingContentBaseServiceRequest<Google.Apis.ShoppingContent.v2.Data.OrdersUpdateLineItemShippingDetailsResponse> { /// <summary>Constructs a new Updatelineitemshippingdetails request.</summary> public UpdatelineitemshippingdetailsRequest(Google.Apis.Services.IClientService service, Google.Apis.ShoppingContent.v2.Data.OrdersUpdateLineItemShippingDetailsRequest body, ulong merchantId, string orderId) : base(service) { MerchantId = merchantId; OrderId = orderId; Body = body; InitParameters(); } /// <summary>The ID of the account that manages the order. This cannot be a multi-client account.</summary> [Google.Apis.Util.RequestParameterAttribute("merchantId", Google.Apis.Util.RequestParameterType.Path)] public virtual ulong MerchantId { get; private set; } /// <summary>The ID of the order.</summary> [Google.Apis.Util.RequestParameterAttribute("orderId", Google.Apis.Util.RequestParameterType.Path)] public virtual string OrderId { get; private set; } /// <summary>Gets or sets the body of this request.</summary> Google.Apis.ShoppingContent.v2.Data.OrdersUpdateLineItemShippingDetailsRequest Body { get; set; } ///<summary>Returns the body of the request.</summary> protected override object GetBody() { return Body; } ///<summary>Gets the method name.</summary> public override string MethodName { get { return "updatelineitemshippingdetails"; } } ///<summary>Gets the HTTP method.</summary> public override string HttpMethod { get { return "POST"; } } ///<summary>Gets the REST path.</summary> public override string RestPath { get { return "{merchantId}/orders/{orderId}/updateLineItemShippingDetails"; } } /// <summary>Initializes Updatelineitemshippingdetails parameter list.</summary> protected override void InitParameters() { base.InitParameters(); RequestParameters.Add( "merchantId", new Google.Apis.Discovery.Parameter { Name = "merchantId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add( "orderId", new Google.Apis.Discovery.Parameter { Name = "orderId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); } } /// <summary>Updates the merchant order ID for a given order.</summary> /// <param name="body">The body of the request.</param> /// <param name="merchantId">The ID of the account that manages the order. This cannot be a multi-client /// account.</param> /// <param name="orderId">The ID of the order.</param> public virtual UpdatemerchantorderidRequest Updatemerchantorderid(Google.Apis.ShoppingContent.v2.Data.OrdersUpdateMerchantOrderIdRequest body, ulong merchantId, string orderId) { return new UpdatemerchantorderidRequest(service, body, merchantId, orderId); } /// <summary>Updates the merchant order ID for a given order.</summary> public class UpdatemerchantorderidRequest : ShoppingContentBaseServiceRequest<Google.Apis.ShoppingContent.v2.Data.OrdersUpdateMerchantOrderIdResponse> { /// <summary>Constructs a new Updatemerchantorderid request.</summary> public UpdatemerchantorderidRequest(Google.Apis.Services.IClientService service, Google.Apis.ShoppingContent.v2.Data.OrdersUpdateMerchantOrderIdRequest body, ulong merchantId, string orderId) : base(service) { MerchantId = merchantId; OrderId = orderId; Body = body; InitParameters(); } /// <summary>The ID of the account that manages the order. This cannot be a multi-client account.</summary> [Google.Apis.Util.RequestParameterAttribute("merchantId", Google.Apis.Util.RequestParameterType.Path)] public virtual ulong MerchantId { get; private set; } /// <summary>The ID of the order.</summary> [Google.Apis.Util.RequestParameterAttribute("orderId", Google.Apis.Util.RequestParameterType.Path)] public virtual string OrderId { get; private set; } /// <summary>Gets or sets the body of this request.</summary> Google.Apis.ShoppingContent.v2.Data.OrdersUpdateMerchantOrderIdRequest Body { get; set; } ///<summary>Returns the body of the request.</summary> protected override object GetBody() { return Body; } ///<summary>Gets the method name.</summary> public override string MethodName { get { return "updatemerchantorderid"; } } ///<summary>Gets the HTTP method.</summary> public override string HttpMethod { get { return "POST"; } } ///<summary>Gets the REST path.</summary> public override string RestPath { get { return "{merchantId}/orders/{orderId}/updateMerchantOrderId"; } } /// <summary>Initializes Updatemerchantorderid parameter list.</summary> protected override void InitParameters() { base.InitParameters(); RequestParameters.Add( "merchantId", new Google.Apis.Discovery.Parameter { Name = "merchantId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add( "orderId", new Google.Apis.Discovery.Parameter { Name = "orderId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); } } /// <summary>Updates a shipment's status, carrier, and/or tracking ID.</summary> /// <param name="body">The body of the request.</param> /// <param name="merchantId">The ID of the account that manages the order. This cannot be a multi-client /// account.</param> /// <param name="orderId">The ID of the order.</param> public virtual UpdateshipmentRequest Updateshipment(Google.Apis.ShoppingContent.v2.Data.OrdersUpdateShipmentRequest body, ulong merchantId, string orderId) { return new UpdateshipmentRequest(service, body, merchantId, orderId); } /// <summary>Updates a shipment's status, carrier, and/or tracking ID.</summary> public class UpdateshipmentRequest : ShoppingContentBaseServiceRequest<Google.Apis.ShoppingContent.v2.Data.OrdersUpdateShipmentResponse> { /// <summary>Constructs a new Updateshipment request.</summary> public UpdateshipmentRequest(Google.Apis.Services.IClientService service, Google.Apis.ShoppingContent.v2.Data.OrdersUpdateShipmentRequest body, ulong merchantId, string orderId) : base(service) { MerchantId = merchantId; OrderId = orderId; Body = body; InitParameters(); } /// <summary>The ID of the account that manages the order. This cannot be a multi-client account.</summary> [Google.Apis.Util.RequestParameterAttribute("merchantId", Google.Apis.Util.RequestParameterType.Path)] public virtual ulong MerchantId { get; private set; } /// <summary>The ID of the order.</summary> [Google.Apis.Util.RequestParameterAttribute("orderId", Google.Apis.Util.RequestParameterType.Path)] public virtual string OrderId { get; private set; } /// <summary>Gets or sets the body of this request.</summary> Google.Apis.ShoppingContent.v2.Data.OrdersUpdateShipmentRequest Body { get; set; } ///<summary>Returns the body of the request.</summary> protected override object GetBody() { return Body; } ///<summary>Gets the method name.</summary> public override string MethodName { get { return "updateshipment"; } } ///<summary>Gets the HTTP method.</summary> public override string HttpMethod { get { return "POST"; } } ///<summary>Gets the REST path.</summary> public override string RestPath { get { return "{merchantId}/orders/{orderId}/updateShipment"; } } /// <summary>Initializes Updateshipment parameter list.</summary> protected override void InitParameters() { base.InitParameters(); RequestParameters.Add( "merchantId", new Google.Apis.Discovery.Parameter { Name = "merchantId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add( "orderId", new Google.Apis.Discovery.Parameter { Name = "orderId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); } } } /// <summary>The "pos" collection of methods.</summary> public class PosResource { private const string Resource = "pos"; /// <summary>The service which this resource belongs to.</summary> private readonly Google.Apis.Services.IClientService service; /// <summary>Constructs a new resource.</summary> public PosResource(Google.Apis.Services.IClientService service) { this.service = service; } /// <summary>Batches multiple POS-related calls in a single request.</summary> /// <param name="body">The body of the request.</param> public virtual CustombatchRequest Custombatch(Google.Apis.ShoppingContent.v2.Data.PosCustomBatchRequest body) { return new CustombatchRequest(service, body); } /// <summary>Batches multiple POS-related calls in a single request.</summary> public class CustombatchRequest : ShoppingContentBaseServiceRequest<Google.Apis.ShoppingContent.v2.Data.PosCustomBatchResponse> { /// <summary>Constructs a new Custombatch request.</summary> public CustombatchRequest(Google.Apis.Services.IClientService service, Google.Apis.ShoppingContent.v2.Data.PosCustomBatchRequest body) : base(service) { Body = body; InitParameters(); } /// <summary>Flag to simulate a request like in a live environment. If set to true, dry-run mode checks the /// validity of the request and returns errors (if any).</summary> [Google.Apis.Util.RequestParameterAttribute("dryRun", Google.Apis.Util.RequestParameterType.Query)] public virtual System.Nullable<bool> DryRun { get; set; } /// <summary>Gets or sets the body of this request.</summary> Google.Apis.ShoppingContent.v2.Data.PosCustomBatchRequest Body { get; set; } ///<summary>Returns the body of the request.</summary> protected override object GetBody() { return Body; } ///<summary>Gets the method name.</summary> public override string MethodName { get { return "custombatch"; } } ///<summary>Gets the HTTP method.</summary> public override string HttpMethod { get { return "POST"; } } ///<summary>Gets the REST path.</summary> public override string RestPath { get { return "pos/batch"; } } /// <summary>Initializes Custombatch parameter list.</summary> protected override void InitParameters() { base.InitParameters(); RequestParameters.Add( "dryRun", new Google.Apis.Discovery.Parameter { Name = "dryRun", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); } } /// <summary>Deletes a store for the given merchant.</summary> /// <param name="merchantId">The ID of the POS or inventory data provider.</param> /// <param /// name="targetMerchantId">The ID of the target merchant.</param> /// <param name="storeCode">A store code that is /// unique per merchant.</param> public virtual DeleteRequest Delete(ulong merchantId, ulong targetMerchantId, string storeCode) { return new DeleteRequest(service, merchantId, targetMerchantId, storeCode); } /// <summary>Deletes a store for the given merchant.</summary> public class DeleteRequest : ShoppingContentBaseServiceRequest<string> { /// <summary>Constructs a new Delete request.</summary> public DeleteRequest(Google.Apis.Services.IClientService service, ulong merchantId, ulong targetMerchantId, string storeCode) : base(service) { MerchantId = merchantId; TargetMerchantId = targetMerchantId; StoreCode = storeCode; InitParameters(); } /// <summary>The ID of the POS or inventory data provider.</summary> [Google.Apis.Util.RequestParameterAttribute("merchantId", Google.Apis.Util.RequestParameterType.Path)] public virtual ulong MerchantId { get; private set; } /// <summary>The ID of the target merchant.</summary> [Google.Apis.Util.RequestParameterAttribute("targetMerchantId", Google.Apis.Util.RequestParameterType.Path)] public virtual ulong TargetMerchantId { get; private set; } /// <summary>A store code that is unique per merchant.</summary> [Google.Apis.Util.RequestParameterAttribute("storeCode", Google.Apis.Util.RequestParameterType.Path)] public virtual string StoreCode { get; private set; } /// <summary>Flag to simulate a request like in a live environment. If set to true, dry-run mode checks the /// validity of the request and returns errors (if any).</summary> [Google.Apis.Util.RequestParameterAttribute("dryRun", Google.Apis.Util.RequestParameterType.Query)] public virtual System.Nullable<bool> DryRun { get; set; } ///<summary>Gets the method name.</summary> public override string MethodName { get { return "delete"; } } ///<summary>Gets the HTTP method.</summary> public override string HttpMethod { get { return "DELETE"; } } ///<summary>Gets the REST path.</summary> public override string RestPath { get { return "{merchantId}/pos/{targetMerchantId}/store/{storeCode}"; } } /// <summary>Initializes Delete parameter list.</summary> protected override void InitParameters() { base.InitParameters(); RequestParameters.Add( "merchantId", new Google.Apis.Discovery.Parameter { Name = "merchantId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add( "targetMerchantId", new Google.Apis.Discovery.Parameter { Name = "targetMerchantId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add( "storeCode", new Google.Apis.Discovery.Parameter { Name = "storeCode", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add( "dryRun", new Google.Apis.Discovery.Parameter { Name = "dryRun", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); } } /// <summary>Retrieves information about the given store.</summary> /// <param name="merchantId">The ID of the POS or inventory data provider.</param> /// <param /// name="targetMerchantId">The ID of the target merchant.</param> /// <param name="storeCode">A store code that is /// unique per merchant.</param> public virtual GetRequest Get(ulong merchantId, ulong targetMerchantId, string storeCode) { return new GetRequest(service, merchantId, targetMerchantId, storeCode); } /// <summary>Retrieves information about the given store.</summary> public class GetRequest : ShoppingContentBaseServiceRequest<Google.Apis.ShoppingContent.v2.Data.PosStore> { /// <summary>Constructs a new Get request.</summary> public GetRequest(Google.Apis.Services.IClientService service, ulong merchantId, ulong targetMerchantId, string storeCode) : base(service) { MerchantId = merchantId; TargetMerchantId = targetMerchantId; StoreCode = storeCode; InitParameters(); } /// <summary>The ID of the POS or inventory data provider.</summary> [Google.Apis.Util.RequestParameterAttribute("merchantId", Google.Apis.Util.RequestParameterType.Path)] public virtual ulong MerchantId { get; private set; } /// <summary>The ID of the target merchant.</summary> [Google.Apis.Util.RequestParameterAttribute("targetMerchantId", Google.Apis.Util.RequestParameterType.Path)] public virtual ulong TargetMerchantId { get; private set; } /// <summary>A store code that is unique per merchant.</summary> [Google.Apis.Util.RequestParameterAttribute("storeCode", Google.Apis.Util.RequestParameterType.Path)] public virtual string StoreCode { get; private set; } ///<summary>Gets the method name.</summary> public override string MethodName { get { return "get"; } } ///<summary>Gets the HTTP method.</summary> public override string HttpMethod { get { return "GET"; } } ///<summary>Gets the REST path.</summary> public override string RestPath { get { return "{merchantId}/pos/{targetMerchantId}/store/{storeCode}"; } } /// <summary>Initializes Get parameter list.</summary> protected override void InitParameters() { base.InitParameters(); RequestParameters.Add( "merchantId", new Google.Apis.Discovery.Parameter { Name = "merchantId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add( "targetMerchantId", new Google.Apis.Discovery.Parameter { Name = "targetMerchantId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add( "storeCode", new Google.Apis.Discovery.Parameter { Name = "storeCode", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); } } /// <summary>Creates a store for the given merchant.</summary> /// <param name="body">The body of the request.</param> /// <param name="merchantId">The ID of the POS or inventory data provider.</param> /// <param /// name="targetMerchantId">The ID of the target merchant.</param> public virtual InsertRequest Insert(Google.Apis.ShoppingContent.v2.Data.PosStore body, ulong merchantId, ulong targetMerchantId) { return new InsertRequest(service, body, merchantId, targetMerchantId); } /// <summary>Creates a store for the given merchant.</summary> public class InsertRequest : ShoppingContentBaseServiceRequest<Google.Apis.ShoppingContent.v2.Data.PosStore> { /// <summary>Constructs a new Insert request.</summary> public InsertRequest(Google.Apis.Services.IClientService service, Google.Apis.ShoppingContent.v2.Data.PosStore body, ulong merchantId, ulong targetMerchantId) : base(service) { MerchantId = merchantId; TargetMerchantId = targetMerchantId; Body = body; InitParameters(); } /// <summary>The ID of the POS or inventory data provider.</summary> [Google.Apis.Util.RequestParameterAttribute("merchantId", Google.Apis.Util.RequestParameterType.Path)] public virtual ulong MerchantId { get; private set; } /// <summary>The ID of the target merchant.</summary> [Google.Apis.Util.RequestParameterAttribute("targetMerchantId", Google.Apis.Util.RequestParameterType.Path)] public virtual ulong TargetMerchantId { get; private set; } /// <summary>Flag to simulate a request like in a live environment. If set to true, dry-run mode checks the /// validity of the request and returns errors (if any).</summary> [Google.Apis.Util.RequestParameterAttribute("dryRun", Google.Apis.Util.RequestParameterType.Query)] public virtual System.Nullable<bool> DryRun { get; set; } /// <summary>Gets or sets the body of this request.</summary> Google.Apis.ShoppingContent.v2.Data.PosStore Body { get; set; } ///<summary>Returns the body of the request.</summary> protected override object GetBody() { return Body; } ///<summary>Gets the method name.</summary> public override string MethodName { get { return "insert"; } } ///<summary>Gets the HTTP method.</summary> public override string HttpMethod { get { return "POST"; } } ///<summary>Gets the REST path.</summary> public override string RestPath { get { return "{merchantId}/pos/{targetMerchantId}/store"; } } /// <summary>Initializes Insert parameter list.</summary> protected override void InitParameters() { base.InitParameters(); RequestParameters.Add( "merchantId", new Google.Apis.Discovery.Parameter { Name = "merchantId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add( "targetMerchantId", new Google.Apis.Discovery.Parameter { Name = "targetMerchantId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add( "dryRun", new Google.Apis.Discovery.Parameter { Name = "dryRun", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); } } /// <summary>Submit inventory for the given merchant.</summary> /// <param name="body">The body of the request.</param> /// <param name="merchantId">The ID of the POS or inventory data provider.</param> /// <param /// name="targetMerchantId">The ID of the target merchant.</param> public virtual InventoryRequest Inventory(Google.Apis.ShoppingContent.v2.Data.PosInventoryRequest body, ulong merchantId, ulong targetMerchantId) { return new InventoryRequest(service, body, merchantId, targetMerchantId); } /// <summary>Submit inventory for the given merchant.</summary> public class InventoryRequest : ShoppingContentBaseServiceRequest<Google.Apis.ShoppingContent.v2.Data.PosInventoryResponse> { /// <summary>Constructs a new Inventory request.</summary> public InventoryRequest(Google.Apis.Services.IClientService service, Google.Apis.ShoppingContent.v2.Data.PosInventoryRequest body, ulong merchantId, ulong targetMerchantId) : base(service) { MerchantId = merchantId; TargetMerchantId = targetMerchantId; Body = body; InitParameters(); } /// <summary>The ID of the POS or inventory data provider.</summary> [Google.Apis.Util.RequestParameterAttribute("merchantId", Google.Apis.Util.RequestParameterType.Path)] public virtual ulong MerchantId { get; private set; } /// <summary>The ID of the target merchant.</summary> [Google.Apis.Util.RequestParameterAttribute("targetMerchantId", Google.Apis.Util.RequestParameterType.Path)] public virtual ulong TargetMerchantId { get; private set; } /// <summary>Flag to simulate a request like in a live environment. If set to true, dry-run mode checks the /// validity of the request and returns errors (if any).</summary> [Google.Apis.Util.RequestParameterAttribute("dryRun", Google.Apis.Util.RequestParameterType.Query)] public virtual System.Nullable<bool> DryRun { get; set; } /// <summary>Gets or sets the body of this request.</summary> Google.Apis.ShoppingContent.v2.Data.PosInventoryRequest Body { get; set; } ///<summary>Returns the body of the request.</summary> protected override object GetBody() { return Body; } ///<summary>Gets the method name.</summary> public override string MethodName { get { return "inventory"; } } ///<summary>Gets the HTTP method.</summary> public override string HttpMethod { get { return "POST"; } } ///<summary>Gets the REST path.</summary> public override string RestPath { get { return "{merchantId}/pos/{targetMerchantId}/inventory"; } } /// <summary>Initializes Inventory parameter list.</summary> protected override void InitParameters() { base.InitParameters(); RequestParameters.Add( "merchantId", new Google.Apis.Discovery.Parameter { Name = "merchantId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add( "targetMerchantId", new Google.Apis.Discovery.Parameter { Name = "targetMerchantId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add( "dryRun", new Google.Apis.Discovery.Parameter { Name = "dryRun", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); } } /// <summary>Lists the stores of the target merchant.</summary> /// <param name="merchantId">The ID of the POS or inventory data provider.</param> /// <param /// name="targetMerchantId">The ID of the target merchant.</param> public virtual ListRequest List(ulong merchantId, ulong targetMerchantId) { return new ListRequest(service, merchantId, targetMerchantId); } /// <summary>Lists the stores of the target merchant.</summary> public class ListRequest : ShoppingContentBaseServiceRequest<Google.Apis.ShoppingContent.v2.Data.PosListResponse> { /// <summary>Constructs a new List request.</summary> public ListRequest(Google.Apis.Services.IClientService service, ulong merchantId, ulong targetMerchantId) : base(service) { MerchantId = merchantId; TargetMerchantId = targetMerchantId; InitParameters(); } /// <summary>The ID of the POS or inventory data provider.</summary> [Google.Apis.Util.RequestParameterAttribute("merchantId", Google.Apis.Util.RequestParameterType.Path)] public virtual ulong MerchantId { get; private set; } /// <summary>The ID of the target merchant.</summary> [Google.Apis.Util.RequestParameterAttribute("targetMerchantId", Google.Apis.Util.RequestParameterType.Path)] public virtual ulong TargetMerchantId { get; private set; } ///<summary>Gets the method name.</summary> public override string MethodName { get { return "list"; } } ///<summary>Gets the HTTP method.</summary> public override string HttpMethod { get { return "GET"; } } ///<summary>Gets the REST path.</summary> public override string RestPath { get { return "{merchantId}/pos/{targetMerchantId}/store"; } } /// <summary>Initializes List parameter list.</summary> protected override void InitParameters() { base.InitParameters(); RequestParameters.Add( "merchantId", new Google.Apis.Discovery.Parameter { Name = "merchantId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add( "targetMerchantId", new Google.Apis.Discovery.Parameter { Name = "targetMerchantId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); } } /// <summary>Submit a sale event for the given merchant.</summary> /// <param name="body">The body of the request.</param> /// <param name="merchantId">The ID of the POS or inventory data provider.</param> /// <param /// name="targetMerchantId">The ID of the target merchant.</param> public virtual SaleRequest Sale(Google.Apis.ShoppingContent.v2.Data.PosSaleRequest body, ulong merchantId, ulong targetMerchantId) { return new SaleRequest(service, body, merchantId, targetMerchantId); } /// <summary>Submit a sale event for the given merchant.</summary> public class SaleRequest : ShoppingContentBaseServiceRequest<Google.Apis.ShoppingContent.v2.Data.PosSaleResponse> { /// <summary>Constructs a new Sale request.</summary> public SaleRequest(Google.Apis.Services.IClientService service, Google.Apis.ShoppingContent.v2.Data.PosSaleRequest body, ulong merchantId, ulong targetMerchantId) : base(service) { MerchantId = merchantId; TargetMerchantId = targetMerchantId; Body = body; InitParameters(); } /// <summary>The ID of the POS or inventory data provider.</summary> [Google.Apis.Util.RequestParameterAttribute("merchantId", Google.Apis.Util.RequestParameterType.Path)] public virtual ulong MerchantId { get; private set; } /// <summary>The ID of the target merchant.</summary> [Google.Apis.Util.RequestParameterAttribute("targetMerchantId", Google.Apis.Util.RequestParameterType.Path)] public virtual ulong TargetMerchantId { get; private set; } /// <summary>Flag to simulate a request like in a live environment. If set to true, dry-run mode checks the /// validity of the request and returns errors (if any).</summary> [Google.Apis.Util.RequestParameterAttribute("dryRun", Google.Apis.Util.RequestParameterType.Query)] public virtual System.Nullable<bool> DryRun { get; set; } /// <summary>Gets or sets the body of this request.</summary> Google.Apis.ShoppingContent.v2.Data.PosSaleRequest Body { get; set; } ///<summary>Returns the body of the request.</summary> protected override object GetBody() { return Body; } ///<summary>Gets the method name.</summary> public override string MethodName { get { return "sale"; } } ///<summary>Gets the HTTP method.</summary> public override string HttpMethod { get { return "POST"; } } ///<summary>Gets the REST path.</summary> public override string RestPath { get { return "{merchantId}/pos/{targetMerchantId}/sale"; } } /// <summary>Initializes Sale parameter list.</summary> protected override void InitParameters() { base.InitParameters(); RequestParameters.Add( "merchantId", new Google.Apis.Discovery.Parameter { Name = "merchantId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add( "targetMerchantId", new Google.Apis.Discovery.Parameter { Name = "targetMerchantId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add( "dryRun", new Google.Apis.Discovery.Parameter { Name = "dryRun", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); } } } /// <summary>The "products" collection of methods.</summary> public class ProductsResource { private const string Resource = "products"; /// <summary>The service which this resource belongs to.</summary> private readonly Google.Apis.Services.IClientService service; /// <summary>Constructs a new resource.</summary> public ProductsResource(Google.Apis.Services.IClientService service) { this.service = service; } /// <summary>Retrieves, inserts, and deletes multiple products in a single request.</summary> /// <param name="body">The body of the request.</param> public virtual CustombatchRequest Custombatch(Google.Apis.ShoppingContent.v2.Data.ProductsCustomBatchRequest body) { return new CustombatchRequest(service, body); } /// <summary>Retrieves, inserts, and deletes multiple products in a single request.</summary> public class CustombatchRequest : ShoppingContentBaseServiceRequest<Google.Apis.ShoppingContent.v2.Data.ProductsCustomBatchResponse> { /// <summary>Constructs a new Custombatch request.</summary> public CustombatchRequest(Google.Apis.Services.IClientService service, Google.Apis.ShoppingContent.v2.Data.ProductsCustomBatchRequest body) : base(service) { Body = body; InitParameters(); } /// <summary>Flag to simulate a request like in a live environment. If set to true, dry-run mode checks the /// validity of the request and returns errors (if any).</summary> [Google.Apis.Util.RequestParameterAttribute("dryRun", Google.Apis.Util.RequestParameterType.Query)] public virtual System.Nullable<bool> DryRun { get; set; } /// <summary>Gets or sets the body of this request.</summary> Google.Apis.ShoppingContent.v2.Data.ProductsCustomBatchRequest Body { get; set; } ///<summary>Returns the body of the request.</summary> protected override object GetBody() { return Body; } ///<summary>Gets the method name.</summary> public override string MethodName { get { return "custombatch"; } } ///<summary>Gets the HTTP method.</summary> public override string HttpMethod { get { return "POST"; } } ///<summary>Gets the REST path.</summary> public override string RestPath { get { return "products/batch"; } } /// <summary>Initializes Custombatch parameter list.</summary> protected override void InitParameters() { base.InitParameters(); RequestParameters.Add( "dryRun", new Google.Apis.Discovery.Parameter { Name = "dryRun", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); } } /// <summary>Deletes a product from your Merchant Center account.</summary> /// <param name="merchantId">The ID of the account that contains the product. This account cannot be a multi-client /// account.</param> /// <param name="productId">The REST ID of the product.</param> public virtual DeleteRequest Delete(ulong merchantId, string productId) { return new DeleteRequest(service, merchantId, productId); } /// <summary>Deletes a product from your Merchant Center account.</summary> public class DeleteRequest : ShoppingContentBaseServiceRequest<string> { /// <summary>Constructs a new Delete request.</summary> public DeleteRequest(Google.Apis.Services.IClientService service, ulong merchantId, string productId) : base(service) { MerchantId = merchantId; ProductId = productId; InitParameters(); } /// <summary>The ID of the account that contains the product. This account cannot be a multi-client /// account.</summary> [Google.Apis.Util.RequestParameterAttribute("merchantId", Google.Apis.Util.RequestParameterType.Path)] public virtual ulong MerchantId { get; private set; } /// <summary>The REST ID of the product.</summary> [Google.Apis.Util.RequestParameterAttribute("productId", Google.Apis.Util.RequestParameterType.Path)] public virtual string ProductId { get; private set; } /// <summary>Flag to simulate a request like in a live environment. If set to true, dry-run mode checks the /// validity of the request and returns errors (if any).</summary> [Google.Apis.Util.RequestParameterAttribute("dryRun", Google.Apis.Util.RequestParameterType.Query)] public virtual System.Nullable<bool> DryRun { get; set; } ///<summary>Gets the method name.</summary> public override string MethodName { get { return "delete"; } } ///<summary>Gets the HTTP method.</summary> public override string HttpMethod { get { return "DELETE"; } } ///<summary>Gets the REST path.</summary> public override string RestPath { get { return "{merchantId}/products/{productId}"; } } /// <summary>Initializes Delete parameter list.</summary> protected override void InitParameters() { base.InitParameters(); RequestParameters.Add( "merchantId", new Google.Apis.Discovery.Parameter { Name = "merchantId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add( "productId", new Google.Apis.Discovery.Parameter { Name = "productId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add( "dryRun", new Google.Apis.Discovery.Parameter { Name = "dryRun", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); } } /// <summary>Retrieves a product from your Merchant Center account.</summary> /// <param name="merchantId">The ID of the account that contains the product. This account cannot be a multi-client /// account.</param> /// <param name="productId">The REST ID of the product.</param> public virtual GetRequest Get(ulong merchantId, string productId) { return new GetRequest(service, merchantId, productId); } /// <summary>Retrieves a product from your Merchant Center account.</summary> public class GetRequest : ShoppingContentBaseServiceRequest<Google.Apis.ShoppingContent.v2.Data.Product> { /// <summary>Constructs a new Get request.</summary> public GetRequest(Google.Apis.Services.IClientService service, ulong merchantId, string productId) : base(service) { MerchantId = merchantId; ProductId = productId; InitParameters(); } /// <summary>The ID of the account that contains the product. This account cannot be a multi-client /// account.</summary> [Google.Apis.Util.RequestParameterAttribute("merchantId", Google.Apis.Util.RequestParameterType.Path)] public virtual ulong MerchantId { get; private set; } /// <summary>The REST ID of the product.</summary> [Google.Apis.Util.RequestParameterAttribute("productId", Google.Apis.Util.RequestParameterType.Path)] public virtual string ProductId { get; private set; } ///<summary>Gets the method name.</summary> public override string MethodName { get { return "get"; } } ///<summary>Gets the HTTP method.</summary> public override string HttpMethod { get { return "GET"; } } ///<summary>Gets the REST path.</summary> public override string RestPath { get { return "{merchantId}/products/{productId}"; } } /// <summary>Initializes Get parameter list.</summary> protected override void InitParameters() { base.InitParameters(); RequestParameters.Add( "merchantId", new Google.Apis.Discovery.Parameter { Name = "merchantId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add( "productId", new Google.Apis.Discovery.Parameter { Name = "productId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); } } /// <summary>Uploads a product to your Merchant Center account. If an item with the same channel, /// contentLanguage, offerId, and targetCountry already exists, this method updates that entry.</summary> /// <param name="body">The body of the request.</param> /// <param name="merchantId">The ID of the account that contains the product. This account cannot be a multi-client /// account.</param> public virtual InsertRequest Insert(Google.Apis.ShoppingContent.v2.Data.Product body, ulong merchantId) { return new InsertRequest(service, body, merchantId); } /// <summary>Uploads a product to your Merchant Center account. If an item with the same channel, /// contentLanguage, offerId, and targetCountry already exists, this method updates that entry.</summary> public class InsertRequest : ShoppingContentBaseServiceRequest<Google.Apis.ShoppingContent.v2.Data.Product> { /// <summary>Constructs a new Insert request.</summary> public InsertRequest(Google.Apis.Services.IClientService service, Google.Apis.ShoppingContent.v2.Data.Product body, ulong merchantId) : base(service) { MerchantId = merchantId; Body = body; InitParameters(); } /// <summary>The ID of the account that contains the product. This account cannot be a multi-client /// account.</summary> [Google.Apis.Util.RequestParameterAttribute("merchantId", Google.Apis.Util.RequestParameterType.Path)] public virtual ulong MerchantId { get; private set; } /// <summary>Flag to simulate a request like in a live environment. If set to true, dry-run mode checks the /// validity of the request and returns errors (if any).</summary> [Google.Apis.Util.RequestParameterAttribute("dryRun", Google.Apis.Util.RequestParameterType.Query)] public virtual System.Nullable<bool> DryRun { get; set; } /// <summary>Gets or sets the body of this request.</summary> Google.Apis.ShoppingContent.v2.Data.Product Body { get; set; } ///<summary>Returns the body of the request.</summary> protected override object GetBody() { return Body; } ///<summary>Gets the method name.</summary> public override string MethodName { get { return "insert"; } } ///<summary>Gets the HTTP method.</summary> public override string HttpMethod { get { return "POST"; } } ///<summary>Gets the REST path.</summary> public override string RestPath { get { return "{merchantId}/products"; } } /// <summary>Initializes Insert parameter list.</summary> protected override void InitParameters() { base.InitParameters(); RequestParameters.Add( "merchantId", new Google.Apis.Discovery.Parameter { Name = "merchantId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add( "dryRun", new Google.Apis.Discovery.Parameter { Name = "dryRun", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); } } /// <summary>Lists the products in your Merchant Center account.</summary> /// <param name="merchantId">The ID of the account that contains the products. This account cannot be a multi-client /// account.</param> public virtual ListRequest List(ulong merchantId) { return new ListRequest(service, merchantId); } /// <summary>Lists the products in your Merchant Center account.</summary> public class ListRequest : ShoppingContentBaseServiceRequest<Google.Apis.ShoppingContent.v2.Data.ProductsListResponse> { /// <summary>Constructs a new List request.</summary> public ListRequest(Google.Apis.Services.IClientService service, ulong merchantId) : base(service) { MerchantId = merchantId; InitParameters(); } /// <summary>The ID of the account that contains the products. This account cannot be a multi-client /// account.</summary> [Google.Apis.Util.RequestParameterAttribute("merchantId", Google.Apis.Util.RequestParameterType.Path)] public virtual ulong MerchantId { get; private set; } /// <summary>Flag to include the invalid inserted items in the result of the list request. By default the /// invalid items are not shown (the default value is false).</summary> [Google.Apis.Util.RequestParameterAttribute("includeInvalidInsertedItems", Google.Apis.Util.RequestParameterType.Query)] public virtual System.Nullable<bool> IncludeInvalidInsertedItems { get; set; } /// <summary>The maximum number of products to return in the response, used for paging.</summary> [Google.Apis.Util.RequestParameterAttribute("maxResults", Google.Apis.Util.RequestParameterType.Query)] public virtual System.Nullable<long> MaxResults { get; set; } /// <summary>The token returned by the previous request.</summary> [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] public virtual string PageToken { get; set; } ///<summary>Gets the method name.</summary> public override string MethodName { get { return "list"; } } ///<summary>Gets the HTTP method.</summary> public override string HttpMethod { get { return "GET"; } } ///<summary>Gets the REST path.</summary> public override string RestPath { get { return "{merchantId}/products"; } } /// <summary>Initializes List parameter list.</summary> protected override void InitParameters() { base.InitParameters(); RequestParameters.Add( "merchantId", new Google.Apis.Discovery.Parameter { Name = "merchantId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add( "includeInvalidInsertedItems", new Google.Apis.Discovery.Parameter { Name = "includeInvalidInsertedItems", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); RequestParameters.Add( "maxResults", new Google.Apis.Discovery.Parameter { Name = "maxResults", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); RequestParameters.Add( "pageToken", new Google.Apis.Discovery.Parameter { Name = "pageToken", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); } } } /// <summary>The "productstatuses" collection of methods.</summary> public class ProductstatusesResource { private const string Resource = "productstatuses"; /// <summary>The service which this resource belongs to.</summary> private readonly Google.Apis.Services.IClientService service; /// <summary>Constructs a new resource.</summary> public ProductstatusesResource(Google.Apis.Services.IClientService service) { this.service = service; } /// <summary>Gets the statuses of multiple products in a single request.</summary> /// <param name="body">The body of the request.</param> public virtual CustombatchRequest Custombatch(Google.Apis.ShoppingContent.v2.Data.ProductstatusesCustomBatchRequest body) { return new CustombatchRequest(service, body); } /// <summary>Gets the statuses of multiple products in a single request.</summary> public class CustombatchRequest : ShoppingContentBaseServiceRequest<Google.Apis.ShoppingContent.v2.Data.ProductstatusesCustomBatchResponse> { /// <summary>Constructs a new Custombatch request.</summary> public CustombatchRequest(Google.Apis.Services.IClientService service, Google.Apis.ShoppingContent.v2.Data.ProductstatusesCustomBatchRequest body) : base(service) { Body = body; InitParameters(); } /// <summary>Flag to include full product data in the results of this request. The default value is /// false.</summary> [Google.Apis.Util.RequestParameterAttribute("includeAttributes", Google.Apis.Util.RequestParameterType.Query)] public virtual System.Nullable<bool> IncludeAttributes { get; set; } /// <summary>Gets or sets the body of this request.</summary> Google.Apis.ShoppingContent.v2.Data.ProductstatusesCustomBatchRequest Body { get; set; } ///<summary>Returns the body of the request.</summary> protected override object GetBody() { return Body; } ///<summary>Gets the method name.</summary> public override string MethodName { get { return "custombatch"; } } ///<summary>Gets the HTTP method.</summary> public override string HttpMethod { get { return "POST"; } } ///<summary>Gets the REST path.</summary> public override string RestPath { get { return "productstatuses/batch"; } } /// <summary>Initializes Custombatch parameter list.</summary> protected override void InitParameters() { base.InitParameters(); RequestParameters.Add( "includeAttributes", new Google.Apis.Discovery.Parameter { Name = "includeAttributes", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); } } /// <summary>Gets the status of a product from your Merchant Center account.</summary> /// <param name="merchantId">The ID of the account that contains the product. This account cannot be a multi-client /// account.</param> /// <param name="productId">The REST ID of the product.</param> public virtual GetRequest Get(ulong merchantId, string productId) { return new GetRequest(service, merchantId, productId); } /// <summary>Gets the status of a product from your Merchant Center account.</summary> public class GetRequest : ShoppingContentBaseServiceRequest<Google.Apis.ShoppingContent.v2.Data.ProductStatus> { /// <summary>Constructs a new Get request.</summary> public GetRequest(Google.Apis.Services.IClientService service, ulong merchantId, string productId) : base(service) { MerchantId = merchantId; ProductId = productId; InitParameters(); } /// <summary>The ID of the account that contains the product. This account cannot be a multi-client /// account.</summary> [Google.Apis.Util.RequestParameterAttribute("merchantId", Google.Apis.Util.RequestParameterType.Path)] public virtual ulong MerchantId { get; private set; } /// <summary>The REST ID of the product.</summary> [Google.Apis.Util.RequestParameterAttribute("productId", Google.Apis.Util.RequestParameterType.Path)] public virtual string ProductId { get; private set; } /// <summary>If set, only issues for the specified destinations are returned, otherwise only issues for the /// Shopping destination.</summary> [Google.Apis.Util.RequestParameterAttribute("destinations", Google.Apis.Util.RequestParameterType.Query)] public virtual Google.Apis.Util.Repeatable<string> Destinations { get; set; } /// <summary>Flag to include full product data in the result of this get request. The default value is /// false.</summary> [Google.Apis.Util.RequestParameterAttribute("includeAttributes", Google.Apis.Util.RequestParameterType.Query)] public virtual System.Nullable<bool> IncludeAttributes { get; set; } ///<summary>Gets the method name.</summary> public override string MethodName { get { return "get"; } } ///<summary>Gets the HTTP method.</summary> public override string HttpMethod { get { return "GET"; } } ///<summary>Gets the REST path.</summary> public override string RestPath { get { return "{merchantId}/productstatuses/{productId}"; } } /// <summary>Initializes Get parameter list.</summary> protected override void InitParameters() { base.InitParameters(); RequestParameters.Add( "merchantId", new Google.Apis.Discovery.Parameter { Name = "merchantId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add( "productId", new Google.Apis.Discovery.Parameter { Name = "productId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add( "destinations", new Google.Apis.Discovery.Parameter { Name = "destinations", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); RequestParameters.Add( "includeAttributes", new Google.Apis.Discovery.Parameter { Name = "includeAttributes", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); } } /// <summary>Lists the statuses of the products in your Merchant Center account.</summary> /// <param name="merchantId">The ID of the account that contains the products. This account cannot be a multi-client /// account.</param> public virtual ListRequest List(ulong merchantId) { return new ListRequest(service, merchantId); } /// <summary>Lists the statuses of the products in your Merchant Center account.</summary> public class ListRequest : ShoppingContentBaseServiceRequest<Google.Apis.ShoppingContent.v2.Data.ProductstatusesListResponse> { /// <summary>Constructs a new List request.</summary> public ListRequest(Google.Apis.Services.IClientService service, ulong merchantId) : base(service) { MerchantId = merchantId; InitParameters(); } /// <summary>The ID of the account that contains the products. This account cannot be a multi-client /// account.</summary> [Google.Apis.Util.RequestParameterAttribute("merchantId", Google.Apis.Util.RequestParameterType.Path)] public virtual ulong MerchantId { get; private set; } /// <summary>If set, only issues for the specified destinations are returned, otherwise only issues for the /// Shopping destination.</summary> [Google.Apis.Util.RequestParameterAttribute("destinations", Google.Apis.Util.RequestParameterType.Query)] public virtual Google.Apis.Util.Repeatable<string> Destinations { get; set; } /// <summary>Flag to include full product data in the results of the list request. The default value is /// false.</summary> [Google.Apis.Util.RequestParameterAttribute("includeAttributes", Google.Apis.Util.RequestParameterType.Query)] public virtual System.Nullable<bool> IncludeAttributes { get; set; } /// <summary>Flag to include the invalid inserted items in the result of the list request. By default the /// invalid items are not shown (the default value is false).</summary> [Google.Apis.Util.RequestParameterAttribute("includeInvalidInsertedItems", Google.Apis.Util.RequestParameterType.Query)] public virtual System.Nullable<bool> IncludeInvalidInsertedItems { get; set; } /// <summary>The maximum number of product statuses to return in the response, used for paging.</summary> [Google.Apis.Util.RequestParameterAttribute("maxResults", Google.Apis.Util.RequestParameterType.Query)] public virtual System.Nullable<long> MaxResults { get; set; } /// <summary>The token returned by the previous request.</summary> [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] public virtual string PageToken { get; set; } ///<summary>Gets the method name.</summary> public override string MethodName { get { return "list"; } } ///<summary>Gets the HTTP method.</summary> public override string HttpMethod { get { return "GET"; } } ///<summary>Gets the REST path.</summary> public override string RestPath { get { return "{merchantId}/productstatuses"; } } /// <summary>Initializes List parameter list.</summary> protected override void InitParameters() { base.InitParameters(); RequestParameters.Add( "merchantId", new Google.Apis.Discovery.Parameter { Name = "merchantId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add( "destinations", new Google.Apis.Discovery.Parameter { Name = "destinations", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); RequestParameters.Add( "includeAttributes", new Google.Apis.Discovery.Parameter { Name = "includeAttributes", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); RequestParameters.Add( "includeInvalidInsertedItems", new Google.Apis.Discovery.Parameter { Name = "includeInvalidInsertedItems", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); RequestParameters.Add( "maxResults", new Google.Apis.Discovery.Parameter { Name = "maxResults", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); RequestParameters.Add( "pageToken", new Google.Apis.Discovery.Parameter { Name = "pageToken", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); } } } /// <summary>The "shippingsettings" collection of methods.</summary> public class ShippingsettingsResource { private const string Resource = "shippingsettings"; /// <summary>The service which this resource belongs to.</summary> private readonly Google.Apis.Services.IClientService service; /// <summary>Constructs a new resource.</summary> public ShippingsettingsResource(Google.Apis.Services.IClientService service) { this.service = service; } /// <summary>Retrieves and updates the shipping settings of multiple accounts in a single request.</summary> /// <param name="body">The body of the request.</param> public virtual CustombatchRequest Custombatch(Google.Apis.ShoppingContent.v2.Data.ShippingsettingsCustomBatchRequest body) { return new CustombatchRequest(service, body); } /// <summary>Retrieves and updates the shipping settings of multiple accounts in a single request.</summary> public class CustombatchRequest : ShoppingContentBaseServiceRequest<Google.Apis.ShoppingContent.v2.Data.ShippingsettingsCustomBatchResponse> { /// <summary>Constructs a new Custombatch request.</summary> public CustombatchRequest(Google.Apis.Services.IClientService service, Google.Apis.ShoppingContent.v2.Data.ShippingsettingsCustomBatchRequest body) : base(service) { Body = body; InitParameters(); } /// <summary>Flag to simulate a request like in a live environment. If set to true, dry-run mode checks the /// validity of the request and returns errors (if any).</summary> [Google.Apis.Util.RequestParameterAttribute("dryRun", Google.Apis.Util.RequestParameterType.Query)] public virtual System.Nullable<bool> DryRun { get; set; } /// <summary>Gets or sets the body of this request.</summary> Google.Apis.ShoppingContent.v2.Data.ShippingsettingsCustomBatchRequest Body { get; set; } ///<summary>Returns the body of the request.</summary> protected override object GetBody() { return Body; } ///<summary>Gets the method name.</summary> public override string MethodName { get { return "custombatch"; } } ///<summary>Gets the HTTP method.</summary> public override string HttpMethod { get { return "POST"; } } ///<summary>Gets the REST path.</summary> public override string RestPath { get { return "shippingsettings/batch"; } } /// <summary>Initializes Custombatch parameter list.</summary> protected override void InitParameters() { base.InitParameters(); RequestParameters.Add( "dryRun", new Google.Apis.Discovery.Parameter { Name = "dryRun", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); } } /// <summary>Retrieves the shipping settings of the account.</summary> /// <param name="merchantId">The ID of the managing account. If this parameter is not the same as accountId, then this /// account must be a multi-client account and accountId must be the ID of a sub-account of this /// account.</param> /// <param name="accountId">The ID of the account for which to get/update shipping /// settings.</param> public virtual GetRequest Get(ulong merchantId, ulong accountId) { return new GetRequest(service, merchantId, accountId); } /// <summary>Retrieves the shipping settings of the account.</summary> public class GetRequest : ShoppingContentBaseServiceRequest<Google.Apis.ShoppingContent.v2.Data.ShippingSettings> { /// <summary>Constructs a new Get request.</summary> public GetRequest(Google.Apis.Services.IClientService service, ulong merchantId, ulong accountId) : base(service) { MerchantId = merchantId; AccountId = accountId; InitParameters(); } /// <summary>The ID of the managing account. If this parameter is not the same as accountId, then this /// account must be a multi-client account and accountId must be the ID of a sub-account of this /// account.</summary> [Google.Apis.Util.RequestParameterAttribute("merchantId", Google.Apis.Util.RequestParameterType.Path)] public virtual ulong MerchantId { get; private set; } /// <summary>The ID of the account for which to get/update shipping settings.</summary> [Google.Apis.Util.RequestParameterAttribute("accountId", Google.Apis.Util.RequestParameterType.Path)] public virtual ulong AccountId { get; private set; } ///<summary>Gets the method name.</summary> public override string MethodName { get { return "get"; } } ///<summary>Gets the HTTP method.</summary> public override string HttpMethod { get { return "GET"; } } ///<summary>Gets the REST path.</summary> public override string RestPath { get { return "{merchantId}/shippingsettings/{accountId}"; } } /// <summary>Initializes Get parameter list.</summary> protected override void InitParameters() { base.InitParameters(); RequestParameters.Add( "merchantId", new Google.Apis.Discovery.Parameter { Name = "merchantId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add( "accountId", new Google.Apis.Discovery.Parameter { Name = "accountId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); } } /// <summary>Retrieves supported carriers and carrier services for an account.</summary> /// <param name="merchantId">The ID of the account for which to retrieve the supported carriers.</param> public virtual GetsupportedcarriersRequest Getsupportedcarriers(ulong merchantId) { return new GetsupportedcarriersRequest(service, merchantId); } /// <summary>Retrieves supported carriers and carrier services for an account.</summary> public class GetsupportedcarriersRequest : ShoppingContentBaseServiceRequest<Google.Apis.ShoppingContent.v2.Data.ShippingsettingsGetSupportedCarriersResponse> { /// <summary>Constructs a new Getsupportedcarriers request.</summary> public GetsupportedcarriersRequest(Google.Apis.Services.IClientService service, ulong merchantId) : base(service) { MerchantId = merchantId; InitParameters(); } /// <summary>The ID of the account for which to retrieve the supported carriers.</summary> [Google.Apis.Util.RequestParameterAttribute("merchantId", Google.Apis.Util.RequestParameterType.Path)] public virtual ulong MerchantId { get; private set; } ///<summary>Gets the method name.</summary> public override string MethodName { get { return "getsupportedcarriers"; } } ///<summary>Gets the HTTP method.</summary> public override string HttpMethod { get { return "GET"; } } ///<summary>Gets the REST path.</summary> public override string RestPath { get { return "{merchantId}/supportedCarriers"; } } /// <summary>Initializes Getsupportedcarriers parameter list.</summary> protected override void InitParameters() { base.InitParameters(); RequestParameters.Add( "merchantId", new Google.Apis.Discovery.Parameter { Name = "merchantId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); } } /// <summary>Retrieves supported holidays for an account.</summary> /// <param name="merchantId">The ID of the account for which to retrieve the supported holidays.</param> public virtual GetsupportedholidaysRequest Getsupportedholidays(ulong merchantId) { return new GetsupportedholidaysRequest(service, merchantId); } /// <summary>Retrieves supported holidays for an account.</summary> public class GetsupportedholidaysRequest : ShoppingContentBaseServiceRequest<Google.Apis.ShoppingContent.v2.Data.ShippingsettingsGetSupportedHolidaysResponse> { /// <summary>Constructs a new Getsupportedholidays request.</summary> public GetsupportedholidaysRequest(Google.Apis.Services.IClientService service, ulong merchantId) : base(service) { MerchantId = merchantId; InitParameters(); } /// <summary>The ID of the account for which to retrieve the supported holidays.</summary> [Google.Apis.Util.RequestParameterAttribute("merchantId", Google.Apis.Util.RequestParameterType.Path)] public virtual ulong MerchantId { get; private set; } ///<summary>Gets the method name.</summary> public override string MethodName { get { return "getsupportedholidays"; } } ///<summary>Gets the HTTP method.</summary> public override string HttpMethod { get { return "GET"; } } ///<summary>Gets the REST path.</summary> public override string RestPath { get { return "{merchantId}/supportedHolidays"; } } /// <summary>Initializes Getsupportedholidays parameter list.</summary> protected override void InitParameters() { base.InitParameters(); RequestParameters.Add( "merchantId", new Google.Apis.Discovery.Parameter { Name = "merchantId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); } } /// <summary>Lists the shipping settings of the sub-accounts in your Merchant Center account.</summary> /// <param name="merchantId">The ID of the managing account. This must be a multi-client account.</param> public virtual ListRequest List(ulong merchantId) { return new ListRequest(service, merchantId); } /// <summary>Lists the shipping settings of the sub-accounts in your Merchant Center account.</summary> public class ListRequest : ShoppingContentBaseServiceRequest<Google.Apis.ShoppingContent.v2.Data.ShippingsettingsListResponse> { /// <summary>Constructs a new List request.</summary> public ListRequest(Google.Apis.Services.IClientService service, ulong merchantId) : base(service) { MerchantId = merchantId; InitParameters(); } /// <summary>The ID of the managing account. This must be a multi-client account.</summary> [Google.Apis.Util.RequestParameterAttribute("merchantId", Google.Apis.Util.RequestParameterType.Path)] public virtual ulong MerchantId { get; private set; } /// <summary>The maximum number of shipping settings to return in the response, used for paging.</summary> [Google.Apis.Util.RequestParameterAttribute("maxResults", Google.Apis.Util.RequestParameterType.Query)] public virtual System.Nullable<long> MaxResults { get; set; } /// <summary>The token returned by the previous request.</summary> [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] public virtual string PageToken { get; set; } ///<summary>Gets the method name.</summary> public override string MethodName { get { return "list"; } } ///<summary>Gets the HTTP method.</summary> public override string HttpMethod { get { return "GET"; } } ///<summary>Gets the REST path.</summary> public override string RestPath { get { return "{merchantId}/shippingsettings"; } } /// <summary>Initializes List parameter list.</summary> protected override void InitParameters() { base.InitParameters(); RequestParameters.Add( "merchantId", new Google.Apis.Discovery.Parameter { Name = "merchantId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add( "maxResults", new Google.Apis.Discovery.Parameter { Name = "maxResults", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); RequestParameters.Add( "pageToken", new Google.Apis.Discovery.Parameter { Name = "pageToken", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); } } /// <summary>Updates the shipping settings of the account.</summary> /// <param name="body">The body of the request.</param> /// <param name="merchantId">The ID of the managing account. If this parameter is not the same as accountId, then this /// account must be a multi-client account and accountId must be the ID of a sub-account of this /// account.</param> /// <param name="accountId">The ID of the account for which to get/update shipping /// settings.</param> public virtual UpdateRequest Update(Google.Apis.ShoppingContent.v2.Data.ShippingSettings body, ulong merchantId, ulong accountId) { return new UpdateRequest(service, body, merchantId, accountId); } /// <summary>Updates the shipping settings of the account.</summary> public class UpdateRequest : ShoppingContentBaseServiceRequest<Google.Apis.ShoppingContent.v2.Data.ShippingSettings> { /// <summary>Constructs a new Update request.</summary> public UpdateRequest(Google.Apis.Services.IClientService service, Google.Apis.ShoppingContent.v2.Data.ShippingSettings body, ulong merchantId, ulong accountId) : base(service) { MerchantId = merchantId; AccountId = accountId; Body = body; InitParameters(); } /// <summary>The ID of the managing account. If this parameter is not the same as accountId, then this /// account must be a multi-client account and accountId must be the ID of a sub-account of this /// account.</summary> [Google.Apis.Util.RequestParameterAttribute("merchantId", Google.Apis.Util.RequestParameterType.Path)] public virtual ulong MerchantId { get; private set; } /// <summary>The ID of the account for which to get/update shipping settings.</summary> [Google.Apis.Util.RequestParameterAttribute("accountId", Google.Apis.Util.RequestParameterType.Path)] public virtual ulong AccountId { get; private set; } /// <summary>Flag to simulate a request like in a live environment. If set to true, dry-run mode checks the /// validity of the request and returns errors (if any).</summary> [Google.Apis.Util.RequestParameterAttribute("dryRun", Google.Apis.Util.RequestParameterType.Query)] public virtual System.Nullable<bool> DryRun { get; set; } /// <summary>Gets or sets the body of this request.</summary> Google.Apis.ShoppingContent.v2.Data.ShippingSettings Body { get; set; } ///<summary>Returns the body of the request.</summary> protected override object GetBody() { return Body; } ///<summary>Gets the method name.</summary> public override string MethodName { get { return "update"; } } ///<summary>Gets the HTTP method.</summary> public override string HttpMethod { get { return "PUT"; } } ///<summary>Gets the REST path.</summary> public override string RestPath { get { return "{merchantId}/shippingsettings/{accountId}"; } } /// <summary>Initializes Update parameter list.</summary> protected override void InitParameters() { base.InitParameters(); RequestParameters.Add( "merchantId", new Google.Apis.Discovery.Parameter { Name = "merchantId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add( "accountId", new Google.Apis.Discovery.Parameter { Name = "accountId", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = null, }); RequestParameters.Add( "dryRun", new Google.Apis.Discovery.Parameter { Name = "dryRun", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); } } } } namespace Google.Apis.ShoppingContent.v2.Data { /// <summary>Account data. After the creation of a new account it may take a few minutes before it is fully /// operational. The methods delete, insert, and update require the admin role.</summary> public class Account : Google.Apis.Requests.IDirectResponseSchema { /// <summary>Indicates whether the merchant sells adult content.</summary> [Newtonsoft.Json.JsonPropertyAttribute("adultContent")] public virtual System.Nullable<bool> AdultContent { get; set; } /// <summary>List of linked AdWords accounts that are active or pending approval. To create a new link request, /// add a new link with status active to the list. It will remain in a pending state until approved or rejected /// either in the AdWords interface or through the AdWords API. To delete an active link, or to cancel a link /// request, remove it from the list.</summary> [Newtonsoft.Json.JsonPropertyAttribute("adwordsLinks")] public virtual System.Collections.Generic.IList<AccountAdwordsLink> AdwordsLinks { get; set; } /// <summary>The business information of the account.</summary> [Newtonsoft.Json.JsonPropertyAttribute("businessInformation")] public virtual AccountBusinessInformation BusinessInformation { get; set; } /// <summary>The GMB account which is linked or in the process of being linked with the Merchant Center /// account.</summary> [Newtonsoft.Json.JsonPropertyAttribute("googleMyBusinessLink")] public virtual AccountGoogleMyBusinessLink GoogleMyBusinessLink { get; set; } /// <summary>Merchant Center account ID.</summary> [Newtonsoft.Json.JsonPropertyAttribute("id")] public virtual System.Nullable<ulong> Id { get; set; } /// <summary>Identifies what kind of resource this is. Value: the fixed string "content#account".</summary> [Newtonsoft.Json.JsonPropertyAttribute("kind")] public virtual string Kind { get; set; } /// <summary>Display name for the account.</summary> [Newtonsoft.Json.JsonPropertyAttribute("name")] public virtual string Name { get; set; } /// <summary>[DEPRECATED] This field is never returned and will be ignored if provided.</summary> [Newtonsoft.Json.JsonPropertyAttribute("reviewsUrl")] public virtual string ReviewsUrl { get; set; } /// <summary>Client-specific, locally-unique, internal ID for the child account.</summary> [Newtonsoft.Json.JsonPropertyAttribute("sellerId")] public virtual string SellerId { get; set; } /// <summary>Users with access to the account. Every account (except for subaccounts) must have at least one /// admin user.</summary> [Newtonsoft.Json.JsonPropertyAttribute("users")] public virtual System.Collections.Generic.IList<AccountUser> Users { get; set; } /// <summary>The merchant's website.</summary> [Newtonsoft.Json.JsonPropertyAttribute("websiteUrl")] public virtual string WebsiteUrl { get; set; } /// <summary>List of linked YouTube channels that are active or pending approval. To create a new link request, /// add a new link with status active to the list. It will remain in a pending state until approved or rejected /// in the YT Creator Studio interface. To delete an active link, or to cancel a link request, remove it from /// the list.</summary> [Newtonsoft.Json.JsonPropertyAttribute("youtubeChannelLinks")] public virtual System.Collections.Generic.IList<AccountYouTubeChannelLink> YoutubeChannelLinks { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class AccountAddress : Google.Apis.Requests.IDirectResponseSchema { /// <summary>CLDR country code (e.g. "US").</summary> [Newtonsoft.Json.JsonPropertyAttribute("country")] public virtual string Country { get; set; } /// <summary>City, town or commune. May also include dependent localities or sublocalities (e.g. neighborhoods /// or suburbs).</summary> [Newtonsoft.Json.JsonPropertyAttribute("locality")] public virtual string Locality { get; set; } /// <summary>Postal code or ZIP (e.g. "94043").</summary> [Newtonsoft.Json.JsonPropertyAttribute("postalCode")] public virtual string PostalCode { get; set; } /// <summary>Top-level administrative subdivision of the country. For example, a state like California ("CA") or /// a province like Quebec ("QC").</summary> [Newtonsoft.Json.JsonPropertyAttribute("region")] public virtual string Region { get; set; } /// <summary>Street-level part of the address.</summary> [Newtonsoft.Json.JsonPropertyAttribute("streetAddress")] public virtual string StreetAddress { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class AccountAdwordsLink : Google.Apis.Requests.IDirectResponseSchema { /// <summary>Customer ID of the AdWords account.</summary> [Newtonsoft.Json.JsonPropertyAttribute("adwordsId")] public virtual System.Nullable<ulong> AdwordsId { get; set; } /// <summary>Status of the link between this Merchant Center account and the AdWords account. Upon retrieval, it /// represents the actual status of the link and can be either active if it was approved in Google AdWords or /// pending if it's pending approval. Upon insertion, it represents the intended status of the link. Re- /// uploading a link with status active when it's still pending or with status pending when it's already active /// will have no effect: the status will remain unchanged. Re-uploading a link with deprecated status inactive /// is equivalent to not submitting the link at all and will delete the link if it was active or cancel the link /// request if it was pending.</summary> [Newtonsoft.Json.JsonPropertyAttribute("status")] public virtual string Status { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class AccountBusinessInformation : Google.Apis.Requests.IDirectResponseSchema { /// <summary>The address of the business.</summary> [Newtonsoft.Json.JsonPropertyAttribute("address")] public virtual AccountAddress Address { get; set; } /// <summary>The customer service information of the business.</summary> [Newtonsoft.Json.JsonPropertyAttribute("customerService")] public virtual AccountCustomerService CustomerService { get; set; } /// <summary>The phone number of the business.</summary> [Newtonsoft.Json.JsonPropertyAttribute("phoneNumber")] public virtual string PhoneNumber { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class AccountCustomerService : Google.Apis.Requests.IDirectResponseSchema { /// <summary>Customer service email.</summary> [Newtonsoft.Json.JsonPropertyAttribute("email")] public virtual string Email { get; set; } /// <summary>Customer service phone number.</summary> [Newtonsoft.Json.JsonPropertyAttribute("phoneNumber")] public virtual string PhoneNumber { get; set; } /// <summary>Customer service URL.</summary> [Newtonsoft.Json.JsonPropertyAttribute("url")] public virtual string Url { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class AccountGoogleMyBusinessLink : Google.Apis.Requests.IDirectResponseSchema { /// <summary>The GMB email address of which a specific account within a GMB account. A sample account within a /// GMB account could be a business account with set of locations, managed under the GMB account.</summary> [Newtonsoft.Json.JsonPropertyAttribute("gmbEmail")] public virtual string GmbEmail { get; set; } /// <summary>Status of the link between this Merchant Center account and the GMB account.</summary> [Newtonsoft.Json.JsonPropertyAttribute("status")] public virtual string Status { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class AccountIdentifier : Google.Apis.Requests.IDirectResponseSchema { /// <summary>The aggregator ID, set for aggregators and subaccounts (in that case, it represents the aggregator /// of the subaccount).</summary> [Newtonsoft.Json.JsonPropertyAttribute("aggregatorId")] public virtual System.Nullable<ulong> AggregatorId { get; set; } /// <summary>The merchant account ID, set for individual accounts and subaccounts.</summary> [Newtonsoft.Json.JsonPropertyAttribute("merchantId")] public virtual System.Nullable<ulong> MerchantId { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } /// <summary>The status of an account, i.e., information about its products, which is computed offline and not /// returned immediately at insertion time.</summary> public class AccountStatus : Google.Apis.Requests.IDirectResponseSchema { /// <summary>The ID of the account for which the status is reported.</summary> [Newtonsoft.Json.JsonPropertyAttribute("accountId")] public virtual string AccountId { get; set; } /// <summary>A list of account level issues.</summary> [Newtonsoft.Json.JsonPropertyAttribute("accountLevelIssues")] public virtual System.Collections.Generic.IList<AccountStatusAccountLevelIssue> AccountLevelIssues { get; set; } /// <summary>DEPRECATED - never populated.</summary> [Newtonsoft.Json.JsonPropertyAttribute("dataQualityIssues")] public virtual System.Collections.Generic.IList<AccountStatusDataQualityIssue> DataQualityIssues { get; set; } /// <summary>Identifies what kind of resource this is. Value: the fixed string /// "content#accountStatus".</summary> [Newtonsoft.Json.JsonPropertyAttribute("kind")] public virtual string Kind { get; set; } /// <summary>List of product-related data by channel, destination, and country. Data in this field may be /// delayed by up to 30 minutes.</summary> [Newtonsoft.Json.JsonPropertyAttribute("products")] public virtual System.Collections.Generic.IList<AccountStatusProducts> Products { get; set; } /// <summary>Whether the account's website is claimed or not.</summary> [Newtonsoft.Json.JsonPropertyAttribute("websiteClaimed")] public virtual System.Nullable<bool> WebsiteClaimed { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class AccountStatusAccountLevelIssue : Google.Apis.Requests.IDirectResponseSchema { /// <summary>Country for which this issue is reported.</summary> [Newtonsoft.Json.JsonPropertyAttribute("country")] public virtual string Country { get; set; } /// <summary>The destination the issue applies to.</summary> [Newtonsoft.Json.JsonPropertyAttribute("destination")] public virtual string Destination { get; set; } /// <summary>Additional details about the issue.</summary> [Newtonsoft.Json.JsonPropertyAttribute("detail")] public virtual string Detail { get; set; } /// <summary>The URL of a web page to help resolving this issue.</summary> [Newtonsoft.Json.JsonPropertyAttribute("documentation")] public virtual string Documentation { get; set; } /// <summary>Issue identifier.</summary> [Newtonsoft.Json.JsonPropertyAttribute("id")] public virtual string Id { get; set; } /// <summary>Severity of the issue.</summary> [Newtonsoft.Json.JsonPropertyAttribute("severity")] public virtual string Severity { get; set; } /// <summary>Short description of the issue.</summary> [Newtonsoft.Json.JsonPropertyAttribute("title")] public virtual string Title { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class AccountStatusDataQualityIssue : Google.Apis.Requests.IDirectResponseSchema { [Newtonsoft.Json.JsonPropertyAttribute("country")] public virtual string Country { get; set; } [Newtonsoft.Json.JsonPropertyAttribute("destination")] public virtual string Destination { get; set; } [Newtonsoft.Json.JsonPropertyAttribute("detail")] public virtual string Detail { get; set; } [Newtonsoft.Json.JsonPropertyAttribute("displayedValue")] public virtual string DisplayedValue { get; set; } [Newtonsoft.Json.JsonPropertyAttribute("exampleItems")] public virtual System.Collections.Generic.IList<AccountStatusExampleItem> ExampleItems { get; set; } [Newtonsoft.Json.JsonPropertyAttribute("id")] public virtual string Id { get; set; } [Newtonsoft.Json.JsonPropertyAttribute("lastChecked")] public virtual string LastChecked { get; set; } [Newtonsoft.Json.JsonPropertyAttribute("location")] public virtual string Location { get; set; } [Newtonsoft.Json.JsonPropertyAttribute("numItems")] public virtual System.Nullable<long> NumItems { get; set; } [Newtonsoft.Json.JsonPropertyAttribute("severity")] public virtual string Severity { get; set; } [Newtonsoft.Json.JsonPropertyAttribute("submittedValue")] public virtual string SubmittedValue { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class AccountStatusExampleItem : Google.Apis.Requests.IDirectResponseSchema { [Newtonsoft.Json.JsonPropertyAttribute("itemId")] public virtual string ItemId { get; set; } [Newtonsoft.Json.JsonPropertyAttribute("link")] public virtual string Link { get; set; } [Newtonsoft.Json.JsonPropertyAttribute("submittedValue")] public virtual string SubmittedValue { get; set; } [Newtonsoft.Json.JsonPropertyAttribute("title")] public virtual string Title { get; set; } [Newtonsoft.Json.JsonPropertyAttribute("valueOnLandingPage")] public virtual string ValueOnLandingPage { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class AccountStatusItemLevelIssue : Google.Apis.Requests.IDirectResponseSchema { /// <summary>The attribute's name, if the issue is caused by a single attribute.</summary> [Newtonsoft.Json.JsonPropertyAttribute("attributeName")] public virtual string AttributeName { get; set; } /// <summary>The error code of the issue.</summary> [Newtonsoft.Json.JsonPropertyAttribute("code")] public virtual string Code { get; set; } /// <summary>A short issue description in English.</summary> [Newtonsoft.Json.JsonPropertyAttribute("description")] public virtual string Description { get; set; } /// <summary>A detailed issue description in English.</summary> [Newtonsoft.Json.JsonPropertyAttribute("detail")] public virtual string Detail { get; set; } /// <summary>The URL of a web page to help with resolving this issue.</summary> [Newtonsoft.Json.JsonPropertyAttribute("documentation")] public virtual string Documentation { get; set; } /// <summary>Number of items with this issue.</summary> [Newtonsoft.Json.JsonPropertyAttribute("numItems")] public virtual System.Nullable<long> NumItems { get; set; } /// <summary>Whether the issue can be resolved by the merchant.</summary> [Newtonsoft.Json.JsonPropertyAttribute("resolution")] public virtual string Resolution { get; set; } /// <summary>How this issue affects serving of the offer.</summary> [Newtonsoft.Json.JsonPropertyAttribute("servability")] public virtual string Servability { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class AccountStatusProducts : Google.Apis.Requests.IDirectResponseSchema { /// <summary>The channel the data applies to.</summary> [Newtonsoft.Json.JsonPropertyAttribute("channel")] public virtual string Channel { get; set; } /// <summary>The country the data applies to.</summary> [Newtonsoft.Json.JsonPropertyAttribute("country")] public virtual string Country { get; set; } /// <summary>The destination the data applies to.</summary> [Newtonsoft.Json.JsonPropertyAttribute("destination")] public virtual string Destination { get; set; } /// <summary>List of item-level issues.</summary> [Newtonsoft.Json.JsonPropertyAttribute("itemLevelIssues")] public virtual System.Collections.Generic.IList<AccountStatusItemLevelIssue> ItemLevelIssues { get; set; } /// <summary>Aggregated product statistics.</summary> [Newtonsoft.Json.JsonPropertyAttribute("statistics")] public virtual AccountStatusStatistics Statistics { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class AccountStatusStatistics : Google.Apis.Requests.IDirectResponseSchema { /// <summary>Number of active offers.</summary> [Newtonsoft.Json.JsonPropertyAttribute("active")] public virtual System.Nullable<long> Active { get; set; } /// <summary>Number of disapproved offers.</summary> [Newtonsoft.Json.JsonPropertyAttribute("disapproved")] public virtual System.Nullable<long> Disapproved { get; set; } /// <summary>Number of expiring offers.</summary> [Newtonsoft.Json.JsonPropertyAttribute("expiring")] public virtual System.Nullable<long> Expiring { get; set; } /// <summary>Number of pending offers.</summary> [Newtonsoft.Json.JsonPropertyAttribute("pending")] public virtual System.Nullable<long> Pending { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } /// <summary>The tax settings of a merchant account. All methods require the admin role.</summary> public class AccountTax : Google.Apis.Requests.IDirectResponseSchema { /// <summary>The ID of the account to which these account tax settings belong.</summary> [Newtonsoft.Json.JsonPropertyAttribute("accountId")] public virtual System.Nullable<ulong> AccountId { get; set; } /// <summary>Identifies what kind of resource this is. Value: the fixed string "content#accountTax".</summary> [Newtonsoft.Json.JsonPropertyAttribute("kind")] public virtual string Kind { get; set; } /// <summary>Tax rules. Updating the tax rules will enable US taxes (not reversible). Defining no rules is /// equivalent to not charging tax at all.</summary> [Newtonsoft.Json.JsonPropertyAttribute("rules")] public virtual System.Collections.Generic.IList<AccountTaxTaxRule> Rules { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } /// <summary>Tax calculation rule to apply in a state or province (USA only).</summary> public class AccountTaxTaxRule : Google.Apis.Requests.IDirectResponseSchema { /// <summary>Country code in which tax is applicable.</summary> [Newtonsoft.Json.JsonPropertyAttribute("country")] public virtual string Country { get; set; } /// <summary>State (or province) is which the tax is applicable, described by its location ID (also called /// criteria ID).</summary> [Newtonsoft.Json.JsonPropertyAttribute("locationId")] public virtual System.Nullable<ulong> LocationId { get; set; } /// <summary>Explicit tax rate in percent, represented as a floating point number without the percentage /// character. Must not be negative.</summary> [Newtonsoft.Json.JsonPropertyAttribute("ratePercent")] public virtual string RatePercent { get; set; } /// <summary>If true, shipping charges are also taxed.</summary> [Newtonsoft.Json.JsonPropertyAttribute("shippingTaxed")] public virtual System.Nullable<bool> ShippingTaxed { get; set; } /// <summary>Whether the tax rate is taken from a global tax table or specified explicitly.</summary> [Newtonsoft.Json.JsonPropertyAttribute("useGlobalRate")] public virtual System.Nullable<bool> UseGlobalRate { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class AccountUser : Google.Apis.Requests.IDirectResponseSchema { /// <summary>Whether user is an admin.</summary> [Newtonsoft.Json.JsonPropertyAttribute("admin")] public virtual System.Nullable<bool> Admin { get; set; } /// <summary>User's email address.</summary> [Newtonsoft.Json.JsonPropertyAttribute("emailAddress")] public virtual string EmailAddress { get; set; } /// <summary>Whether user is an order manager.</summary> [Newtonsoft.Json.JsonPropertyAttribute("orderManager")] public virtual System.Nullable<bool> OrderManager { get; set; } /// <summary>Whether user can access payment statements.</summary> [Newtonsoft.Json.JsonPropertyAttribute("paymentsAnalyst")] public virtual System.Nullable<bool> PaymentsAnalyst { get; set; } /// <summary>Whether user can manage payment settings.</summary> [Newtonsoft.Json.JsonPropertyAttribute("paymentsManager")] public virtual System.Nullable<bool> PaymentsManager { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class AccountYouTubeChannelLink : Google.Apis.Requests.IDirectResponseSchema { /// <summary>Channel ID.</summary> [Newtonsoft.Json.JsonPropertyAttribute("channelId")] public virtual string ChannelId { get; set; } /// <summary>Status of the link between this Merchant Center account and the YouTube channel. Upon retrieval, it /// represents the actual status of the link and can be either active if it was approved in YT Creator Studio or /// pending if it's pending approval. Upon insertion, it represents the intended status of the link. Re- /// uploading a link with status active when it's still pending or with status pending when it's already active /// will have no effect: the status will remain unchanged. Re-uploading a link with deprecated status inactive /// is equivalent to not submitting the link at all and will delete the link if it was active or cancel the link /// request if it was pending.</summary> [Newtonsoft.Json.JsonPropertyAttribute("status")] public virtual string Status { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class AccountsAuthInfoResponse : Google.Apis.Requests.IDirectResponseSchema { /// <summary>The account identifiers corresponding to the authenticated user. - For an individual account: only /// the merchant ID is defined - For an aggregator: only the aggregator ID is defined - For a subaccount of an /// MCA: both the merchant ID and the aggregator ID are defined.</summary> [Newtonsoft.Json.JsonPropertyAttribute("accountIdentifiers")] public virtual System.Collections.Generic.IList<AccountIdentifier> AccountIdentifiers { get; set; } /// <summary>Identifies what kind of resource this is. Value: the fixed string /// "content#accountsAuthInfoResponse".</summary> [Newtonsoft.Json.JsonPropertyAttribute("kind")] public virtual string Kind { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class AccountsClaimWebsiteResponse : Google.Apis.Requests.IDirectResponseSchema { /// <summary>Identifies what kind of resource this is. Value: the fixed string /// "content#accountsClaimWebsiteResponse".</summary> [Newtonsoft.Json.JsonPropertyAttribute("kind")] public virtual string Kind { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class AccountsCustomBatchRequest : Google.Apis.Requests.IDirectResponseSchema { /// <summary>The request entries to be processed in the batch.</summary> [Newtonsoft.Json.JsonPropertyAttribute("entries")] public virtual System.Collections.Generic.IList<AccountsCustomBatchRequestEntry> Entries { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } /// <summary>A batch entry encoding a single non-batch accounts request.</summary> public class AccountsCustomBatchRequestEntry : Google.Apis.Requests.IDirectResponseSchema { /// <summary>The account to create or update. Only defined if the method is insert or update.</summary> [Newtonsoft.Json.JsonPropertyAttribute("account")] public virtual Account Account { get; set; } /// <summary>The ID of the targeted account. Only defined if the method is not insert.</summary> [Newtonsoft.Json.JsonPropertyAttribute("accountId")] public virtual System.Nullable<ulong> AccountId { get; set; } /// <summary>An entry ID, unique within the batch request.</summary> [Newtonsoft.Json.JsonPropertyAttribute("batchId")] public virtual System.Nullable<long> BatchId { get; set; } /// <summary>Whether the account should be deleted if the account has offers. Only applicable if the method is /// delete.</summary> [Newtonsoft.Json.JsonPropertyAttribute("force")] public virtual System.Nullable<bool> Force { get; set; } /// <summary>Details about the link request.</summary> [Newtonsoft.Json.JsonPropertyAttribute("linkRequest")] public virtual AccountsCustomBatchRequestEntryLinkRequest LinkRequest { get; set; } /// <summary>The ID of the managing account.</summary> [Newtonsoft.Json.JsonPropertyAttribute("merchantId")] public virtual System.Nullable<ulong> MerchantId { get; set; } /// <summary>The method of the batch entry.</summary> [Newtonsoft.Json.JsonPropertyAttribute("method")] public virtual string Method { get; set; } /// <summary>Only applicable if the method is claimwebsite. Indicates whether or not to take the claim from /// another account in case there is a conflict.</summary> [Newtonsoft.Json.JsonPropertyAttribute("overwrite")] public virtual System.Nullable<bool> Overwrite { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class AccountsCustomBatchRequestEntryLinkRequest : Google.Apis.Requests.IDirectResponseSchema { /// <summary>Action to perform for this link. The "request" action is only available to select /// merchants.</summary> [Newtonsoft.Json.JsonPropertyAttribute("action")] public virtual string Action { get; set; } /// <summary>Type of the link between the two accounts.</summary> [Newtonsoft.Json.JsonPropertyAttribute("linkType")] public virtual string LinkType { get; set; } /// <summary>The ID of the linked account.</summary> [Newtonsoft.Json.JsonPropertyAttribute("linkedAccountId")] public virtual string LinkedAccountId { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class AccountsCustomBatchResponse : Google.Apis.Requests.IDirectResponseSchema { /// <summary>The result of the execution of the batch requests.</summary> [Newtonsoft.Json.JsonPropertyAttribute("entries")] public virtual System.Collections.Generic.IList<AccountsCustomBatchResponseEntry> Entries { get; set; } /// <summary>Identifies what kind of resource this is. Value: the fixed string /// "content#accountsCustomBatchResponse".</summary> [Newtonsoft.Json.JsonPropertyAttribute("kind")] public virtual string Kind { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } /// <summary>A batch entry encoding a single non-batch accounts response.</summary> public class AccountsCustomBatchResponseEntry : Google.Apis.Requests.IDirectResponseSchema { /// <summary>The retrieved, created, or updated account. Not defined if the method was delete, claimwebsite or /// link.</summary> [Newtonsoft.Json.JsonPropertyAttribute("account")] public virtual Account Account { get; set; } /// <summary>The ID of the request entry this entry responds to.</summary> [Newtonsoft.Json.JsonPropertyAttribute("batchId")] public virtual System.Nullable<long> BatchId { get; set; } /// <summary>A list of errors defined if and only if the request failed.</summary> [Newtonsoft.Json.JsonPropertyAttribute("errors")] public virtual Errors Errors { get; set; } /// <summary>Identifies what kind of resource this is. Value: the fixed string /// "content#accountsCustomBatchResponseEntry".</summary> [Newtonsoft.Json.JsonPropertyAttribute("kind")] public virtual string Kind { get; set; } /// <summary>Deprecated. This field is never set.</summary> [Newtonsoft.Json.JsonPropertyAttribute("linkStatus")] public virtual string LinkStatus { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class AccountsLinkRequest : Google.Apis.Requests.IDirectResponseSchema { /// <summary>Action to perform for this link. The "request" action is only available to select /// merchants.</summary> [Newtonsoft.Json.JsonPropertyAttribute("action")] public virtual string Action { get; set; } /// <summary>Type of the link between the two accounts.</summary> [Newtonsoft.Json.JsonPropertyAttribute("linkType")] public virtual string LinkType { get; set; } /// <summary>The ID of the linked account.</summary> [Newtonsoft.Json.JsonPropertyAttribute("linkedAccountId")] public virtual string LinkedAccountId { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class AccountsLinkResponse : Google.Apis.Requests.IDirectResponseSchema { /// <summary>Identifies what kind of resource this is. Value: the fixed string /// "content#accountsLinkResponse".</summary> [Newtonsoft.Json.JsonPropertyAttribute("kind")] public virtual string Kind { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class AccountsListResponse : Google.Apis.Requests.IDirectResponseSchema { /// <summary>Identifies what kind of resource this is. Value: the fixed string /// "content#accountsListResponse".</summary> [Newtonsoft.Json.JsonPropertyAttribute("kind")] public virtual string Kind { get; set; } /// <summary>The token for the retrieval of the next page of accounts.</summary> [Newtonsoft.Json.JsonPropertyAttribute("nextPageToken")] public virtual string NextPageToken { get; set; } [Newtonsoft.Json.JsonPropertyAttribute("resources")] public virtual System.Collections.Generic.IList<Account> Resources { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class AccountstatusesCustomBatchRequest : Google.Apis.Requests.IDirectResponseSchema { /// <summary>The request entries to be processed in the batch.</summary> [Newtonsoft.Json.JsonPropertyAttribute("entries")] public virtual System.Collections.Generic.IList<AccountstatusesCustomBatchRequestEntry> Entries { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } /// <summary>A batch entry encoding a single non-batch accountstatuses request.</summary> public class AccountstatusesCustomBatchRequestEntry : Google.Apis.Requests.IDirectResponseSchema { /// <summary>The ID of the (sub-)account whose status to get.</summary> [Newtonsoft.Json.JsonPropertyAttribute("accountId")] public virtual System.Nullable<ulong> AccountId { get; set; } /// <summary>An entry ID, unique within the batch request.</summary> [Newtonsoft.Json.JsonPropertyAttribute("batchId")] public virtual System.Nullable<long> BatchId { get; set; } /// <summary>If set, only issues for the specified destinations are returned, otherwise only issues for the /// Shopping destination.</summary> [Newtonsoft.Json.JsonPropertyAttribute("destinations")] public virtual System.Collections.Generic.IList<string> Destinations { get; set; } /// <summary>The ID of the managing account.</summary> [Newtonsoft.Json.JsonPropertyAttribute("merchantId")] public virtual System.Nullable<ulong> MerchantId { get; set; } /// <summary>The method (get).</summary> [Newtonsoft.Json.JsonPropertyAttribute("method")] public virtual string Method { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class AccountstatusesCustomBatchResponse : Google.Apis.Requests.IDirectResponseSchema { /// <summary>The result of the execution of the batch requests.</summary> [Newtonsoft.Json.JsonPropertyAttribute("entries")] public virtual System.Collections.Generic.IList<AccountstatusesCustomBatchResponseEntry> Entries { get; set; } /// <summary>Identifies what kind of resource this is. Value: the fixed string /// "content#accountstatusesCustomBatchResponse".</summary> [Newtonsoft.Json.JsonPropertyAttribute("kind")] public virtual string Kind { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } /// <summary>A batch entry encoding a single non-batch accountstatuses response.</summary> public class AccountstatusesCustomBatchResponseEntry : Google.Apis.Requests.IDirectResponseSchema { /// <summary>The requested account status. Defined if and only if the request was successful.</summary> [Newtonsoft.Json.JsonPropertyAttribute("accountStatus")] public virtual AccountStatus AccountStatus { get; set; } /// <summary>The ID of the request entry this entry responds to.</summary> [Newtonsoft.Json.JsonPropertyAttribute("batchId")] public virtual System.Nullable<long> BatchId { get; set; } /// <summary>A list of errors defined if and only if the request failed.</summary> [Newtonsoft.Json.JsonPropertyAttribute("errors")] public virtual Errors Errors { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class AccountstatusesListResponse : Google.Apis.Requests.IDirectResponseSchema { /// <summary>Identifies what kind of resource this is. Value: the fixed string /// "content#accountstatusesListResponse".</summary> [Newtonsoft.Json.JsonPropertyAttribute("kind")] public virtual string Kind { get; set; } /// <summary>The token for the retrieval of the next page of account statuses.</summary> [Newtonsoft.Json.JsonPropertyAttribute("nextPageToken")] public virtual string NextPageToken { get; set; } [Newtonsoft.Json.JsonPropertyAttribute("resources")] public virtual System.Collections.Generic.IList<AccountStatus> Resources { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class AccounttaxCustomBatchRequest : Google.Apis.Requests.IDirectResponseSchema { /// <summary>The request entries to be processed in the batch.</summary> [Newtonsoft.Json.JsonPropertyAttribute("entries")] public virtual System.Collections.Generic.IList<AccounttaxCustomBatchRequestEntry> Entries { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } /// <summary>A batch entry encoding a single non-batch accounttax request.</summary> public class AccounttaxCustomBatchRequestEntry : Google.Apis.Requests.IDirectResponseSchema { /// <summary>The ID of the account for which to get/update account tax settings.</summary> [Newtonsoft.Json.JsonPropertyAttribute("accountId")] public virtual System.Nullable<ulong> AccountId { get; set; } /// <summary>The account tax settings to update. Only defined if the method is update.</summary> [Newtonsoft.Json.JsonPropertyAttribute("accountTax")] public virtual AccountTax AccountTax { get; set; } /// <summary>An entry ID, unique within the batch request.</summary> [Newtonsoft.Json.JsonPropertyAttribute("batchId")] public virtual System.Nullable<long> BatchId { get; set; } /// <summary>The ID of the managing account.</summary> [Newtonsoft.Json.JsonPropertyAttribute("merchantId")] public virtual System.Nullable<ulong> MerchantId { get; set; } [Newtonsoft.Json.JsonPropertyAttribute("method")] public virtual string Method { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class AccounttaxCustomBatchResponse : Google.Apis.Requests.IDirectResponseSchema { /// <summary>The result of the execution of the batch requests.</summary> [Newtonsoft.Json.JsonPropertyAttribute("entries")] public virtual System.Collections.Generic.IList<AccounttaxCustomBatchResponseEntry> Entries { get; set; } /// <summary>Identifies what kind of resource this is. Value: the fixed string /// "content#accounttaxCustomBatchResponse".</summary> [Newtonsoft.Json.JsonPropertyAttribute("kind")] public virtual string Kind { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } /// <summary>A batch entry encoding a single non-batch accounttax response.</summary> public class AccounttaxCustomBatchResponseEntry : Google.Apis.Requests.IDirectResponseSchema { /// <summary>The retrieved or updated account tax settings.</summary> [Newtonsoft.Json.JsonPropertyAttribute("accountTax")] public virtual AccountTax AccountTax { get; set; } /// <summary>The ID of the request entry this entry responds to.</summary> [Newtonsoft.Json.JsonPropertyAttribute("batchId")] public virtual System.Nullable<long> BatchId { get; set; } /// <summary>A list of errors defined if and only if the request failed.</summary> [Newtonsoft.Json.JsonPropertyAttribute("errors")] public virtual Errors Errors { get; set; } /// <summary>Identifies what kind of resource this is. Value: the fixed string /// "content#accounttaxCustomBatchResponseEntry".</summary> [Newtonsoft.Json.JsonPropertyAttribute("kind")] public virtual string Kind { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class AccounttaxListResponse : Google.Apis.Requests.IDirectResponseSchema { /// <summary>Identifies what kind of resource this is. Value: the fixed string /// "content#accounttaxListResponse".</summary> [Newtonsoft.Json.JsonPropertyAttribute("kind")] public virtual string Kind { get; set; } /// <summary>The token for the retrieval of the next page of account tax settings.</summary> [Newtonsoft.Json.JsonPropertyAttribute("nextPageToken")] public virtual string NextPageToken { get; set; } [Newtonsoft.Json.JsonPropertyAttribute("resources")] public virtual System.Collections.Generic.IList<AccountTax> Resources { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class Amount : Google.Apis.Requests.IDirectResponseSchema { /// <summary>[required] Value before taxes.</summary> [Newtonsoft.Json.JsonPropertyAttribute("pretax")] public virtual Price Pretax { get; set; } /// <summary>[required] Tax value.</summary> [Newtonsoft.Json.JsonPropertyAttribute("tax")] public virtual Price Tax { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class BusinessDayConfig : Google.Apis.Requests.IDirectResponseSchema { /// <summary>Regular business days. May not be empty.</summary> [Newtonsoft.Json.JsonPropertyAttribute("businessDays")] public virtual System.Collections.Generic.IList<string> BusinessDays { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class CarrierRate : Google.Apis.Requests.IDirectResponseSchema { /// <summary>Carrier service, such as "UPS" or "Fedex". The list of supported carriers can be retrieved via the /// getSupportedCarriers method. Required.</summary> [Newtonsoft.Json.JsonPropertyAttribute("carrierName")] public virtual string CarrierName { get; set; } /// <summary>Carrier service, such as "ground" or "2 days". The list of supported services for a carrier can be /// retrieved via the getSupportedCarriers method. Required.</summary> [Newtonsoft.Json.JsonPropertyAttribute("carrierService")] public virtual string CarrierService { get; set; } /// <summary>Additive shipping rate modifier. Can be negative. For example { "value": "1", "currency" : "USD" } /// adds $1 to the rate, { "value": "-3", "currency" : "USD" } removes $3 from the rate. Optional.</summary> [Newtonsoft.Json.JsonPropertyAttribute("flatAdjustment")] public virtual Price FlatAdjustment { get; set; } /// <summary>Name of the carrier rate. Must be unique per rate group. Required.</summary> [Newtonsoft.Json.JsonPropertyAttribute("name")] public virtual string Name { get; set; } /// <summary>Shipping origin for this carrier rate. Required.</summary> [Newtonsoft.Json.JsonPropertyAttribute("originPostalCode")] public virtual string OriginPostalCode { get; set; } /// <summary>Multiplicative shipping rate modifier as a number in decimal notation. Can be negative. For example /// "5.4" increases the rate by 5.4%, "-3" decreases the rate by 3%. Optional.</summary> [Newtonsoft.Json.JsonPropertyAttribute("percentageAdjustment")] public virtual string PercentageAdjustment { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class CarriersCarrier : Google.Apis.Requests.IDirectResponseSchema { /// <summary>The CLDR country code of the carrier (e.g., "US"). Always present.</summary> [Newtonsoft.Json.JsonPropertyAttribute("country")] public virtual string Country { get; set; } /// <summary>The name of the carrier (e.g., "UPS"). Always present.</summary> [Newtonsoft.Json.JsonPropertyAttribute("name")] public virtual string Name { get; set; } /// <summary>A list of supported services (e.g., "ground") for that carrier. Contains at least one /// service.</summary> [Newtonsoft.Json.JsonPropertyAttribute("services")] public virtual System.Collections.Generic.IList<string> Services { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class CustomAttribute : Google.Apis.Requests.IDirectResponseSchema { /// <summary>The name of the attribute. Underscores will be replaced by spaces upon insertion.</summary> [Newtonsoft.Json.JsonPropertyAttribute("name")] public virtual string Name { get; set; } /// <summary>The type of the attribute.</summary> [Newtonsoft.Json.JsonPropertyAttribute("type")] public virtual string Type { get; set; } /// <summary>Free-form unit of the attribute. Unit can only be used for values of type int, float, or /// price.</summary> [Newtonsoft.Json.JsonPropertyAttribute("unit")] public virtual string Unit { get; set; } /// <summary>The value of the attribute.</summary> [Newtonsoft.Json.JsonPropertyAttribute("value")] public virtual string Value { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class CustomGroup : Google.Apis.Requests.IDirectResponseSchema { /// <summary>The sub-attributes.</summary> [Newtonsoft.Json.JsonPropertyAttribute("attributes")] public virtual System.Collections.Generic.IList<CustomAttribute> Attributes { get; set; } /// <summary>The name of the group. Underscores will be replaced by spaces upon insertion.</summary> [Newtonsoft.Json.JsonPropertyAttribute("name")] public virtual string Name { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class CustomerReturnReason : Google.Apis.Requests.IDirectResponseSchema { [Newtonsoft.Json.JsonPropertyAttribute("description")] public virtual string Description { get; set; } [Newtonsoft.Json.JsonPropertyAttribute("reasonCode")] public virtual string ReasonCode { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class CutoffTime : Google.Apis.Requests.IDirectResponseSchema { /// <summary>Hour of the cutoff time until which an order has to be placed to be processed in the same day. /// Required.</summary> [Newtonsoft.Json.JsonPropertyAttribute("hour")] public virtual System.Nullable<long> Hour { get; set; } /// <summary>Minute of the cutoff time until which an order has to be placed to be processed in the same day. /// Required.</summary> [Newtonsoft.Json.JsonPropertyAttribute("minute")] public virtual System.Nullable<long> Minute { get; set; } /// <summary>Timezone identifier for the cutoff time. A list of identifiers can be found in the AdWords API /// documentation. E.g. "Europe/Zurich". Required.</summary> [Newtonsoft.Json.JsonPropertyAttribute("timezone")] public virtual string Timezone { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } /// <summary>Datafeed configuration data.</summary> public class Datafeed : Google.Apis.Requests.IDirectResponseSchema { /// <summary>The two-letter ISO 639-1 language in which the attributes are defined in the data feed.</summary> [Newtonsoft.Json.JsonPropertyAttribute("attributeLanguage")] public virtual string AttributeLanguage { get; set; } /// <summary>[DEPRECATED] Please use targets[].language instead. The two-letter ISO 639-1 language of the items /// in the feed. Must be a valid language for targetCountry.</summary> [Newtonsoft.Json.JsonPropertyAttribute("contentLanguage")] public virtual string ContentLanguage { get; set; } /// <summary>The type of data feed. For product inventory feeds, only feeds for local stores, not online stores, /// are supported.</summary> [Newtonsoft.Json.JsonPropertyAttribute("contentType")] public virtual string ContentType { get; set; } /// <summary>Fetch schedule for the feed file.</summary> [Newtonsoft.Json.JsonPropertyAttribute("fetchSchedule")] public virtual DatafeedFetchSchedule FetchSchedule { get; set; } /// <summary>The filename of the feed. All feeds must have a unique file name.</summary> [Newtonsoft.Json.JsonPropertyAttribute("fileName")] public virtual string FileName { get; set; } /// <summary>Format of the feed file.</summary> [Newtonsoft.Json.JsonPropertyAttribute("format")] public virtual DatafeedFormat Format { get; set; } /// <summary>The ID of the data feed.</summary> [Newtonsoft.Json.JsonPropertyAttribute("id")] public virtual System.Nullable<long> Id { get; set; } /// <summary>[DEPRECATED] Please use targets[].includedDestinations instead. The list of intended destinations /// (corresponds to checked check boxes in Merchant Center).</summary> [Newtonsoft.Json.JsonPropertyAttribute("intendedDestinations")] public virtual System.Collections.Generic.IList<string> IntendedDestinations { get; set; } /// <summary>Identifies what kind of resource this is. Value: the fixed string "content#datafeed".</summary> [Newtonsoft.Json.JsonPropertyAttribute("kind")] public virtual string Kind { get; set; } /// <summary>A descriptive name of the data feed.</summary> [Newtonsoft.Json.JsonPropertyAttribute("name")] public virtual string Name { get; set; } /// <summary>[DEPRECATED] Please use targets[].country instead. The country where the items in the feed will be /// included in the search index, represented as a CLDR territory code.</summary> [Newtonsoft.Json.JsonPropertyAttribute("targetCountry")] public virtual string TargetCountry { get; set; } /// <summary>The targets this feed should apply to (country, language, destinations).</summary> [Newtonsoft.Json.JsonPropertyAttribute("targets")] public virtual System.Collections.Generic.IList<DatafeedTarget> Targets { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } /// <summary>The required fields vary based on the frequency of fetching. For a monthly fetch schedule, day_of_month /// and hour are required. For a weekly fetch schedule, weekday and hour are required. For a daily fetch schedule, /// only hour is required.</summary> public class DatafeedFetchSchedule : Google.Apis.Requests.IDirectResponseSchema { /// <summary>The day of the month the feed file should be fetched (1-31).</summary> [Newtonsoft.Json.JsonPropertyAttribute("dayOfMonth")] public virtual System.Nullable<long> DayOfMonth { get; set; } /// <summary>The URL where the feed file can be fetched. Google Merchant Center will support automatic scheduled /// uploads using the HTTP, HTTPS, FTP, or SFTP protocols, so the value will need to be a valid link using one /// of those four protocols.</summary> [Newtonsoft.Json.JsonPropertyAttribute("fetchUrl")] public virtual string FetchUrl { get; set; } /// <summary>The hour of the day the feed file should be fetched (0-23).</summary> [Newtonsoft.Json.JsonPropertyAttribute("hour")] public virtual System.Nullable<long> Hour { get; set; } /// <summary>The minute of the hour the feed file should be fetched (0-59). Read-only.</summary> [Newtonsoft.Json.JsonPropertyAttribute("minuteOfHour")] public virtual System.Nullable<long> MinuteOfHour { get; set; } /// <summary>An optional password for fetch_url.</summary> [Newtonsoft.Json.JsonPropertyAttribute("password")] public virtual string Password { get; set; } /// <summary>Whether the scheduled fetch is paused or not.</summary> [Newtonsoft.Json.JsonPropertyAttribute("paused")] public virtual System.Nullable<bool> Paused { get; set; } /// <summary>Time zone used for schedule. UTC by default. E.g., "America/Los_Angeles".</summary> [Newtonsoft.Json.JsonPropertyAttribute("timeZone")] public virtual string TimeZone { get; set; } /// <summary>An optional user name for fetch_url.</summary> [Newtonsoft.Json.JsonPropertyAttribute("username")] public virtual string Username { get; set; } /// <summary>The day of the week the feed file should be fetched.</summary> [Newtonsoft.Json.JsonPropertyAttribute("weekday")] public virtual string Weekday { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class DatafeedFormat : Google.Apis.Requests.IDirectResponseSchema { /// <summary>Delimiter for the separation of values in a delimiter-separated values feed. If not specified, the /// delimiter will be auto-detected. Ignored for non-DSV data feeds.</summary> [Newtonsoft.Json.JsonPropertyAttribute("columnDelimiter")] public virtual string ColumnDelimiter { get; set; } /// <summary>Character encoding scheme of the data feed. If not specified, the encoding will be auto- /// detected.</summary> [Newtonsoft.Json.JsonPropertyAttribute("fileEncoding")] public virtual string FileEncoding { get; set; } /// <summary>Specifies how double quotes are interpreted. If not specified, the mode will be auto-detected. /// Ignored for non-DSV data feeds.</summary> [Newtonsoft.Json.JsonPropertyAttribute("quotingMode")] public virtual string QuotingMode { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } /// <summary>The status of a datafeed, i.e., the result of the last retrieval of the datafeed computed /// asynchronously when the feed processing is finished.</summary> public class DatafeedStatus : Google.Apis.Requests.IDirectResponseSchema { /// <summary>The country for which the status is reported, represented as a CLDR territory code.</summary> [Newtonsoft.Json.JsonPropertyAttribute("country")] public virtual string Country { get; set; } /// <summary>The ID of the feed for which the status is reported.</summary> [Newtonsoft.Json.JsonPropertyAttribute("datafeedId")] public virtual System.Nullable<ulong> DatafeedId { get; set; } /// <summary>The list of errors occurring in the feed.</summary> [Newtonsoft.Json.JsonPropertyAttribute("errors")] public virtual System.Collections.Generic.IList<DatafeedStatusError> Errors { get; set; } /// <summary>The number of items in the feed that were processed.</summary> [Newtonsoft.Json.JsonPropertyAttribute("itemsTotal")] public virtual System.Nullable<ulong> ItemsTotal { get; set; } /// <summary>The number of items in the feed that were valid.</summary> [Newtonsoft.Json.JsonPropertyAttribute("itemsValid")] public virtual System.Nullable<ulong> ItemsValid { get; set; } /// <summary>Identifies what kind of resource this is. Value: the fixed string /// "content#datafeedStatus".</summary> [Newtonsoft.Json.JsonPropertyAttribute("kind")] public virtual string Kind { get; set; } /// <summary>The two-letter ISO 639-1 language for which the status is reported.</summary> [Newtonsoft.Json.JsonPropertyAttribute("language")] public virtual string Language { get; set; } /// <summary>The last date at which the feed was uploaded.</summary> [Newtonsoft.Json.JsonPropertyAttribute("lastUploadDate")] public virtual string LastUploadDate { get; set; } /// <summary>The processing status of the feed.</summary> [Newtonsoft.Json.JsonPropertyAttribute("processingStatus")] public virtual string ProcessingStatus { get; set; } /// <summary>The list of errors occurring in the feed.</summary> [Newtonsoft.Json.JsonPropertyAttribute("warnings")] public virtual System.Collections.Generic.IList<DatafeedStatusError> Warnings { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } /// <summary>An error occurring in the feed, like "invalid price".</summary> public class DatafeedStatusError : Google.Apis.Requests.IDirectResponseSchema { /// <summary>The code of the error, e.g., "validation/invalid_value".</summary> [Newtonsoft.Json.JsonPropertyAttribute("code")] public virtual string Code { get; set; } /// <summary>The number of occurrences of the error in the feed.</summary> [Newtonsoft.Json.JsonPropertyAttribute("count")] public virtual System.Nullable<ulong> Count { get; set; } /// <summary>A list of example occurrences of the error, grouped by product.</summary> [Newtonsoft.Json.JsonPropertyAttribute("examples")] public virtual System.Collections.Generic.IList<DatafeedStatusExample> Examples { get; set; } /// <summary>The error message, e.g., "Invalid price".</summary> [Newtonsoft.Json.JsonPropertyAttribute("message")] public virtual string Message { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } /// <summary>An example occurrence for a particular error.</summary> public class DatafeedStatusExample : Google.Apis.Requests.IDirectResponseSchema { /// <summary>The ID of the example item.</summary> [Newtonsoft.Json.JsonPropertyAttribute("itemId")] public virtual string ItemId { get; set; } /// <summary>Line number in the data feed where the example is found.</summary> [Newtonsoft.Json.JsonPropertyAttribute("lineNumber")] public virtual System.Nullable<ulong> LineNumber { get; set; } /// <summary>The problematic value.</summary> [Newtonsoft.Json.JsonPropertyAttribute("value")] public virtual string Value { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class DatafeedTarget : Google.Apis.Requests.IDirectResponseSchema { /// <summary>The country where the items in the feed will be included in the search index, represented as a /// CLDR territory code.</summary> [Newtonsoft.Json.JsonPropertyAttribute("country")] public virtual string Country { get; set; } /// <summary>The list of destinations to exclude for this target (corresponds to unchecked check boxes in /// Merchant Center).</summary> [Newtonsoft.Json.JsonPropertyAttribute("excludedDestinations")] public virtual System.Collections.Generic.IList<string> ExcludedDestinations { get; set; } /// <summary>The list of destinations to include for this target (corresponds to checked check boxes in Merchant /// Center). Default destinations are always included unless provided in excludedDestinations. /// /// List of supported destinations (if available to the account): - DisplayAds - Shopping - ShoppingActions - /// SurfacesAcrossGoogle</summary> [Newtonsoft.Json.JsonPropertyAttribute("includedDestinations")] public virtual System.Collections.Generic.IList<string> IncludedDestinations { get; set; } /// <summary>The two-letter ISO 639-1 language of the items in the feed. Must be a valid language for /// targets[].country.</summary> [Newtonsoft.Json.JsonPropertyAttribute("language")] public virtual string Language { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class DatafeedsCustomBatchRequest : Google.Apis.Requests.IDirectResponseSchema { /// <summary>The request entries to be processed in the batch.</summary> [Newtonsoft.Json.JsonPropertyAttribute("entries")] public virtual System.Collections.Generic.IList<DatafeedsCustomBatchRequestEntry> Entries { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } /// <summary>A batch entry encoding a single non-batch datafeeds request.</summary> public class DatafeedsCustomBatchRequestEntry : Google.Apis.Requests.IDirectResponseSchema { /// <summary>An entry ID, unique within the batch request.</summary> [Newtonsoft.Json.JsonPropertyAttribute("batchId")] public virtual System.Nullable<long> BatchId { get; set; } /// <summary>The data feed to insert.</summary> [Newtonsoft.Json.JsonPropertyAttribute("datafeed")] public virtual Datafeed Datafeed { get; set; } /// <summary>The ID of the data feed to get, delete or fetch.</summary> [Newtonsoft.Json.JsonPropertyAttribute("datafeedId")] public virtual System.Nullable<ulong> DatafeedId { get; set; } /// <summary>The ID of the managing account.</summary> [Newtonsoft.Json.JsonPropertyAttribute("merchantId")] public virtual System.Nullable<ulong> MerchantId { get; set; } [Newtonsoft.Json.JsonPropertyAttribute("method")] public virtual string Method { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class DatafeedsCustomBatchResponse : Google.Apis.Requests.IDirectResponseSchema { /// <summary>The result of the execution of the batch requests.</summary> [Newtonsoft.Json.JsonPropertyAttribute("entries")] public virtual System.Collections.Generic.IList<DatafeedsCustomBatchResponseEntry> Entries { get; set; } /// <summary>Identifies what kind of resource this is. Value: the fixed string /// "content#datafeedsCustomBatchResponse".</summary> [Newtonsoft.Json.JsonPropertyAttribute("kind")] public virtual string Kind { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } /// <summary>A batch entry encoding a single non-batch datafeeds response.</summary> public class DatafeedsCustomBatchResponseEntry : Google.Apis.Requests.IDirectResponseSchema { /// <summary>The ID of the request entry this entry responds to.</summary> [Newtonsoft.Json.JsonPropertyAttribute("batchId")] public virtual System.Nullable<long> BatchId { get; set; } /// <summary>The requested data feed. Defined if and only if the request was successful.</summary> [Newtonsoft.Json.JsonPropertyAttribute("datafeed")] public virtual Datafeed Datafeed { get; set; } /// <summary>A list of errors defined if and only if the request failed.</summary> [Newtonsoft.Json.JsonPropertyAttribute("errors")] public virtual Errors Errors { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class DatafeedsFetchNowResponse : Google.Apis.Requests.IDirectResponseSchema { /// <summary>Identifies what kind of resource this is. Value: the fixed string /// "content#datafeedsFetchNowResponse".</summary> [Newtonsoft.Json.JsonPropertyAttribute("kind")] public virtual string Kind { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class DatafeedsListResponse : Google.Apis.Requests.IDirectResponseSchema { /// <summary>Identifies what kind of resource this is. Value: the fixed string /// "content#datafeedsListResponse".</summary> [Newtonsoft.Json.JsonPropertyAttribute("kind")] public virtual string Kind { get; set; } /// <summary>The token for the retrieval of the next page of datafeeds.</summary> [Newtonsoft.Json.JsonPropertyAttribute("nextPageToken")] public virtual string NextPageToken { get; set; } [Newtonsoft.Json.JsonPropertyAttribute("resources")] public virtual System.Collections.Generic.IList<Datafeed> Resources { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class DatafeedstatusesCustomBatchRequest : Google.Apis.Requests.IDirectResponseSchema { /// <summary>The request entries to be processed in the batch.</summary> [Newtonsoft.Json.JsonPropertyAttribute("entries")] public virtual System.Collections.Generic.IList<DatafeedstatusesCustomBatchRequestEntry> Entries { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } /// <summary>A batch entry encoding a single non-batch datafeedstatuses request.</summary> public class DatafeedstatusesCustomBatchRequestEntry : Google.Apis.Requests.IDirectResponseSchema { /// <summary>An entry ID, unique within the batch request.</summary> [Newtonsoft.Json.JsonPropertyAttribute("batchId")] public virtual System.Nullable<long> BatchId { get; set; } /// <summary>The country for which to get the datafeed status. If this parameter is provided then language must /// also be provided. Note that for multi-target datafeeds this parameter is required.</summary> [Newtonsoft.Json.JsonPropertyAttribute("country")] public virtual string Country { get; set; } /// <summary>The ID of the data feed to get.</summary> [Newtonsoft.Json.JsonPropertyAttribute("datafeedId")] public virtual System.Nullable<ulong> DatafeedId { get; set; } /// <summary>The language for which to get the datafeed status. If this parameter is provided then country must /// also be provided. Note that for multi-target datafeeds this parameter is required.</summary> [Newtonsoft.Json.JsonPropertyAttribute("language")] public virtual string Language { get; set; } /// <summary>The ID of the managing account.</summary> [Newtonsoft.Json.JsonPropertyAttribute("merchantId")] public virtual System.Nullable<ulong> MerchantId { get; set; } [Newtonsoft.Json.JsonPropertyAttribute("method")] public virtual string Method { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class DatafeedstatusesCustomBatchResponse : Google.Apis.Requests.IDirectResponseSchema { /// <summary>The result of the execution of the batch requests.</summary> [Newtonsoft.Json.JsonPropertyAttribute("entries")] public virtual System.Collections.Generic.IList<DatafeedstatusesCustomBatchResponseEntry> Entries { get; set; } /// <summary>Identifies what kind of resource this is. Value: the fixed string /// "content#datafeedstatusesCustomBatchResponse".</summary> [Newtonsoft.Json.JsonPropertyAttribute("kind")] public virtual string Kind { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } /// <summary>A batch entry encoding a single non-batch datafeedstatuses response.</summary> public class DatafeedstatusesCustomBatchResponseEntry : Google.Apis.Requests.IDirectResponseSchema { /// <summary>The ID of the request entry this entry responds to.</summary> [Newtonsoft.Json.JsonPropertyAttribute("batchId")] public virtual System.Nullable<long> BatchId { get; set; } /// <summary>The requested data feed status. Defined if and only if the request was successful.</summary> [Newtonsoft.Json.JsonPropertyAttribute("datafeedStatus")] public virtual DatafeedStatus DatafeedStatus { get; set; } /// <summary>A list of errors defined if and only if the request failed.</summary> [Newtonsoft.Json.JsonPropertyAttribute("errors")] public virtual Errors Errors { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class DatafeedstatusesListResponse : Google.Apis.Requests.IDirectResponseSchema { /// <summary>Identifies what kind of resource this is. Value: the fixed string /// "content#datafeedstatusesListResponse".</summary> [Newtonsoft.Json.JsonPropertyAttribute("kind")] public virtual string Kind { get; set; } /// <summary>The token for the retrieval of the next page of datafeed statuses.</summary> [Newtonsoft.Json.JsonPropertyAttribute("nextPageToken")] public virtual string NextPageToken { get; set; } [Newtonsoft.Json.JsonPropertyAttribute("resources")] public virtual System.Collections.Generic.IList<DatafeedStatus> Resources { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class DeliveryTime : Google.Apis.Requests.IDirectResponseSchema { /// <summary>Business days cutoff time definition. If not configured the cutoff time will be defaulted to 8AM /// PST.</summary> [Newtonsoft.Json.JsonPropertyAttribute("cutoffTime")] public virtual CutoffTime CutoffTime { get; set; } /// <summary>The business days during which orders can be handled. If not provided, Monday to Friday business /// days will be assumed.</summary> [Newtonsoft.Json.JsonPropertyAttribute("handlingBusinessDayConfig")] public virtual BusinessDayConfig HandlingBusinessDayConfig { get; set; } /// <summary>Holiday cutoff definitions. If configured, they specify order cutoff times for holiday-specific /// shipping.</summary> [Newtonsoft.Json.JsonPropertyAttribute("holidayCutoffs")] public virtual System.Collections.Generic.IList<HolidayCutoff> HolidayCutoffs { get; set; } /// <summary>Maximum number of business days spent before an order is shipped. 0 means same day shipped, 1 means /// next day shipped. Must be greater than or equal to minHandlingTimeInDays.</summary> [Newtonsoft.Json.JsonPropertyAttribute("maxHandlingTimeInDays")] public virtual System.Nullable<long> MaxHandlingTimeInDays { get; set; } /// <summary>Maximum number of business days that is spent in transit. 0 means same day delivery, 1 means next /// day delivery. Must be greater than or equal to minTransitTimeInDays.</summary> [Newtonsoft.Json.JsonPropertyAttribute("maxTransitTimeInDays")] public virtual System.Nullable<long> MaxTransitTimeInDays { get; set; } /// <summary>Minimum number of business days spent before an order is shipped. 0 means same day shipped, 1 means /// next day shipped.</summary> [Newtonsoft.Json.JsonPropertyAttribute("minHandlingTimeInDays")] public virtual System.Nullable<long> MinHandlingTimeInDays { get; set; } /// <summary>Minimum number of business days that is spent in transit. 0 means same day delivery, 1 means next /// day delivery. Either {min,max}TransitTimeInDays or transitTimeTable must be set, but not both.</summary> [Newtonsoft.Json.JsonPropertyAttribute("minTransitTimeInDays")] public virtual System.Nullable<long> MinTransitTimeInDays { get; set; } /// <summary>The business days during which orders can be in-transit. If not provided, Monday to Friday business /// days will be assumed.</summary> [Newtonsoft.Json.JsonPropertyAttribute("transitBusinessDayConfig")] public virtual BusinessDayConfig TransitBusinessDayConfig { get; set; } /// <summary>Transit time table, number of business days spent in transit based on row and column dimensions. /// Either {min,max}TransitTimeInDays or transitTimeTable can be set, but not both.</summary> [Newtonsoft.Json.JsonPropertyAttribute("transitTimeTable")] public virtual TransitTable TransitTimeTable { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } /// <summary>An error returned by the API.</summary> public class Error : Google.Apis.Requests.IDirectResponseSchema { /// <summary>The domain of the error.</summary> [Newtonsoft.Json.JsonPropertyAttribute("domain")] public virtual string Domain { get; set; } /// <summary>A description of the error.</summary> [Newtonsoft.Json.JsonPropertyAttribute("message")] public virtual string Message { get; set; } /// <summary>The error code.</summary> [Newtonsoft.Json.JsonPropertyAttribute("reason")] public virtual string Reason { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } /// <summary>A list of errors returned by a failed batch entry.</summary> public class Errors : Google.Apis.Requests.IDirectResponseSchema { /// <summary>The HTTP status of the first error in errors.</summary> [Newtonsoft.Json.JsonPropertyAttribute("code")] public virtual System.Nullable<long> Code { get; set; } /// <summary>A list of errors.</summary> [Newtonsoft.Json.JsonPropertyAttribute("errors")] public virtual System.Collections.Generic.IList<Error> ErrorsValue { get; set; } /// <summary>The message of the first error in errors.</summary> [Newtonsoft.Json.JsonPropertyAttribute("message")] public virtual string Message { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class GmbAccounts : Google.Apis.Requests.IDirectResponseSchema { /// <summary>The ID of the account.</summary> [Newtonsoft.Json.JsonPropertyAttribute("accountId")] public virtual System.Nullable<ulong> AccountId { get; set; } /// <summary>A list of GMB accounts which are available to the merchant.</summary> [Newtonsoft.Json.JsonPropertyAttribute("gmbAccounts")] public virtual System.Collections.Generic.IList<GmbAccountsGmbAccount> GmbAccountsValue { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class GmbAccountsGmbAccount : Google.Apis.Requests.IDirectResponseSchema { /// <summary>The email which identifies the GMB account.</summary> [Newtonsoft.Json.JsonPropertyAttribute("email")] public virtual string Email { get; set; } /// <summary>Number of listings under this account.</summary> [Newtonsoft.Json.JsonPropertyAttribute("listingCount")] public virtual System.Nullable<ulong> ListingCount { get; set; } /// <summary>The name of the GMB account.</summary> [Newtonsoft.Json.JsonPropertyAttribute("name")] public virtual string Name { get; set; } /// <summary>The type of the GMB account (User or Business).</summary> [Newtonsoft.Json.JsonPropertyAttribute("type")] public virtual string Type { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } /// <summary>A non-empty list of row or column headers for a table. Exactly one of prices, weights, numItems, /// postalCodeGroupNames, or location must be set.</summary> public class Headers : Google.Apis.Requests.IDirectResponseSchema { /// <summary>A list of location ID sets. Must be non-empty. Can only be set if all other fields are not /// set.</summary> [Newtonsoft.Json.JsonPropertyAttribute("locations")] public virtual System.Collections.Generic.IList<LocationIdSet> Locations { get; set; } /// <summary>A list of inclusive number of items upper bounds. The last value can be "infinity". For example /// ["10", "50", "infinity"] represents the headers "<= 10 items", " 50 items". Must be non-empty. Can only be /// set if all other fields are not set.</summary> [Newtonsoft.Json.JsonPropertyAttribute("numberOfItems")] public virtual System.Collections.Generic.IList<string> NumberOfItems { get; set; } /// <summary>A list of postal group names. The last value can be "all other locations". Example: ["zone 1", /// "zone 2", "all other locations"]. The referred postal code groups must match the delivery country of the /// service. Must be non-empty. Can only be set if all other fields are not set.</summary> [Newtonsoft.Json.JsonPropertyAttribute("postalCodeGroupNames")] public virtual System.Collections.Generic.IList<string> PostalCodeGroupNames { get; set; } /// <summary>A list of inclusive order price upper bounds. The last price's value can be "infinity". For example /// [{"value": "10", "currency": "USD"}, {"value": "500", "currency": "USD"}, {"value": "infinity", "currency": /// "USD"}] represents the headers "<= $10", " $500". All prices within a service must have the same currency. /// Must be non-empty. Can only be set if all other fields are not set.</summary> [Newtonsoft.Json.JsonPropertyAttribute("prices")] public virtual System.Collections.Generic.IList<Price> Prices { get; set; } /// <summary>A list of inclusive order weight upper bounds. The last weight's value can be "infinity". For /// example [{"value": "10", "unit": "kg"}, {"value": "50", "unit": "kg"}, {"value": "infinity", "unit": "kg"}] /// represents the headers "<= 10kg", " 50kg". All weights within a service must have the same unit. Must be /// non-empty. Can only be set if all other fields are not set.</summary> [Newtonsoft.Json.JsonPropertyAttribute("weights")] public virtual System.Collections.Generic.IList<Weight> Weights { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class HolidayCutoff : Google.Apis.Requests.IDirectResponseSchema { /// <summary>Date of the order deadline, in ISO 8601 format. E.g. "2016-11-29" for 29th November 2016. /// Required.</summary> [Newtonsoft.Json.JsonPropertyAttribute("deadlineDate")] public virtual string DeadlineDate { get; set; } /// <summary>Hour of the day on the deadline date until which the order has to be placed to qualify for the /// delivery guarantee. Possible values are: 0 (midnight), 1, ..., 12 (noon), 13, ..., 23. Required.</summary> [Newtonsoft.Json.JsonPropertyAttribute("deadlineHour")] public virtual System.Nullable<long> DeadlineHour { get; set; } /// <summary>Timezone identifier for the deadline hour. A list of identifiers can be found in the AdWords API /// documentation. E.g. "Europe/Zurich". Required.</summary> [Newtonsoft.Json.JsonPropertyAttribute("deadlineTimezone")] public virtual string DeadlineTimezone { get; set; } /// <summary>Unique identifier for the holiday. Required.</summary> [Newtonsoft.Json.JsonPropertyAttribute("holidayId")] public virtual string HolidayId { get; set; } /// <summary>Date on which the deadline will become visible to consumers in ISO 8601 format. E.g. "2016-10-31" /// for 31st October 2016. Required.</summary> [Newtonsoft.Json.JsonPropertyAttribute("visibleFromDate")] public virtual string VisibleFromDate { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class HolidaysHoliday : Google.Apis.Requests.IDirectResponseSchema { /// <summary>The CLDR territory code of the country in which the holiday is available. E.g. "US", "DE", "GB". A /// holiday cutoff can only be configured in a shipping settings service with matching delivery country. Always /// present.</summary> [Newtonsoft.Json.JsonPropertyAttribute("countryCode")] public virtual string CountryCode { get; set; } /// <summary>Date of the holiday, in ISO 8601 format. E.g. "2016-12-25" for Christmas 2016. Always /// present.</summary> [Newtonsoft.Json.JsonPropertyAttribute("date")] public virtual string Date { get; set; } /// <summary>Date on which the order has to arrive at the customer's, in ISO 8601 format. E.g. "2016-12-24" for /// 24th December 2016. Always present.</summary> [Newtonsoft.Json.JsonPropertyAttribute("deliveryGuaranteeDate")] public virtual string DeliveryGuaranteeDate { get; set; } /// <summary>Hour of the day in the delivery location's timezone on the guaranteed delivery date by which the /// order has to arrive at the customer's. Possible values are: 0 (midnight), 1, ..., 12 (noon), 13, ..., 23. /// Always present.</summary> [Newtonsoft.Json.JsonPropertyAttribute("deliveryGuaranteeHour")] public virtual System.Nullable<ulong> DeliveryGuaranteeHour { get; set; } /// <summary>Unique identifier for the holiday to be used when configuring holiday cutoffs. Always /// present.</summary> [Newtonsoft.Json.JsonPropertyAttribute("id")] public virtual string Id { get; set; } /// <summary>The holiday type. Always present.</summary> [Newtonsoft.Json.JsonPropertyAttribute("type")] public virtual string Type { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class Installment : Google.Apis.Requests.IDirectResponseSchema { /// <summary>The amount the buyer has to pay per month.</summary> [Newtonsoft.Json.JsonPropertyAttribute("amount")] public virtual Price Amount { get; set; } /// <summary>The number of installments the buyer has to pay.</summary> [Newtonsoft.Json.JsonPropertyAttribute("months")] public virtual System.Nullable<long> Months { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class Inventory : Google.Apis.Requests.IDirectResponseSchema { /// <summary>The availability of the product.</summary> [Newtonsoft.Json.JsonPropertyAttribute("availability")] public virtual string Availability { get; set; } /// <summary>Custom label 0 for custom grouping of items in a Shopping campaign. Only supported for online /// products.</summary> [Newtonsoft.Json.JsonPropertyAttribute("customLabel0")] public virtual string CustomLabel0 { get; set; } /// <summary>Custom label 1 for custom grouping of items in a Shopping campaign. Only supported for online /// products.</summary> [Newtonsoft.Json.JsonPropertyAttribute("customLabel1")] public virtual string CustomLabel1 { get; set; } /// <summary>Custom label 2 for custom grouping of items in a Shopping campaign. Only supported for online /// products.</summary> [Newtonsoft.Json.JsonPropertyAttribute("customLabel2")] public virtual string CustomLabel2 { get; set; } /// <summary>Custom label 3 for custom grouping of items in a Shopping campaign. Only supported for online /// products.</summary> [Newtonsoft.Json.JsonPropertyAttribute("customLabel3")] public virtual string CustomLabel3 { get; set; } /// <summary>Custom label 3 for custom grouping of items in a Shopping campaign. Only supported for online /// products.</summary> [Newtonsoft.Json.JsonPropertyAttribute("customLabel4")] public virtual string CustomLabel4 { get; set; } /// <summary>Number and amount of installments to pay for an item. Brazil only.</summary> [Newtonsoft.Json.JsonPropertyAttribute("installment")] public virtual Installment Installment { get; set; } /// <summary>The instore product location. Supported only for local products.</summary> [Newtonsoft.Json.JsonPropertyAttribute("instoreProductLocation")] public virtual string InstoreProductLocation { get; set; } /// <summary>Identifies what kind of resource this is. Value: the fixed string "content#inventory".</summary> [Newtonsoft.Json.JsonPropertyAttribute("kind")] public virtual string Kind { get; set; } /// <summary>Loyalty points that users receive after purchasing the item. Japan only.</summary> [Newtonsoft.Json.JsonPropertyAttribute("loyaltyPoints")] public virtual LoyaltyPoints LoyaltyPoints { get; set; } /// <summary>Store pickup information. Only supported for local inventory. Not setting pickup means "don't /// update" while setting it to the empty value ({} in JSON) means "delete". Otherwise, pickupMethod and /// pickupSla must be set together, unless pickupMethod is "not supported".</summary> [Newtonsoft.Json.JsonPropertyAttribute("pickup")] public virtual InventoryPickup Pickup { get; set; } /// <summary>The price of the product.</summary> [Newtonsoft.Json.JsonPropertyAttribute("price")] public virtual Price Price { get; set; } /// <summary>The quantity of the product. Must be equal to or greater than zero. Supported only for local /// products.</summary> [Newtonsoft.Json.JsonPropertyAttribute("quantity")] public virtual System.Nullable<long> Quantity { get; set; } /// <summary>The sale price of the product. Mandatory if sale_price_effective_date is defined.</summary> [Newtonsoft.Json.JsonPropertyAttribute("salePrice")] public virtual Price SalePrice { get; set; } /// <summary>A date range represented by a pair of ISO 8601 dates separated by a space, comma, or slash. Both /// dates might be specified as 'null' if undecided.</summary> [Newtonsoft.Json.JsonPropertyAttribute("salePriceEffectiveDate")] public virtual string SalePriceEffectiveDate { get; set; } /// <summary>The quantity of the product that is available for selling on Google. Supported only for online /// products.</summary> [Newtonsoft.Json.JsonPropertyAttribute("sellOnGoogleQuantity")] public virtual System.Nullable<long> SellOnGoogleQuantity { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class InventoryCustomBatchRequest : Google.Apis.Requests.IDirectResponseSchema { /// <summary>The request entries to be processed in the batch.</summary> [Newtonsoft.Json.JsonPropertyAttribute("entries")] public virtual System.Collections.Generic.IList<InventoryCustomBatchRequestEntry> Entries { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } /// <summary>A batch entry encoding a single non-batch inventory request.</summary> public class InventoryCustomBatchRequestEntry : Google.Apis.Requests.IDirectResponseSchema { /// <summary>An entry ID, unique within the batch request.</summary> [Newtonsoft.Json.JsonPropertyAttribute("batchId")] public virtual System.Nullable<long> BatchId { get; set; } /// <summary>Price and availability of the product.</summary> [Newtonsoft.Json.JsonPropertyAttribute("inventory")] public virtual Inventory Inventory { get; set; } /// <summary>The ID of the managing account.</summary> [Newtonsoft.Json.JsonPropertyAttribute("merchantId")] public virtual System.Nullable<ulong> MerchantId { get; set; } /// <summary>The ID of the product for which to update price and availability.</summary> [Newtonsoft.Json.JsonPropertyAttribute("productId")] public virtual string ProductId { get; set; } /// <summary>The code of the store for which to update price and availability. Use online to update price and /// availability of an online product.</summary> [Newtonsoft.Json.JsonPropertyAttribute("storeCode")] public virtual string StoreCode { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class InventoryCustomBatchResponse : Google.Apis.Requests.IDirectResponseSchema { /// <summary>The result of the execution of the batch requests.</summary> [Newtonsoft.Json.JsonPropertyAttribute("entries")] public virtual System.Collections.Generic.IList<InventoryCustomBatchResponseEntry> Entries { get; set; } /// <summary>Identifies what kind of resource this is. Value: the fixed string /// "content#inventoryCustomBatchResponse".</summary> [Newtonsoft.Json.JsonPropertyAttribute("kind")] public virtual string Kind { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } /// <summary>A batch entry encoding a single non-batch inventory response.</summary> public class InventoryCustomBatchResponseEntry : Google.Apis.Requests.IDirectResponseSchema { /// <summary>The ID of the request entry this entry responds to.</summary> [Newtonsoft.Json.JsonPropertyAttribute("batchId")] public virtual System.Nullable<long> BatchId { get; set; } /// <summary>A list of errors defined if and only if the request failed.</summary> [Newtonsoft.Json.JsonPropertyAttribute("errors")] public virtual Errors Errors { get; set; } /// <summary>Identifies what kind of resource this is. Value: the fixed string /// "content#inventoryCustomBatchResponseEntry".</summary> [Newtonsoft.Json.JsonPropertyAttribute("kind")] public virtual string Kind { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class InventoryPickup : Google.Apis.Requests.IDirectResponseSchema { /// <summary>Whether store pickup is available for this offer and whether the pickup option should be shown as /// buy, reserve, or not supported. Only supported for local inventory. Unless the value is "not supported", /// must be submitted together with pickupSla.</summary> [Newtonsoft.Json.JsonPropertyAttribute("pickupMethod")] public virtual string PickupMethod { get; set; } /// <summary>The expected date that an order will be ready for pickup, relative to when the order is placed. /// Only supported for local inventory. Must be submitted together with pickupMethod.</summary> [Newtonsoft.Json.JsonPropertyAttribute("pickupSla")] public virtual string PickupSla { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class InventorySetRequest : Google.Apis.Requests.IDirectResponseSchema { /// <summary>The availability of the product.</summary> [Newtonsoft.Json.JsonPropertyAttribute("availability")] public virtual string Availability { get; set; } /// <summary>Custom label 0 for custom grouping of items in a Shopping campaign. Only supported for online /// products.</summary> [Newtonsoft.Json.JsonPropertyAttribute("customLabel0")] public virtual string CustomLabel0 { get; set; } /// <summary>Custom label 1 for custom grouping of items in a Shopping campaign. Only supported for online /// products.</summary> [Newtonsoft.Json.JsonPropertyAttribute("customLabel1")] public virtual string CustomLabel1 { get; set; } /// <summary>Custom label 2 for custom grouping of items in a Shopping campaign. Only supported for online /// products.</summary> [Newtonsoft.Json.JsonPropertyAttribute("customLabel2")] public virtual string CustomLabel2 { get; set; } /// <summary>Custom label 3 for custom grouping of items in a Shopping campaign. Only supported for online /// products.</summary> [Newtonsoft.Json.JsonPropertyAttribute("customLabel3")] public virtual string CustomLabel3 { get; set; } /// <summary>Custom label 3 for custom grouping of items in a Shopping campaign. Only supported for online /// products.</summary> [Newtonsoft.Json.JsonPropertyAttribute("customLabel4")] public virtual string CustomLabel4 { get; set; } /// <summary>Number and amount of installments to pay for an item. Brazil only.</summary> [Newtonsoft.Json.JsonPropertyAttribute("installment")] public virtual Installment Installment { get; set; } /// <summary>The instore product location. Supported only for local products.</summary> [Newtonsoft.Json.JsonPropertyAttribute("instoreProductLocation")] public virtual string InstoreProductLocation { get; set; } /// <summary>Loyalty points that users receive after purchasing the item. Japan only.</summary> [Newtonsoft.Json.JsonPropertyAttribute("loyaltyPoints")] public virtual LoyaltyPoints LoyaltyPoints { get; set; } /// <summary>Store pickup information. Only supported for local inventory. Not setting pickup means "don't /// update" while setting it to the empty value ({} in JSON) means "delete". Otherwise, pickupMethod and /// pickupSla must be set together, unless pickupMethod is "not supported".</summary> [Newtonsoft.Json.JsonPropertyAttribute("pickup")] public virtual InventoryPickup Pickup { get; set; } /// <summary>The price of the product.</summary> [Newtonsoft.Json.JsonPropertyAttribute("price")] public virtual Price Price { get; set; } /// <summary>The quantity of the product. Must be equal to or greater than zero. Supported only for local /// products.</summary> [Newtonsoft.Json.JsonPropertyAttribute("quantity")] public virtual System.Nullable<long> Quantity { get; set; } /// <summary>The sale price of the product. Mandatory if sale_price_effective_date is defined.</summary> [Newtonsoft.Json.JsonPropertyAttribute("salePrice")] public virtual Price SalePrice { get; set; } /// <summary>A date range represented by a pair of ISO 8601 dates separated by a space, comma, or slash. Both /// dates might be specified as 'null' if undecided.</summary> [Newtonsoft.Json.JsonPropertyAttribute("salePriceEffectiveDate")] public virtual string SalePriceEffectiveDate { get; set; } /// <summary>The quantity of the product that is available for selling on Google. Supported only for online /// products.</summary> [Newtonsoft.Json.JsonPropertyAttribute("sellOnGoogleQuantity")] public virtual System.Nullable<long> SellOnGoogleQuantity { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class InventorySetResponse : Google.Apis.Requests.IDirectResponseSchema { /// <summary>Identifies what kind of resource this is. Value: the fixed string /// "content#inventorySetResponse".</summary> [Newtonsoft.Json.JsonPropertyAttribute("kind")] public virtual string Kind { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class InvoiceSummary : Google.Apis.Requests.IDirectResponseSchema { /// <summary>Summary of the total amounts of the additional charges.</summary> [Newtonsoft.Json.JsonPropertyAttribute("additionalChargeSummaries")] public virtual System.Collections.Generic.IList<InvoiceSummaryAdditionalChargeSummary> AdditionalChargeSummaries { get; set; } /// <summary>Deprecated.</summary> [Newtonsoft.Json.JsonPropertyAttribute("customerBalance")] public virtual Amount CustomerBalance { get; set; } /// <summary>Deprecated.</summary> [Newtonsoft.Json.JsonPropertyAttribute("googleBalance")] public virtual Amount GoogleBalance { get; set; } /// <summary>Deprecated.</summary> [Newtonsoft.Json.JsonPropertyAttribute("merchantBalance")] public virtual Amount MerchantBalance { get; set; } /// <summary>[required] Total price for the product.</summary> [Newtonsoft.Json.JsonPropertyAttribute("productTotal")] public virtual Amount ProductTotal { get; set; } /// <summary>Deprecated.</summary> [Newtonsoft.Json.JsonPropertyAttribute("promotionSummaries")] public virtual System.Collections.Generic.IList<Promotion> PromotionSummaries { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class InvoiceSummaryAdditionalChargeSummary : Google.Apis.Requests.IDirectResponseSchema { /// <summary>[required] Total additional charge for this type.</summary> [Newtonsoft.Json.JsonPropertyAttribute("totalAmount")] public virtual Amount TotalAmount { get; set; } /// <summary>[required] Type of the additional charge.</summary> [Newtonsoft.Json.JsonPropertyAttribute("type")] public virtual string Type { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class LiaAboutPageSettings : Google.Apis.Requests.IDirectResponseSchema { /// <summary>The status of the verification process for the About page.</summary> [Newtonsoft.Json.JsonPropertyAttribute("status")] public virtual string Status { get; set; } /// <summary>The URL for the About page.</summary> [Newtonsoft.Json.JsonPropertyAttribute("url")] public virtual string Url { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class LiaCountrySettings : Google.Apis.Requests.IDirectResponseSchema { /// <summary>The settings for the About page.</summary> [Newtonsoft.Json.JsonPropertyAttribute("about")] public virtual LiaAboutPageSettings About { get; set; } /// <summary>CLDR country code (e.g. "US").</summary> [Newtonsoft.Json.JsonPropertyAttribute("country")] public virtual string Country { get; set; } /// <summary>The status of the "Merchant hosted local storefront" feature.</summary> [Newtonsoft.Json.JsonPropertyAttribute("hostedLocalStorefrontActive")] public virtual System.Nullable<bool> HostedLocalStorefrontActive { get; set; } /// <summary>LIA inventory verification settings.</summary> [Newtonsoft.Json.JsonPropertyAttribute("inventory")] public virtual LiaInventorySettings Inventory { get; set; } /// <summary>LIA "On Display To Order" settings.</summary> [Newtonsoft.Json.JsonPropertyAttribute("onDisplayToOrder")] public virtual LiaOnDisplayToOrderSettings OnDisplayToOrder { get; set; } /// <summary>The POS data provider linked with this country.</summary> [Newtonsoft.Json.JsonPropertyAttribute("posDataProvider")] public virtual LiaPosDataProvider PosDataProvider { get; set; } /// <summary>The status of the "Store pickup" feature.</summary> [Newtonsoft.Json.JsonPropertyAttribute("storePickupActive")] public virtual System.Nullable<bool> StorePickupActive { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class LiaInventorySettings : Google.Apis.Requests.IDirectResponseSchema { /// <summary>The email of the contact for the inventory verification process.</summary> [Newtonsoft.Json.JsonPropertyAttribute("inventoryVerificationContactEmail")] public virtual string InventoryVerificationContactEmail { get; set; } /// <summary>The name of the contact for the inventory verification process.</summary> [Newtonsoft.Json.JsonPropertyAttribute("inventoryVerificationContactName")] public virtual string InventoryVerificationContactName { get; set; } /// <summary>The status of the verification contact.</summary> [Newtonsoft.Json.JsonPropertyAttribute("inventoryVerificationContactStatus")] public virtual string InventoryVerificationContactStatus { get; set; } /// <summary>The status of the inventory verification process.</summary> [Newtonsoft.Json.JsonPropertyAttribute("status")] public virtual string Status { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class LiaOnDisplayToOrderSettings : Google.Apis.Requests.IDirectResponseSchema { /// <summary>Shipping cost and policy URL.</summary> [Newtonsoft.Json.JsonPropertyAttribute("shippingCostPolicyUrl")] public virtual string ShippingCostPolicyUrl { get; set; } /// <summary>The status of the ?On display to order? feature.</summary> [Newtonsoft.Json.JsonPropertyAttribute("status")] public virtual string Status { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class LiaPosDataProvider : Google.Apis.Requests.IDirectResponseSchema { /// <summary>The ID of the POS data provider.</summary> [Newtonsoft.Json.JsonPropertyAttribute("posDataProviderId")] public virtual System.Nullable<ulong> PosDataProviderId { get; set; } /// <summary>The account ID by which this merchant is known to the POS data provider.</summary> [Newtonsoft.Json.JsonPropertyAttribute("posExternalAccountId")] public virtual string PosExternalAccountId { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } /// <summary>Local Inventory ads (LIA) settings. All methods except listposdataproviders require the admin /// role.</summary> public class LiaSettings : Google.Apis.Requests.IDirectResponseSchema { /// <summary>The ID of the account to which these LIA settings belong. Ignored upon update, always present in /// get request responses.</summary> [Newtonsoft.Json.JsonPropertyAttribute("accountId")] public virtual System.Nullable<ulong> AccountId { get; set; } /// <summary>The LIA settings for each country.</summary> [Newtonsoft.Json.JsonPropertyAttribute("countrySettings")] public virtual System.Collections.Generic.IList<LiaCountrySettings> CountrySettings { get; set; } /// <summary>Identifies what kind of resource this is. Value: the fixed string "content#liaSettings".</summary> [Newtonsoft.Json.JsonPropertyAttribute("kind")] public virtual string Kind { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class LiasettingsCustomBatchRequest : Google.Apis.Requests.IDirectResponseSchema { /// <summary>The request entries to be processed in the batch.</summary> [Newtonsoft.Json.JsonPropertyAttribute("entries")] public virtual System.Collections.Generic.IList<LiasettingsCustomBatchRequestEntry> Entries { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class LiasettingsCustomBatchRequestEntry : Google.Apis.Requests.IDirectResponseSchema { /// <summary>The ID of the account for which to get/update account shipping settings.</summary> [Newtonsoft.Json.JsonPropertyAttribute("accountId")] public virtual System.Nullable<ulong> AccountId { get; set; } /// <summary>An entry ID, unique within the batch request.</summary> [Newtonsoft.Json.JsonPropertyAttribute("batchId")] public virtual System.Nullable<long> BatchId { get; set; } /// <summary>Inventory validation contact email. Required only for SetInventoryValidationContact.</summary> [Newtonsoft.Json.JsonPropertyAttribute("contactEmail")] public virtual string ContactEmail { get; set; } /// <summary>Inventory validation contact name. Required only for SetInventoryValidationContact.</summary> [Newtonsoft.Json.JsonPropertyAttribute("contactName")] public virtual string ContactName { get; set; } /// <summary>The country code. Required only for RequestInventoryVerification.</summary> [Newtonsoft.Json.JsonPropertyAttribute("country")] public virtual string Country { get; set; } /// <summary>The GMB account. Required only for RequestGmbAccess.</summary> [Newtonsoft.Json.JsonPropertyAttribute("gmbEmail")] public virtual string GmbEmail { get; set; } /// <summary>The account Lia settings to update. Only defined if the method is update.</summary> [Newtonsoft.Json.JsonPropertyAttribute("liaSettings")] public virtual LiaSettings LiaSettings { get; set; } /// <summary>The ID of the managing account.</summary> [Newtonsoft.Json.JsonPropertyAttribute("merchantId")] public virtual System.Nullable<ulong> MerchantId { get; set; } [Newtonsoft.Json.JsonPropertyAttribute("method")] public virtual string Method { get; set; } /// <summary>The ID of POS data provider. Required only for SetPosProvider.</summary> [Newtonsoft.Json.JsonPropertyAttribute("posDataProviderId")] public virtual System.Nullable<ulong> PosDataProviderId { get; set; } /// <summary>The account ID by which this merchant is known to the POS provider.</summary> [Newtonsoft.Json.JsonPropertyAttribute("posExternalAccountId")] public virtual string PosExternalAccountId { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class LiasettingsCustomBatchResponse : Google.Apis.Requests.IDirectResponseSchema { /// <summary>The result of the execution of the batch requests.</summary> [Newtonsoft.Json.JsonPropertyAttribute("entries")] public virtual System.Collections.Generic.IList<LiasettingsCustomBatchResponseEntry> Entries { get; set; } /// <summary>Identifies what kind of resource this is. Value: the fixed string /// "content#liasettingsCustomBatchResponse".</summary> [Newtonsoft.Json.JsonPropertyAttribute("kind")] public virtual string Kind { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class LiasettingsCustomBatchResponseEntry : Google.Apis.Requests.IDirectResponseSchema { /// <summary>The ID of the request entry to which this entry responds.</summary> [Newtonsoft.Json.JsonPropertyAttribute("batchId")] public virtual System.Nullable<long> BatchId { get; set; } /// <summary>A list of errors defined if, and only if, the request failed.</summary> [Newtonsoft.Json.JsonPropertyAttribute("errors")] public virtual Errors Errors { get; set; } /// <summary>The the list of accessible GMB accounts.</summary> [Newtonsoft.Json.JsonPropertyAttribute("gmbAccounts")] public virtual GmbAccounts GmbAccounts { get; set; } /// <summary>Identifies what kind of resource this is. Value: the fixed string /// "content#liasettingsCustomBatchResponseEntry".</summary> [Newtonsoft.Json.JsonPropertyAttribute("kind")] public virtual string Kind { get; set; } /// <summary>The retrieved or updated Lia settings.</summary> [Newtonsoft.Json.JsonPropertyAttribute("liaSettings")] public virtual LiaSettings LiaSettings { get; set; } /// <summary>The list of POS data providers.</summary> [Newtonsoft.Json.JsonPropertyAttribute("posDataProviders")] public virtual System.Collections.Generic.IList<PosDataProviders> PosDataProviders { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class LiasettingsGetAccessibleGmbAccountsResponse : Google.Apis.Requests.IDirectResponseSchema { /// <summary>The ID of the account.</summary> [Newtonsoft.Json.JsonPropertyAttribute("accountId")] public virtual System.Nullable<ulong> AccountId { get; set; } /// <summary>A list of GMB accounts which are available to the merchant.</summary> [Newtonsoft.Json.JsonPropertyAttribute("gmbAccounts")] public virtual System.Collections.Generic.IList<GmbAccountsGmbAccount> GmbAccounts { get; set; } /// <summary>Identifies what kind of resource this is. Value: the fixed string /// "content#liasettingsGetAccessibleGmbAccountsResponse".</summary> [Newtonsoft.Json.JsonPropertyAttribute("kind")] public virtual string Kind { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class LiasettingsListPosDataProvidersResponse : Google.Apis.Requests.IDirectResponseSchema { /// <summary>Identifies what kind of resource this is. Value: the fixed string /// "content#liasettingsListPosDataProvidersResponse".</summary> [Newtonsoft.Json.JsonPropertyAttribute("kind")] public virtual string Kind { get; set; } /// <summary>The list of POS data providers for each eligible country</summary> [Newtonsoft.Json.JsonPropertyAttribute("posDataProviders")] public virtual System.Collections.Generic.IList<PosDataProviders> PosDataProviders { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class LiasettingsListResponse : Google.Apis.Requests.IDirectResponseSchema { /// <summary>Identifies what kind of resource this is. Value: the fixed string /// "content#liasettingsListResponse".</summary> [Newtonsoft.Json.JsonPropertyAttribute("kind")] public virtual string Kind { get; set; } /// <summary>The token for the retrieval of the next page of LIA settings.</summary> [Newtonsoft.Json.JsonPropertyAttribute("nextPageToken")] public virtual string NextPageToken { get; set; } [Newtonsoft.Json.JsonPropertyAttribute("resources")] public virtual System.Collections.Generic.IList<LiaSettings> Resources { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class LiasettingsRequestGmbAccessResponse : Google.Apis.Requests.IDirectResponseSchema { /// <summary>Identifies what kind of resource this is. Value: the fixed string /// "content#liasettingsRequestGmbAccessResponse".</summary> [Newtonsoft.Json.JsonPropertyAttribute("kind")] public virtual string Kind { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class LiasettingsRequestInventoryVerificationResponse : Google.Apis.Requests.IDirectResponseSchema { /// <summary>Identifies what kind of resource this is. Value: the fixed string /// "content#liasettingsRequestInventoryVerificationResponse".</summary> [Newtonsoft.Json.JsonPropertyAttribute("kind")] public virtual string Kind { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class LiasettingsSetInventoryVerificationContactResponse : Google.Apis.Requests.IDirectResponseSchema { /// <summary>Identifies what kind of resource this is. Value: the fixed string /// "content#liasettingsSetInventoryVerificationContactResponse".</summary> [Newtonsoft.Json.JsonPropertyAttribute("kind")] public virtual string Kind { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class LiasettingsSetPosDataProviderResponse : Google.Apis.Requests.IDirectResponseSchema { /// <summary>Identifies what kind of resource this is. Value: the fixed string /// "content#liasettingsSetPosDataProviderResponse".</summary> [Newtonsoft.Json.JsonPropertyAttribute("kind")] public virtual string Kind { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class LocationIdSet : Google.Apis.Requests.IDirectResponseSchema { /// <summary>A non-empty list of location IDs. They must all be of the same location type (e.g., /// state).</summary> [Newtonsoft.Json.JsonPropertyAttribute("locationIds")] public virtual System.Collections.Generic.IList<string> LocationIds { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class LoyaltyPoints : Google.Apis.Requests.IDirectResponseSchema { /// <summary>Name of loyalty points program. It is recommended to limit the name to 12 full-width characters or /// 24 Roman characters.</summary> [Newtonsoft.Json.JsonPropertyAttribute("name")] public virtual string Name { get; set; } /// <summary>The retailer's loyalty points in absolute value.</summary> [Newtonsoft.Json.JsonPropertyAttribute("pointsValue")] public virtual System.Nullable<long> PointsValue { get; set; } /// <summary>The ratio of a point when converted to currency. Google assumes currency based on Merchant Center /// settings. If ratio is left out, it defaults to 1.0.</summary> [Newtonsoft.Json.JsonPropertyAttribute("ratio")] public virtual System.Nullable<double> Ratio { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class MerchantOrderReturn : Google.Apis.Requests.IDirectResponseSchema { [Newtonsoft.Json.JsonPropertyAttribute("creationDate")] public virtual string CreationDate { get; set; } [Newtonsoft.Json.JsonPropertyAttribute("merchantOrderId")] public virtual string MerchantOrderId { get; set; } [Newtonsoft.Json.JsonPropertyAttribute("orderId")] public virtual string OrderId { get; set; } [Newtonsoft.Json.JsonPropertyAttribute("orderReturnId")] public virtual string OrderReturnId { get; set; } [Newtonsoft.Json.JsonPropertyAttribute("returnItems")] public virtual System.Collections.Generic.IList<MerchantOrderReturnItem> ReturnItems { get; set; } [Newtonsoft.Json.JsonPropertyAttribute("returnShipments")] public virtual System.Collections.Generic.IList<ReturnShipment> ReturnShipments { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class MerchantOrderReturnItem : Google.Apis.Requests.IDirectResponseSchema { [Newtonsoft.Json.JsonPropertyAttribute("customerReturnReason")] public virtual CustomerReturnReason CustomerReturnReason { get; set; } [Newtonsoft.Json.JsonPropertyAttribute("itemId")] public virtual string ItemId { get; set; } [Newtonsoft.Json.JsonPropertyAttribute("merchantReturnReason")] public virtual RefundReason MerchantReturnReason { get; set; } [Newtonsoft.Json.JsonPropertyAttribute("product")] public virtual OrderLineItemProduct Product { get; set; } [Newtonsoft.Json.JsonPropertyAttribute("returnShipmentIds")] public virtual System.Collections.Generic.IList<string> ReturnShipmentIds { get; set; } [Newtonsoft.Json.JsonPropertyAttribute("state")] public virtual string State { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } /// <summary>Order. Production access (all methods) requires the order manager role. Sandbox access does /// not.</summary> public class Order : Google.Apis.Requests.IDirectResponseSchema { /// <summary>Whether the order was acknowledged.</summary> [Newtonsoft.Json.JsonPropertyAttribute("acknowledged")] public virtual System.Nullable<bool> Acknowledged { get; set; } /// <summary>Deprecated.</summary> [Newtonsoft.Json.JsonPropertyAttribute("channelType")] public virtual string ChannelType { get; set; } /// <summary>The details of the customer who placed the order.</summary> [Newtonsoft.Json.JsonPropertyAttribute("customer")] public virtual OrderCustomer Customer { get; set; } /// <summary>Delivery details for shipments of type delivery.</summary> [Newtonsoft.Json.JsonPropertyAttribute("deliveryDetails")] public virtual OrderDeliveryDetails DeliveryDetails { get; set; } /// <summary>The REST ID of the order. Globally unique.</summary> [Newtonsoft.Json.JsonPropertyAttribute("id")] public virtual string Id { get; set; } /// <summary>Identifies what kind of resource this is. Value: the fixed string "content#order".</summary> [Newtonsoft.Json.JsonPropertyAttribute("kind")] public virtual string Kind { get; set; } /// <summary>Line items that are ordered.</summary> [Newtonsoft.Json.JsonPropertyAttribute("lineItems")] public virtual System.Collections.Generic.IList<OrderLineItem> LineItems { get; set; } [Newtonsoft.Json.JsonPropertyAttribute("merchantId")] public virtual System.Nullable<ulong> MerchantId { get; set; } /// <summary>Merchant-provided ID of the order.</summary> [Newtonsoft.Json.JsonPropertyAttribute("merchantOrderId")] public virtual string MerchantOrderId { get; set; } /// <summary>The net amount for the order. For example, if an order was originally for a grand total of $100 and /// a refund was issued for $20, the net amount will be $80.</summary> [Newtonsoft.Json.JsonPropertyAttribute("netAmount")] public virtual Price NetAmount { get; set; } /// <summary>The details of the payment method.</summary> [Newtonsoft.Json.JsonPropertyAttribute("paymentMethod")] public virtual OrderPaymentMethod PaymentMethod { get; set; } /// <summary>The status of the payment.</summary> [Newtonsoft.Json.JsonPropertyAttribute("paymentStatus")] public virtual string PaymentStatus { get; set; } /// <summary>Pickup details for shipments of type pickup.</summary> [Newtonsoft.Json.JsonPropertyAttribute("pickupDetails")] public virtual OrderPickupDetails PickupDetails { get; set; } /// <summary>The date when the order was placed, in ISO 8601 format.</summary> [Newtonsoft.Json.JsonPropertyAttribute("placedDate")] public virtual string PlacedDate { get; set; } /// <summary>The details of the merchant provided promotions applied to the order. More details about the /// program are here.</summary> [Newtonsoft.Json.JsonPropertyAttribute("promotions")] public virtual System.Collections.Generic.IList<OrderLegacyPromotion> Promotions { get; set; } /// <summary>Refunds for the order.</summary> [Newtonsoft.Json.JsonPropertyAttribute("refunds")] public virtual System.Collections.Generic.IList<OrderRefund> Refunds { get; set; } /// <summary>Shipments of the order.</summary> [Newtonsoft.Json.JsonPropertyAttribute("shipments")] public virtual System.Collections.Generic.IList<OrderShipment> Shipments { get; set; } /// <summary>The total cost of shipping for all items.</summary> [Newtonsoft.Json.JsonPropertyAttribute("shippingCost")] public virtual Price ShippingCost { get; set; } /// <summary>The tax for the total shipping cost.</summary> [Newtonsoft.Json.JsonPropertyAttribute("shippingCostTax")] public virtual Price ShippingCostTax { get; set; } /// <summary>Deprecated. Shipping details are provided with line items instead.</summary> [Newtonsoft.Json.JsonPropertyAttribute("shippingOption")] public virtual string ShippingOption { get; set; } /// <summary>The status of the order.</summary> [Newtonsoft.Json.JsonPropertyAttribute("status")] public virtual string Status { get; set; } /// <summary>The party responsible for collecting and remitting taxes.</summary> [Newtonsoft.Json.JsonPropertyAttribute("taxCollector")] public virtual string TaxCollector { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class OrderAddress : Google.Apis.Requests.IDirectResponseSchema { /// <summary>CLDR country code (e.g. "US").</summary> [Newtonsoft.Json.JsonPropertyAttribute("country")] public virtual string Country { get; set; } /// <summary>Strings representing the lines of the printed label for mailing the order, for example: John Smith /// 1600 Amphitheatre Parkway Mountain View, CA, 94043 United States</summary> [Newtonsoft.Json.JsonPropertyAttribute("fullAddress")] public virtual System.Collections.Generic.IList<string> FullAddress { get; set; } /// <summary>Whether the address is a post office box.</summary> [Newtonsoft.Json.JsonPropertyAttribute("isPostOfficeBox")] public virtual System.Nullable<bool> IsPostOfficeBox { get; set; } /// <summary>City, town or commune. May also include dependent localities or sublocalities (e.g. neighborhoods /// or suburbs).</summary> [Newtonsoft.Json.JsonPropertyAttribute("locality")] public virtual string Locality { get; set; } /// <summary>Postal Code or ZIP (e.g. "94043").</summary> [Newtonsoft.Json.JsonPropertyAttribute("postalCode")] public virtual string PostalCode { get; set; } /// <summary>Name of the recipient.</summary> [Newtonsoft.Json.JsonPropertyAttribute("recipientName")] public virtual string RecipientName { get; set; } /// <summary>Top-level administrative subdivision of the country. For example, a state like California ("CA") or /// a province like Quebec ("QC").</summary> [Newtonsoft.Json.JsonPropertyAttribute("region")] public virtual string Region { get; set; } /// <summary>Street-level part of the address.</summary> [Newtonsoft.Json.JsonPropertyAttribute("streetAddress")] public virtual System.Collections.Generic.IList<string> StreetAddress { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class OrderCancellation : Google.Apis.Requests.IDirectResponseSchema { /// <summary>The actor that created the cancellation.</summary> [Newtonsoft.Json.JsonPropertyAttribute("actor")] public virtual string Actor { get; set; } /// <summary>Date on which the cancellation has been created, in ISO 8601 format.</summary> [Newtonsoft.Json.JsonPropertyAttribute("creationDate")] public virtual string CreationDate { get; set; } /// <summary>The quantity that was canceled.</summary> [Newtonsoft.Json.JsonPropertyAttribute("quantity")] public virtual System.Nullable<long> Quantity { get; set; } /// <summary>The reason for the cancellation. Orders that are canceled with a noInventory reason will lead to /// the removal of the product from Shopping Actions until you make an update to that product. This will not /// affect your Shopping ads.</summary> [Newtonsoft.Json.JsonPropertyAttribute("reason")] public virtual string Reason { get; set; } /// <summary>The explanation of the reason.</summary> [Newtonsoft.Json.JsonPropertyAttribute("reasonText")] public virtual string ReasonText { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class OrderCustomer : Google.Apis.Requests.IDirectResponseSchema { /// <summary>Deprecated.</summary> [Newtonsoft.Json.JsonPropertyAttribute("email")] public virtual string Email { get; set; } /// <summary>Deprecated. Please use marketingRightsInfo instead.</summary> [Newtonsoft.Json.JsonPropertyAttribute("explicitMarketingPreference")] public virtual System.Nullable<bool> ExplicitMarketingPreference { get; set; } /// <summary>Full name of the customer.</summary> [Newtonsoft.Json.JsonPropertyAttribute("fullName")] public virtual string FullName { get; set; } /// <summary>Email address for the merchant to send value-added tax or invoice documentation of the order. This /// documentation is made available to the customer.</summary> [Newtonsoft.Json.JsonPropertyAttribute("invoiceReceivingEmail")] public virtual string InvoiceReceivingEmail { get; set; } /// <summary>Customer's marketing preferences. Contains the marketing opt-in information that is current at the /// time that the merchant call. User preference selections can change from one order to the next so preferences /// must be checked with every order.</summary> [Newtonsoft.Json.JsonPropertyAttribute("marketingRightsInfo")] public virtual OrderCustomerMarketingRightsInfo MarketingRightsInfo { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class OrderCustomerMarketingRightsInfo : Google.Apis.Requests.IDirectResponseSchema { /// <summary>Last known customer selection regarding marketing preferences. In certain cases this selection /// might not be known, so this field would be empty. If a customer selected granted in their most recent order, /// they can be subscribed to marketing emails. Customers who have chosen denied must not be subscribed, or must /// be unsubscribed if already opted-in.</summary> [Newtonsoft.Json.JsonPropertyAttribute("explicitMarketingPreference")] public virtual string ExplicitMarketingPreference { get; set; } /// <summary>Timestamp when last time marketing preference was updated. Could be empty, if user wasn't offered a /// selection yet.</summary> [Newtonsoft.Json.JsonPropertyAttribute("lastUpdatedTimestamp")] public virtual string LastUpdatedTimestamp { get; set; } /// <summary>Email address that can be used for marketing purposes. The field may be empty even if /// explicitMarketingPreference is 'granted'. This happens when retrieving an old order from the customer who /// deleted their account.</summary> [Newtonsoft.Json.JsonPropertyAttribute("marketingEmailAddress")] public virtual string MarketingEmailAddress { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class OrderDeliveryDetails : Google.Apis.Requests.IDirectResponseSchema { /// <summary>The delivery address</summary> [Newtonsoft.Json.JsonPropertyAttribute("address")] public virtual OrderAddress Address { get; set; } /// <summary>The phone number of the person receiving the delivery.</summary> [Newtonsoft.Json.JsonPropertyAttribute("phoneNumber")] public virtual string PhoneNumber { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class OrderLegacyPromotion : Google.Apis.Requests.IDirectResponseSchema { [Newtonsoft.Json.JsonPropertyAttribute("benefits")] public virtual System.Collections.Generic.IList<OrderLegacyPromotionBenefit> Benefits { get; set; } /// <summary>The date and time frame when the promotion is active and ready for validation review. Note that the /// promotion live time may be delayed for a few hours due to the validation review. Start date and end date are /// separated by a forward slash (/). The start date is specified by the format (YYYY-MM-DD), followed by the /// letter ?T?, the time of the day when the sale starts (in Greenwich Mean Time, GMT), followed by an /// expression of the time zone for the sale. The end date is in the same format.</summary> [Newtonsoft.Json.JsonPropertyAttribute("effectiveDates")] public virtual string EffectiveDates { get; set; } /// <summary>Optional. The text code that corresponds to the promotion when applied on the retailer?s /// website.</summary> [Newtonsoft.Json.JsonPropertyAttribute("genericRedemptionCode")] public virtual string GenericRedemptionCode { get; set; } /// <summary>The unique ID of the promotion.</summary> [Newtonsoft.Json.JsonPropertyAttribute("id")] public virtual string Id { get; set; } /// <summary>The full title of the promotion.</summary> [Newtonsoft.Json.JsonPropertyAttribute("longTitle")] public virtual string LongTitle { get; set; } /// <summary>Whether the promotion is applicable to all products or only specific products.</summary> [Newtonsoft.Json.JsonPropertyAttribute("productApplicability")] public virtual string ProductApplicability { get; set; } /// <summary>Indicates that the promotion is valid online.</summary> [Newtonsoft.Json.JsonPropertyAttribute("redemptionChannel")] public virtual string RedemptionChannel { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class OrderLegacyPromotionBenefit : Google.Apis.Requests.IDirectResponseSchema { /// <summary>The discount in the order price when the promotion is applied.</summary> [Newtonsoft.Json.JsonPropertyAttribute("discount")] public virtual Price Discount { get; set; } /// <summary>The OfferId(s) that were purchased in this order and map to this specific benefit of the /// promotion.</summary> [Newtonsoft.Json.JsonPropertyAttribute("offerIds")] public virtual System.Collections.Generic.IList<string> OfferIds { get; set; } /// <summary>Further describes the benefit of the promotion. Note that we will expand on this enumeration as we /// support new promotion sub-types.</summary> [Newtonsoft.Json.JsonPropertyAttribute("subType")] public virtual string SubType { get; set; } /// <summary>The impact on tax when the promotion is applied.</summary> [Newtonsoft.Json.JsonPropertyAttribute("taxImpact")] public virtual Price TaxImpact { get; set; } /// <summary>Describes whether the promotion applies to products (e.g. 20% off) or to shipping (e.g. Free /// Shipping).</summary> [Newtonsoft.Json.JsonPropertyAttribute("type")] public virtual string Type { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class OrderLineItem : Google.Apis.Requests.IDirectResponseSchema { /// <summary>Annotations that are attached to the line item.</summary> [Newtonsoft.Json.JsonPropertyAttribute("annotations")] public virtual System.Collections.Generic.IList<OrderMerchantProvidedAnnotation> Annotations { get; set; } /// <summary>Cancellations of the line item.</summary> [Newtonsoft.Json.JsonPropertyAttribute("cancellations")] public virtual System.Collections.Generic.IList<OrderCancellation> Cancellations { get; set; } /// <summary>The ID of the line item.</summary> [Newtonsoft.Json.JsonPropertyAttribute("id")] public virtual string Id { get; set; } /// <summary>Total price for the line item. For example, if two items for $10 are purchased, the total price /// will be $20.</summary> [Newtonsoft.Json.JsonPropertyAttribute("price")] public virtual Price Price { get; set; } /// <summary>Product data as seen by customer from the time of the order placement. Note that certain attributes /// values (e.g. title or gtin) might be reformatted and no longer match values submitted via product /// feed.</summary> [Newtonsoft.Json.JsonPropertyAttribute("product")] public virtual OrderLineItemProduct Product { get; set; } /// <summary>Number of items canceled.</summary> [Newtonsoft.Json.JsonPropertyAttribute("quantityCanceled")] public virtual System.Nullable<long> QuantityCanceled { get; set; } /// <summary>Number of items delivered.</summary> [Newtonsoft.Json.JsonPropertyAttribute("quantityDelivered")] public virtual System.Nullable<long> QuantityDelivered { get; set; } /// <summary>Number of items ordered.</summary> [Newtonsoft.Json.JsonPropertyAttribute("quantityOrdered")] public virtual System.Nullable<long> QuantityOrdered { get; set; } /// <summary>Number of items pending.</summary> [Newtonsoft.Json.JsonPropertyAttribute("quantityPending")] public virtual System.Nullable<long> QuantityPending { get; set; } /// <summary>Number of items ready for pickup.</summary> [Newtonsoft.Json.JsonPropertyAttribute("quantityReadyForPickup")] public virtual System.Nullable<long> QuantityReadyForPickup { get; set; } /// <summary>Number of items returned.</summary> [Newtonsoft.Json.JsonPropertyAttribute("quantityReturned")] public virtual System.Nullable<long> QuantityReturned { get; set; } /// <summary>Number of items shipped.</summary> [Newtonsoft.Json.JsonPropertyAttribute("quantityShipped")] public virtual System.Nullable<long> QuantityShipped { get; set; } /// <summary>Details of the return policy for the line item.</summary> [Newtonsoft.Json.JsonPropertyAttribute("returnInfo")] public virtual OrderLineItemReturnInfo ReturnInfo { get; set; } /// <summary>Returns of the line item.</summary> [Newtonsoft.Json.JsonPropertyAttribute("returns")] public virtual System.Collections.Generic.IList<OrderReturn> Returns { get; set; } /// <summary>Details of the requested shipping for the line item.</summary> [Newtonsoft.Json.JsonPropertyAttribute("shippingDetails")] public virtual OrderLineItemShippingDetails ShippingDetails { get; set; } /// <summary>Total tax amount for the line item. For example, if two items are purchased, and each have a cost /// tax of $2, the total tax amount will be $4.</summary> [Newtonsoft.Json.JsonPropertyAttribute("tax")] public virtual Price Tax { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class OrderLineItemProduct : Google.Apis.Requests.IDirectResponseSchema { /// <summary>Brand of the item.</summary> [Newtonsoft.Json.JsonPropertyAttribute("brand")] public virtual string Brand { get; set; } /// <summary>The item's channel (online or local).</summary> [Newtonsoft.Json.JsonPropertyAttribute("channel")] public virtual string Channel { get; set; } /// <summary>Condition or state of the item.</summary> [Newtonsoft.Json.JsonPropertyAttribute("condition")] public virtual string Condition { get; set; } /// <summary>The two-letter ISO 639-1 language code for the item.</summary> [Newtonsoft.Json.JsonPropertyAttribute("contentLanguage")] public virtual string ContentLanguage { get; set; } /// <summary>Associated fees at order creation time.</summary> [Newtonsoft.Json.JsonPropertyAttribute("fees")] public virtual System.Collections.Generic.IList<OrderLineItemProductFee> Fees { get; set; } /// <summary>Global Trade Item Number (GTIN) of the item.</summary> [Newtonsoft.Json.JsonPropertyAttribute("gtin")] public virtual string Gtin { get; set; } /// <summary>The REST ID of the product.</summary> [Newtonsoft.Json.JsonPropertyAttribute("id")] public virtual string Id { get; set; } /// <summary>URL of an image of the item.</summary> [Newtonsoft.Json.JsonPropertyAttribute("imageLink")] public virtual string ImageLink { get; set; } /// <summary>Shared identifier for all variants of the same product.</summary> [Newtonsoft.Json.JsonPropertyAttribute("itemGroupId")] public virtual string ItemGroupId { get; set; } /// <summary>Manufacturer Part Number (MPN) of the item.</summary> [Newtonsoft.Json.JsonPropertyAttribute("mpn")] public virtual string Mpn { get; set; } /// <summary>An identifier of the item.</summary> [Newtonsoft.Json.JsonPropertyAttribute("offerId")] public virtual string OfferId { get; set; } /// <summary>Price of the item.</summary> [Newtonsoft.Json.JsonPropertyAttribute("price")] public virtual Price Price { get; set; } /// <summary>URL to the cached image shown to the user when order was placed.</summary> [Newtonsoft.Json.JsonPropertyAttribute("shownImage")] public virtual string ShownImage { get; set; } /// <summary>The CLDR territory code of the target country of the product.</summary> [Newtonsoft.Json.JsonPropertyAttribute("targetCountry")] public virtual string TargetCountry { get; set; } /// <summary>The title of the product.</summary> [Newtonsoft.Json.JsonPropertyAttribute("title")] public virtual string Title { get; set; } /// <summary>Variant attributes for the item. These are dimensions of the product, such as color, gender, /// material, pattern, and size. You can find a comprehensive list of variant attributes here.</summary> [Newtonsoft.Json.JsonPropertyAttribute("variantAttributes")] public virtual System.Collections.Generic.IList<OrderLineItemProductVariantAttribute> VariantAttributes { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class OrderLineItemProductFee : Google.Apis.Requests.IDirectResponseSchema { /// <summary>Amount of the fee.</summary> [Newtonsoft.Json.JsonPropertyAttribute("amount")] public virtual Price Amount { get; set; } /// <summary>Name of the fee.</summary> [Newtonsoft.Json.JsonPropertyAttribute("name")] public virtual string Name { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class OrderLineItemProductVariantAttribute : Google.Apis.Requests.IDirectResponseSchema { /// <summary>The dimension of the variant.</summary> [Newtonsoft.Json.JsonPropertyAttribute("dimension")] public virtual string Dimension { get; set; } /// <summary>The value for the dimension.</summary> [Newtonsoft.Json.JsonPropertyAttribute("value")] public virtual string Value { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class OrderLineItemReturnInfo : Google.Apis.Requests.IDirectResponseSchema { /// <summary>How many days later the item can be returned.</summary> [Newtonsoft.Json.JsonPropertyAttribute("daysToReturn")] public virtual System.Nullable<int> DaysToReturn { get; set; } /// <summary>Whether the item is returnable.</summary> [Newtonsoft.Json.JsonPropertyAttribute("isReturnable")] public virtual System.Nullable<bool> IsReturnable { get; set; } /// <summary>URL of the item return policy.</summary> [Newtonsoft.Json.JsonPropertyAttribute("policyUrl")] public virtual string PolicyUrl { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class OrderLineItemShippingDetails : Google.Apis.Requests.IDirectResponseSchema { /// <summary>The delivery by date, in ISO 8601 format.</summary> [Newtonsoft.Json.JsonPropertyAttribute("deliverByDate")] public virtual string DeliverByDate { get; set; } /// <summary>Details of the shipping method.</summary> [Newtonsoft.Json.JsonPropertyAttribute("method")] public virtual OrderLineItemShippingDetailsMethod Method { get; set; } /// <summary>The ship by date, in ISO 8601 format.</summary> [Newtonsoft.Json.JsonPropertyAttribute("shipByDate")] public virtual string ShipByDate { get; set; } /// <summary>Type of shipment. Indicates whether deliveryDetails or pickupDetails is applicable for this /// shipment.</summary> [Newtonsoft.Json.JsonPropertyAttribute("type")] public virtual string Type { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class OrderLineItemShippingDetailsMethod : Google.Apis.Requests.IDirectResponseSchema { /// <summary>The carrier for the shipping. Optional. See shipments[].carrier for a list of acceptable /// values.</summary> [Newtonsoft.Json.JsonPropertyAttribute("carrier")] public virtual string Carrier { get; set; } /// <summary>Maximum transit time.</summary> [Newtonsoft.Json.JsonPropertyAttribute("maxDaysInTransit")] public virtual System.Nullable<long> MaxDaysInTransit { get; set; } /// <summary>The name of the shipping method.</summary> [Newtonsoft.Json.JsonPropertyAttribute("methodName")] public virtual string MethodName { get; set; } /// <summary>Minimum transit time.</summary> [Newtonsoft.Json.JsonPropertyAttribute("minDaysInTransit")] public virtual System.Nullable<long> MinDaysInTransit { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class OrderMerchantProvidedAnnotation : Google.Apis.Requests.IDirectResponseSchema { /// <summary>Key for additional merchant provided (as key-value pairs) annotation about the line item.</summary> [Newtonsoft.Json.JsonPropertyAttribute("key")] public virtual string Key { get; set; } /// <summary>Value for additional merchant provided (as key-value pairs) annotation about the line /// item.</summary> [Newtonsoft.Json.JsonPropertyAttribute("value")] public virtual string Value { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class OrderPaymentMethod : Google.Apis.Requests.IDirectResponseSchema { /// <summary>The billing address.</summary> [Newtonsoft.Json.JsonPropertyAttribute("billingAddress")] public virtual OrderAddress BillingAddress { get; set; } /// <summary>The card expiration month (January = 1, February = 2 etc.).</summary> [Newtonsoft.Json.JsonPropertyAttribute("expirationMonth")] public virtual System.Nullable<int> ExpirationMonth { get; set; } /// <summary>The card expiration year (4-digit, e.g. 2015).</summary> [Newtonsoft.Json.JsonPropertyAttribute("expirationYear")] public virtual System.Nullable<int> ExpirationYear { get; set; } /// <summary>The last four digits of the card number.</summary> [Newtonsoft.Json.JsonPropertyAttribute("lastFourDigits")] public virtual string LastFourDigits { get; set; } /// <summary>The billing phone number.</summary> [Newtonsoft.Json.JsonPropertyAttribute("phoneNumber")] public virtual string PhoneNumber { get; set; } /// <summary>The type of instrument. /// /// Acceptable values are: - "AMEX" - "DISCOVER" - "JCB" - "MASTERCARD" - "UNIONPAY" - "VISA" - ""</summary> [Newtonsoft.Json.JsonPropertyAttribute("type")] public virtual string Type { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class OrderPickupDetails : Google.Apis.Requests.IDirectResponseSchema { /// <summary>Address of the pickup location where the shipment should be sent. Note that recipientName in the /// address is the name of the business at the pickup location.</summary> [Newtonsoft.Json.JsonPropertyAttribute("address")] public virtual OrderAddress Address { get; set; } /// <summary>Collectors authorized to pick up shipment from the pickup location.</summary> [Newtonsoft.Json.JsonPropertyAttribute("collectors")] public virtual System.Collections.Generic.IList<OrderPickupDetailsCollector> Collectors { get; set; } /// <summary>ID of the pickup location.</summary> [Newtonsoft.Json.JsonPropertyAttribute("locationId")] public virtual string LocationId { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class OrderPickupDetailsCollector : Google.Apis.Requests.IDirectResponseSchema { /// <summary>Name of the person picking up the shipment.</summary> [Newtonsoft.Json.JsonPropertyAttribute("name")] public virtual string Name { get; set; } /// <summary>Phone number of the person picking up the shipment.</summary> [Newtonsoft.Json.JsonPropertyAttribute("phoneNumber")] public virtual string PhoneNumber { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class OrderRefund : Google.Apis.Requests.IDirectResponseSchema { /// <summary>The actor that created the refund.</summary> [Newtonsoft.Json.JsonPropertyAttribute("actor")] public virtual string Actor { get; set; } /// <summary>The amount that is refunded.</summary> [Newtonsoft.Json.JsonPropertyAttribute("amount")] public virtual Price Amount { get; set; } /// <summary>Date on which the item has been created, in ISO 8601 format.</summary> [Newtonsoft.Json.JsonPropertyAttribute("creationDate")] public virtual string CreationDate { get; set; } /// <summary>The reason for the refund.</summary> [Newtonsoft.Json.JsonPropertyAttribute("reason")] public virtual string Reason { get; set; } /// <summary>The explanation of the reason.</summary> [Newtonsoft.Json.JsonPropertyAttribute("reasonText")] public virtual string ReasonText { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } /// <summary>Order disbursement. All methods require the payment analyst role.</summary> public class OrderReportDisbursement : Google.Apis.Requests.IDirectResponseSchema { /// <summary>The disbursement amount.</summary> [Newtonsoft.Json.JsonPropertyAttribute("disbursementAmount")] public virtual Price DisbursementAmount { get; set; } /// <summary>The disbursement date, in ISO 8601 format.</summary> [Newtonsoft.Json.JsonPropertyAttribute("disbursementCreationDate")] public virtual string DisbursementCreationDate { get; set; } /// <summary>The date the disbursement was initiated, in ISO 8601 format.</summary> [Newtonsoft.Json.JsonPropertyAttribute("disbursementDate")] public virtual string DisbursementDate { get; set; } /// <summary>The ID of the disbursement.</summary> [Newtonsoft.Json.JsonPropertyAttribute("disbursementId")] public virtual string DisbursementId { get; set; } /// <summary>The ID of the managing account.</summary> [Newtonsoft.Json.JsonPropertyAttribute("merchantId")] public virtual System.Nullable<ulong> MerchantId { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class OrderReportTransaction : Google.Apis.Requests.IDirectResponseSchema { /// <summary>The disbursement amount.</summary> [Newtonsoft.Json.JsonPropertyAttribute("disbursementAmount")] public virtual Price DisbursementAmount { get; set; } /// <summary>The date the disbursement was created, in ISO 8601 format.</summary> [Newtonsoft.Json.JsonPropertyAttribute("disbursementCreationDate")] public virtual string DisbursementCreationDate { get; set; } /// <summary>The date the disbursement was initiated, in ISO 8601 format.</summary> [Newtonsoft.Json.JsonPropertyAttribute("disbursementDate")] public virtual string DisbursementDate { get; set; } /// <summary>The ID of the disbursement.</summary> [Newtonsoft.Json.JsonPropertyAttribute("disbursementId")] public virtual string DisbursementId { get; set; } /// <summary>The ID of the managing account.</summary> [Newtonsoft.Json.JsonPropertyAttribute("merchantId")] public virtual System.Nullable<ulong> MerchantId { get; set; } /// <summary>Merchant-provided ID of the order.</summary> [Newtonsoft.Json.JsonPropertyAttribute("merchantOrderId")] public virtual string MerchantOrderId { get; set; } /// <summary>The ID of the order.</summary> [Newtonsoft.Json.JsonPropertyAttribute("orderId")] public virtual string OrderId { get; set; } /// <summary>Total amount for the items.</summary> [Newtonsoft.Json.JsonPropertyAttribute("productAmount")] public virtual Amount ProductAmount { get; set; } /// <summary>Total amount with remitted tax for the items.</summary> [Newtonsoft.Json.JsonPropertyAttribute("productAmountWithRemittedTax")] public virtual ProductAmount ProductAmountWithRemittedTax { get; set; } /// <summary>The date of the transaction, in ISO 8601 format.</summary> [Newtonsoft.Json.JsonPropertyAttribute("transactionDate")] public virtual string TransactionDate { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class OrderReturn : Google.Apis.Requests.IDirectResponseSchema { /// <summary>The actor that created the refund.</summary> [Newtonsoft.Json.JsonPropertyAttribute("actor")] public virtual string Actor { get; set; } /// <summary>Date on which the item has been created, in ISO 8601 format.</summary> [Newtonsoft.Json.JsonPropertyAttribute("creationDate")] public virtual string CreationDate { get; set; } /// <summary>Quantity that is returned.</summary> [Newtonsoft.Json.JsonPropertyAttribute("quantity")] public virtual System.Nullable<long> Quantity { get; set; } /// <summary>The reason for the return.</summary> [Newtonsoft.Json.JsonPropertyAttribute("reason")] public virtual string Reason { get; set; } /// <summary>The explanation of the reason.</summary> [Newtonsoft.Json.JsonPropertyAttribute("reasonText")] public virtual string ReasonText { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class OrderShipment : Google.Apis.Requests.IDirectResponseSchema { /// <summary>The carrier handling the shipment. /// /// For supported carriers, Google includes the carrier name and tracking URL in emails to customers. For select /// supported carriers, Google also automatically updates the shipment status based on the provided shipment ID. /// Note: You can also use unsupported carriers, but emails to customers will not include the carrier name or /// tracking URL, and there will be no automatic order status updates. Supported carriers for US are: - "ups" /// (United Parcel Service) automatic status updates - "usps" (United States Postal Service) automatic status /// updates - "fedex" (FedEx) automatic status updates - "dhl" (DHL eCommerce) automatic status updates (US /// only) - "ontrac" (OnTrac) automatic status updates - "dhl express" (DHL Express) - "deliv" (Deliv) - /// "dynamex" (TForce) - "lasership" (LaserShip) - "mpx" (Military Parcel Xpress) - "uds" (United Delivery /// Service) - "efw" (Estes Forwarding Worldwide) - "jd logistics" (JD Logistics) - "yunexpress" (YunExpress) - /// "china post" (China Post) - "china ems" (China Post Express Mail Service) - "singapore post" (Singapore /// Post) - "pos malaysia" (Pos Malaysia) - "postnl" (PostNL) - "ptt" (PTT Turkish Post) - "eub" (ePacket) - /// "chukou1" (Chukou1 Logistics) Supported carriers for FR are: - "la poste" (La Poste) automatic status /// updates - "colissimo" (Colissimo by La Poste) automatic status updates - "ups" (United Parcel Service) /// automatic status updates - "chronopost" (Chronopost by La Poste) - "gls" (General Logistics Systems France) /// - "dpd" (DPD Group by GeoPost) - "bpost" (Belgian Post Group) - "colis prive" (Colis Privé) - "boxtal" /// (Boxtal) - "geodis" (GEODIS) - "tnt" (TNT)</summary> [Newtonsoft.Json.JsonPropertyAttribute("carrier")] public virtual string Carrier { get; set; } /// <summary>Date on which the shipment has been created, in ISO 8601 format.</summary> [Newtonsoft.Json.JsonPropertyAttribute("creationDate")] public virtual string CreationDate { get; set; } /// <summary>Date on which the shipment has been delivered, in ISO 8601 format. Present only if status is /// delivered</summary> [Newtonsoft.Json.JsonPropertyAttribute("deliveryDate")] public virtual string DeliveryDate { get; set; } /// <summary>The ID of the shipment.</summary> [Newtonsoft.Json.JsonPropertyAttribute("id")] public virtual string Id { get; set; } /// <summary>The line items that are shipped.</summary> [Newtonsoft.Json.JsonPropertyAttribute("lineItems")] public virtual System.Collections.Generic.IList<OrderShipmentLineItemShipment> LineItems { get; set; } /// <summary>The status of the shipment.</summary> [Newtonsoft.Json.JsonPropertyAttribute("status")] public virtual string Status { get; set; } /// <summary>The tracking ID for the shipment.</summary> [Newtonsoft.Json.JsonPropertyAttribute("trackingId")] public virtual string TrackingId { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class OrderShipmentLineItemShipment : Google.Apis.Requests.IDirectResponseSchema { /// <summary>The ID of the line item that is shipped. This value is assigned by Google when an order is created. /// Either lineItemId or productId is required.</summary> [Newtonsoft.Json.JsonPropertyAttribute("lineItemId")] public virtual string LineItemId { get; set; } /// <summary>The ID of the product to ship. This is the REST ID used in the products service. Either lineItemId /// or productId is required.</summary> [Newtonsoft.Json.JsonPropertyAttribute("productId")] public virtual string ProductId { get; set; } /// <summary>The quantity that is shipped.</summary> [Newtonsoft.Json.JsonPropertyAttribute("quantity")] public virtual System.Nullable<long> Quantity { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class OrderinvoicesCreateChargeInvoiceRequest : Google.Apis.Requests.IDirectResponseSchema { /// <summary>[required] The ID of the invoice.</summary> [Newtonsoft.Json.JsonPropertyAttribute("invoiceId")] public virtual string InvoiceId { get; set; } /// <summary>[required] Invoice summary.</summary> [Newtonsoft.Json.JsonPropertyAttribute("invoiceSummary")] public virtual InvoiceSummary InvoiceSummary { get; set; } /// <summary>[required] Invoice details per line item.</summary> [Newtonsoft.Json.JsonPropertyAttribute("lineItemInvoices")] public virtual System.Collections.Generic.IList<ShipmentInvoiceLineItemInvoice> LineItemInvoices { get; set; } /// <summary>[required] The ID of the operation, unique across all operations for a given order.</summary> [Newtonsoft.Json.JsonPropertyAttribute("operationId")] public virtual string OperationId { get; set; } /// <summary>[required] ID of the shipment group. It is assigned by the merchant in the shipLineItems method and /// is used to group multiple line items that have the same kind of shipping charges.</summary> [Newtonsoft.Json.JsonPropertyAttribute("shipmentGroupId")] public virtual string ShipmentGroupId { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class OrderinvoicesCreateChargeInvoiceResponse : Google.Apis.Requests.IDirectResponseSchema { /// <summary>The status of the execution.</summary> [Newtonsoft.Json.JsonPropertyAttribute("executionStatus")] public virtual string ExecutionStatus { get; set; } /// <summary>Identifies what kind of resource this is. Value: the fixed string /// "content#orderinvoicesCreateChargeInvoiceResponse".</summary> [Newtonsoft.Json.JsonPropertyAttribute("kind")] public virtual string Kind { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class OrderinvoicesCreateRefundInvoiceRequest : Google.Apis.Requests.IDirectResponseSchema { /// <summary>[required] The ID of the invoice.</summary> [Newtonsoft.Json.JsonPropertyAttribute("invoiceId")] public virtual string InvoiceId { get; set; } /// <summary>[required] The ID of the operation, unique across all operations for a given order.</summary> [Newtonsoft.Json.JsonPropertyAttribute("operationId")] public virtual string OperationId { get; set; } /// <summary>Option to create a refund-only invoice. Exactly one of refundOnlyOption or returnOption must be /// provided.</summary> [Newtonsoft.Json.JsonPropertyAttribute("refundOnlyOption")] public virtual OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceRefundOption RefundOnlyOption { get; set; } /// <summary>Option to create an invoice for a refund and mark all items within the invoice as returned. Exactly /// one of refundOnlyOption or returnOption must be provided.</summary> [Newtonsoft.Json.JsonPropertyAttribute("returnOption")] public virtual OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceReturnOption ReturnOption { get; set; } /// <summary>Invoice details for different shipment groups.</summary> [Newtonsoft.Json.JsonPropertyAttribute("shipmentInvoices")] public virtual System.Collections.Generic.IList<ShipmentInvoice> ShipmentInvoices { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class OrderinvoicesCreateRefundInvoiceResponse : Google.Apis.Requests.IDirectResponseSchema { /// <summary>The status of the execution.</summary> [Newtonsoft.Json.JsonPropertyAttribute("executionStatus")] public virtual string ExecutionStatus { get; set; } /// <summary>Identifies what kind of resource this is. Value: the fixed string /// "content#orderinvoicesCreateRefundInvoiceResponse".</summary> [Newtonsoft.Json.JsonPropertyAttribute("kind")] public virtual string Kind { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceRefundOption : Google.Apis.Requests.IDirectResponseSchema { /// <summary>Optional description of the refund reason.</summary> [Newtonsoft.Json.JsonPropertyAttribute("description")] public virtual string Description { get; set; } /// <summary>[required] Reason for the refund.</summary> [Newtonsoft.Json.JsonPropertyAttribute("reason")] public virtual string Reason { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceReturnOption : Google.Apis.Requests.IDirectResponseSchema { /// <summary>Optional description of the return reason.</summary> [Newtonsoft.Json.JsonPropertyAttribute("description")] public virtual string Description { get; set; } /// <summary>[required] Reason for the return.</summary> [Newtonsoft.Json.JsonPropertyAttribute("reason")] public virtual string Reason { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class OrderreportsListDisbursementsResponse : Google.Apis.Requests.IDirectResponseSchema { /// <summary>The list of disbursements.</summary> [Newtonsoft.Json.JsonPropertyAttribute("disbursements")] public virtual System.Collections.Generic.IList<OrderReportDisbursement> Disbursements { get; set; } /// <summary>Identifies what kind of resource this is. Value: the fixed string /// "content#orderreportsListDisbursementsResponse".</summary> [Newtonsoft.Json.JsonPropertyAttribute("kind")] public virtual string Kind { get; set; } /// <summary>The token for the retrieval of the next page of disbursements.</summary> [Newtonsoft.Json.JsonPropertyAttribute("nextPageToken")] public virtual string NextPageToken { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class OrderreportsListTransactionsResponse : Google.Apis.Requests.IDirectResponseSchema { /// <summary>Identifies what kind of resource this is. Value: the fixed string /// "content#orderreportsListTransactionsResponse".</summary> [Newtonsoft.Json.JsonPropertyAttribute("kind")] public virtual string Kind { get; set; } /// <summary>The token for the retrieval of the next page of transactions.</summary> [Newtonsoft.Json.JsonPropertyAttribute("nextPageToken")] public virtual string NextPageToken { get; set; } /// <summary>The list of transactions.</summary> [Newtonsoft.Json.JsonPropertyAttribute("transactions")] public virtual System.Collections.Generic.IList<OrderReportTransaction> Transactions { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class OrderreturnsListResponse : Google.Apis.Requests.IDirectResponseSchema { /// <summary>Identifies what kind of resource this is. Value: the fixed string /// "content#orderreturnsListResponse".</summary> [Newtonsoft.Json.JsonPropertyAttribute("kind")] public virtual string Kind { get; set; } /// <summary>The token for the retrieval of the next page of returns.</summary> [Newtonsoft.Json.JsonPropertyAttribute("nextPageToken")] public virtual string NextPageToken { get; set; } [Newtonsoft.Json.JsonPropertyAttribute("resources")] public virtual System.Collections.Generic.IList<MerchantOrderReturn> Resources { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class OrdersAcknowledgeRequest : Google.Apis.Requests.IDirectResponseSchema { /// <summary>The ID of the operation. Unique across all operations for a given order.</summary> [Newtonsoft.Json.JsonPropertyAttribute("operationId")] public virtual string OperationId { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class OrdersAcknowledgeResponse : Google.Apis.Requests.IDirectResponseSchema { /// <summary>The status of the execution.</summary> [Newtonsoft.Json.JsonPropertyAttribute("executionStatus")] public virtual string ExecutionStatus { get; set; } /// <summary>Identifies what kind of resource this is. Value: the fixed string /// "content#ordersAcknowledgeResponse".</summary> [Newtonsoft.Json.JsonPropertyAttribute("kind")] public virtual string Kind { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class OrdersAdvanceTestOrderResponse : Google.Apis.Requests.IDirectResponseSchema { /// <summary>Identifies what kind of resource this is. Value: the fixed string /// "content#ordersAdvanceTestOrderResponse".</summary> [Newtonsoft.Json.JsonPropertyAttribute("kind")] public virtual string Kind { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class OrdersCancelLineItemRequest : Google.Apis.Requests.IDirectResponseSchema { /// <summary>Deprecated. Please use amountPretax and amountTax instead.</summary> [Newtonsoft.Json.JsonPropertyAttribute("amount")] public virtual Price Amount { get; set; } /// <summary>Amount to refund for the cancelation. Optional. If not set, Google will calculate the default based /// on the price and tax of the items involved. The amount must not be larger than the net amount left on the /// order.</summary> [Newtonsoft.Json.JsonPropertyAttribute("amountPretax")] public virtual Price AmountPretax { get; set; } /// <summary>Tax amount that corresponds to cancellation amount in amountPretax. Optional, but if filled, then /// amountPretax must be set. Calculated automatically if not provided.</summary> [Newtonsoft.Json.JsonPropertyAttribute("amountTax")] public virtual Price AmountTax { get; set; } /// <summary>The ID of the line item to cancel. Either lineItemId or productId is required.</summary> [Newtonsoft.Json.JsonPropertyAttribute("lineItemId")] public virtual string LineItemId { get; set; } /// <summary>The ID of the operation. Unique across all operations for a given order.</summary> [Newtonsoft.Json.JsonPropertyAttribute("operationId")] public virtual string OperationId { get; set; } /// <summary>The ID of the product to cancel. This is the REST ID used in the products service. Either /// lineItemId or productId is required.</summary> [Newtonsoft.Json.JsonPropertyAttribute("productId")] public virtual string ProductId { get; set; } /// <summary>The quantity to cancel.</summary> [Newtonsoft.Json.JsonPropertyAttribute("quantity")] public virtual System.Nullable<long> Quantity { get; set; } /// <summary>The reason for the cancellation.</summary> [Newtonsoft.Json.JsonPropertyAttribute("reason")] public virtual string Reason { get; set; } /// <summary>The explanation of the reason.</summary> [Newtonsoft.Json.JsonPropertyAttribute("reasonText")] public virtual string ReasonText { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class OrdersCancelLineItemResponse : Google.Apis.Requests.IDirectResponseSchema { /// <summary>The status of the execution.</summary> [Newtonsoft.Json.JsonPropertyAttribute("executionStatus")] public virtual string ExecutionStatus { get; set; } /// <summary>Identifies what kind of resource this is. Value: the fixed string /// "content#ordersCancelLineItemResponse".</summary> [Newtonsoft.Json.JsonPropertyAttribute("kind")] public virtual string Kind { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class OrdersCancelRequest : Google.Apis.Requests.IDirectResponseSchema { /// <summary>The ID of the operation. Unique across all operations for a given order.</summary> [Newtonsoft.Json.JsonPropertyAttribute("operationId")] public virtual string OperationId { get; set; } /// <summary>The reason for the cancellation.</summary> [Newtonsoft.Json.JsonPropertyAttribute("reason")] public virtual string Reason { get; set; } /// <summary>The explanation of the reason.</summary> [Newtonsoft.Json.JsonPropertyAttribute("reasonText")] public virtual string ReasonText { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class OrdersCancelResponse : Google.Apis.Requests.IDirectResponseSchema { /// <summary>The status of the execution.</summary> [Newtonsoft.Json.JsonPropertyAttribute("executionStatus")] public virtual string ExecutionStatus { get; set; } /// <summary>Identifies what kind of resource this is. Value: the fixed string /// "content#ordersCancelResponse".</summary> [Newtonsoft.Json.JsonPropertyAttribute("kind")] public virtual string Kind { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class OrdersCancelTestOrderByCustomerRequest : Google.Apis.Requests.IDirectResponseSchema { /// <summary>The reason for the cancellation.</summary> [Newtonsoft.Json.JsonPropertyAttribute("reason")] public virtual string Reason { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class OrdersCancelTestOrderByCustomerResponse : Google.Apis.Requests.IDirectResponseSchema { /// <summary>Identifies what kind of resource this is. Value: the fixed string /// "content#ordersCancelTestOrderByCustomerResponse".</summary> [Newtonsoft.Json.JsonPropertyAttribute("kind")] public virtual string Kind { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class OrdersCreateTestOrderRequest : Google.Apis.Requests.IDirectResponseSchema { /// <summary>The CLDR territory code of the country of the test order to create. Affects the currency and /// addresses of orders created via template_name, or the addresses of orders created via test_order. /// /// Acceptable values are: - "US" - "FR" Defaults to US.</summary> [Newtonsoft.Json.JsonPropertyAttribute("country")] public virtual string Country { get; set; } /// <summary>The test order template to use. Specify as an alternative to testOrder as a shortcut for retrieving /// a template and then creating an order using that template.</summary> [Newtonsoft.Json.JsonPropertyAttribute("templateName")] public virtual string TemplateName { get; set; } /// <summary>The test order to create.</summary> [Newtonsoft.Json.JsonPropertyAttribute("testOrder")] public virtual TestOrder TestOrder { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class OrdersCreateTestOrderResponse : Google.Apis.Requests.IDirectResponseSchema { /// <summary>Identifies what kind of resource this is. Value: the fixed string /// "content#ordersCreateTestOrderResponse".</summary> [Newtonsoft.Json.JsonPropertyAttribute("kind")] public virtual string Kind { get; set; } /// <summary>The ID of the newly created test order.</summary> [Newtonsoft.Json.JsonPropertyAttribute("orderId")] public virtual string OrderId { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class OrdersCreateTestReturnRequest : Google.Apis.Requests.IDirectResponseSchema { /// <summary>Returned items.</summary> [Newtonsoft.Json.JsonPropertyAttribute("items")] public virtual System.Collections.Generic.IList<OrdersCustomBatchRequestEntryCreateTestReturnReturnItem> Items { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class OrdersCreateTestReturnResponse : Google.Apis.Requests.IDirectResponseSchema { /// <summary>Identifies what kind of resource this is. Value: the fixed string /// "content#ordersCreateTestReturnResponse".</summary> [Newtonsoft.Json.JsonPropertyAttribute("kind")] public virtual string Kind { get; set; } /// <summary>The ID of the newly created test order return.</summary> [Newtonsoft.Json.JsonPropertyAttribute("returnId")] public virtual string ReturnId { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class OrdersCustomBatchRequest : Google.Apis.Requests.IDirectResponseSchema { /// <summary>The request entries to be processed in the batch.</summary> [Newtonsoft.Json.JsonPropertyAttribute("entries")] public virtual System.Collections.Generic.IList<OrdersCustomBatchRequestEntry> Entries { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class OrdersCustomBatchRequestEntry : Google.Apis.Requests.IDirectResponseSchema { /// <summary>An entry ID, unique within the batch request.</summary> [Newtonsoft.Json.JsonPropertyAttribute("batchId")] public virtual System.Nullable<long> BatchId { get; set; } /// <summary>Required for cancel method.</summary> [Newtonsoft.Json.JsonPropertyAttribute("cancel")] public virtual OrdersCustomBatchRequestEntryCancel Cancel { get; set; } /// <summary>Required for cancelLineItem method.</summary> [Newtonsoft.Json.JsonPropertyAttribute("cancelLineItem")] public virtual OrdersCustomBatchRequestEntryCancelLineItem CancelLineItem { get; set; } /// <summary>Required for inStoreReturnLineItem method.</summary> [Newtonsoft.Json.JsonPropertyAttribute("inStoreRefundLineItem")] public virtual OrdersCustomBatchRequestEntryInStoreRefundLineItem InStoreRefundLineItem { get; set; } /// <summary>The ID of the managing account.</summary> [Newtonsoft.Json.JsonPropertyAttribute("merchantId")] public virtual System.Nullable<ulong> MerchantId { get; set; } /// <summary>The merchant order ID. Required for updateMerchantOrderId and getByMerchantOrderId /// methods.</summary> [Newtonsoft.Json.JsonPropertyAttribute("merchantOrderId")] public virtual string MerchantOrderId { get; set; } /// <summary>The method to apply.</summary> [Newtonsoft.Json.JsonPropertyAttribute("method")] public virtual string Method { get; set; } /// <summary>The ID of the operation. Unique across all operations for a given order. Required for all methods /// beside get and getByMerchantOrderId.</summary> [Newtonsoft.Json.JsonPropertyAttribute("operationId")] public virtual string OperationId { get; set; } /// <summary>The ID of the order. Required for all methods beside getByMerchantOrderId.</summary> [Newtonsoft.Json.JsonPropertyAttribute("orderId")] public virtual string OrderId { get; set; } /// <summary>Required for refund method.</summary> [Newtonsoft.Json.JsonPropertyAttribute("refund")] public virtual OrdersCustomBatchRequestEntryRefund Refund { get; set; } /// <summary>Required for rejectReturnLineItem method.</summary> [Newtonsoft.Json.JsonPropertyAttribute("rejectReturnLineItem")] public virtual OrdersCustomBatchRequestEntryRejectReturnLineItem RejectReturnLineItem { get; set; } /// <summary>Required for returnLineItem method.</summary> [Newtonsoft.Json.JsonPropertyAttribute("returnLineItem")] public virtual OrdersCustomBatchRequestEntryReturnLineItem ReturnLineItem { get; set; } /// <summary>Required for returnRefundLineItem method.</summary> [Newtonsoft.Json.JsonPropertyAttribute("returnRefundLineItem")] public virtual OrdersCustomBatchRequestEntryReturnRefundLineItem ReturnRefundLineItem { get; set; } /// <summary>Required for setLineItemMetadata method.</summary> [Newtonsoft.Json.JsonPropertyAttribute("setLineItemMetadata")] public virtual OrdersCustomBatchRequestEntrySetLineItemMetadata SetLineItemMetadata { get; set; } /// <summary>Required for shipLineItems method.</summary> [Newtonsoft.Json.JsonPropertyAttribute("shipLineItems")] public virtual OrdersCustomBatchRequestEntryShipLineItems ShipLineItems { get; set; } /// <summary>Required for updateLineItemShippingDate method.</summary> [Newtonsoft.Json.JsonPropertyAttribute("updateLineItemShippingDetails")] public virtual OrdersCustomBatchRequestEntryUpdateLineItemShippingDetails UpdateLineItemShippingDetails { get; set; } /// <summary>Required for updateShipment method.</summary> [Newtonsoft.Json.JsonPropertyAttribute("updateShipment")] public virtual OrdersCustomBatchRequestEntryUpdateShipment UpdateShipment { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class OrdersCustomBatchRequestEntryCancel : Google.Apis.Requests.IDirectResponseSchema { /// <summary>The reason for the cancellation.</summary> [Newtonsoft.Json.JsonPropertyAttribute("reason")] public virtual string Reason { get; set; } /// <summary>The explanation of the reason.</summary> [Newtonsoft.Json.JsonPropertyAttribute("reasonText")] public virtual string ReasonText { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class OrdersCustomBatchRequestEntryCancelLineItem : Google.Apis.Requests.IDirectResponseSchema { /// <summary>Deprecated. Please use amountPretax and amountTax instead.</summary> [Newtonsoft.Json.JsonPropertyAttribute("amount")] public virtual Price Amount { get; set; } /// <summary>Amount to refund for the cancelation. Optional. If not set, Google will calculate the default based /// on the price and tax of the items involved. The amount must not be larger than the net amount left on the /// order.</summary> [Newtonsoft.Json.JsonPropertyAttribute("amountPretax")] public virtual Price AmountPretax { get; set; } /// <summary>Tax amount that corresponds to cancellation amount in amountPretax. Optional, but if filled, then /// amountPretax must be set. Calculated automatically if not provided.</summary> [Newtonsoft.Json.JsonPropertyAttribute("amountTax")] public virtual Price AmountTax { get; set; } /// <summary>The ID of the line item to cancel. Either lineItemId or productId is required.</summary> [Newtonsoft.Json.JsonPropertyAttribute("lineItemId")] public virtual string LineItemId { get; set; } /// <summary>The ID of the product to cancel. This is the REST ID used in the products service. Either /// lineItemId or productId is required.</summary> [Newtonsoft.Json.JsonPropertyAttribute("productId")] public virtual string ProductId { get; set; } /// <summary>The quantity to cancel.</summary> [Newtonsoft.Json.JsonPropertyAttribute("quantity")] public virtual System.Nullable<long> Quantity { get; set; } /// <summary>The reason for the cancellation.</summary> [Newtonsoft.Json.JsonPropertyAttribute("reason")] public virtual string Reason { get; set; } /// <summary>The explanation of the reason.</summary> [Newtonsoft.Json.JsonPropertyAttribute("reasonText")] public virtual string ReasonText { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class OrdersCustomBatchRequestEntryCreateTestReturnReturnItem : Google.Apis.Requests.IDirectResponseSchema { /// <summary>The ID of the line item to return.</summary> [Newtonsoft.Json.JsonPropertyAttribute("lineItemId")] public virtual string LineItemId { get; set; } /// <summary>Quantity that is returned.</summary> [Newtonsoft.Json.JsonPropertyAttribute("quantity")] public virtual System.Nullable<long> Quantity { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class OrdersCustomBatchRequestEntryInStoreRefundLineItem : Google.Apis.Requests.IDirectResponseSchema { /// <summary>The amount that is refunded. Required.</summary> [Newtonsoft.Json.JsonPropertyAttribute("amountPretax")] public virtual Price AmountPretax { get; set; } /// <summary>Tax amount that correspond to refund amount in amountPretax. Required.</summary> [Newtonsoft.Json.JsonPropertyAttribute("amountTax")] public virtual Price AmountTax { get; set; } /// <summary>The ID of the line item to return. Either lineItemId or productId is required.</summary> [Newtonsoft.Json.JsonPropertyAttribute("lineItemId")] public virtual string LineItemId { get; set; } /// <summary>The ID of the product to return. This is the REST ID used in the products service. Either /// lineItemId or productId is required.</summary> [Newtonsoft.Json.JsonPropertyAttribute("productId")] public virtual string ProductId { get; set; } /// <summary>The quantity to return and refund.</summary> [Newtonsoft.Json.JsonPropertyAttribute("quantity")] public virtual System.Nullable<long> Quantity { get; set; } /// <summary>The reason for the return.</summary> [Newtonsoft.Json.JsonPropertyAttribute("reason")] public virtual string Reason { get; set; } /// <summary>The explanation of the reason.</summary> [Newtonsoft.Json.JsonPropertyAttribute("reasonText")] public virtual string ReasonText { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class OrdersCustomBatchRequestEntryRefund : Google.Apis.Requests.IDirectResponseSchema { /// <summary>Deprecated. Please use amountPretax and amountTax instead.</summary> [Newtonsoft.Json.JsonPropertyAttribute("amount")] public virtual Price Amount { get; set; } /// <summary>The amount that is refunded. Either amount or amountPretax should be filled.</summary> [Newtonsoft.Json.JsonPropertyAttribute("amountPretax")] public virtual Price AmountPretax { get; set; } /// <summary>Tax amount that corresponds to refund amount in amountPretax. Optional, but if filled, amountPretax /// must be set. Calculated automatically if not provided.</summary> [Newtonsoft.Json.JsonPropertyAttribute("amountTax")] public virtual Price AmountTax { get; set; } /// <summary>The reason for the refund.</summary> [Newtonsoft.Json.JsonPropertyAttribute("reason")] public virtual string Reason { get; set; } /// <summary>The explanation of the reason.</summary> [Newtonsoft.Json.JsonPropertyAttribute("reasonText")] public virtual string ReasonText { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class OrdersCustomBatchRequestEntryRejectReturnLineItem : Google.Apis.Requests.IDirectResponseSchema { /// <summary>The ID of the line item to return. Either lineItemId or productId is required.</summary> [Newtonsoft.Json.JsonPropertyAttribute("lineItemId")] public virtual string LineItemId { get; set; } /// <summary>The ID of the product to return. This is the REST ID used in the products service. Either /// lineItemId or productId is required.</summary> [Newtonsoft.Json.JsonPropertyAttribute("productId")] public virtual string ProductId { get; set; } /// <summary>The quantity to return and refund.</summary> [Newtonsoft.Json.JsonPropertyAttribute("quantity")] public virtual System.Nullable<long> Quantity { get; set; } /// <summary>The reason for the return.</summary> [Newtonsoft.Json.JsonPropertyAttribute("reason")] public virtual string Reason { get; set; } /// <summary>The explanation of the reason.</summary> [Newtonsoft.Json.JsonPropertyAttribute("reasonText")] public virtual string ReasonText { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class OrdersCustomBatchRequestEntryReturnLineItem : Google.Apis.Requests.IDirectResponseSchema { /// <summary>The ID of the line item to return. Either lineItemId or productId is required.</summary> [Newtonsoft.Json.JsonPropertyAttribute("lineItemId")] public virtual string LineItemId { get; set; } /// <summary>The ID of the product to return. This is the REST ID used in the products service. Either /// lineItemId or productId is required.</summary> [Newtonsoft.Json.JsonPropertyAttribute("productId")] public virtual string ProductId { get; set; } /// <summary>The quantity to return.</summary> [Newtonsoft.Json.JsonPropertyAttribute("quantity")] public virtual System.Nullable<long> Quantity { get; set; } /// <summary>The reason for the return.</summary> [Newtonsoft.Json.JsonPropertyAttribute("reason")] public virtual string Reason { get; set; } /// <summary>The explanation of the reason.</summary> [Newtonsoft.Json.JsonPropertyAttribute("reasonText")] public virtual string ReasonText { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class OrdersCustomBatchRequestEntryReturnRefundLineItem : Google.Apis.Requests.IDirectResponseSchema { /// <summary>The amount that is refunded. If omitted, refundless return is assumed (same as calling /// returnLineItem method).</summary> [Newtonsoft.Json.JsonPropertyAttribute("amountPretax")] public virtual Price AmountPretax { get; set; } /// <summary>Tax amount that corresponds to refund amount in amountPretax. Optional, but if filled, then /// amountPretax must be set. Calculated automatically if not provided.</summary> [Newtonsoft.Json.JsonPropertyAttribute("amountTax")] public virtual Price AmountTax { get; set; } /// <summary>The ID of the line item to return. Either lineItemId or productId is required.</summary> [Newtonsoft.Json.JsonPropertyAttribute("lineItemId")] public virtual string LineItemId { get; set; } /// <summary>The ID of the product to return. This is the REST ID used in the products service. Either /// lineItemId or productId is required.</summary> [Newtonsoft.Json.JsonPropertyAttribute("productId")] public virtual string ProductId { get; set; } /// <summary>The quantity to return and refund.</summary> [Newtonsoft.Json.JsonPropertyAttribute("quantity")] public virtual System.Nullable<long> Quantity { get; set; } /// <summary>The reason for the return.</summary> [Newtonsoft.Json.JsonPropertyAttribute("reason")] public virtual string Reason { get; set; } /// <summary>The explanation of the reason.</summary> [Newtonsoft.Json.JsonPropertyAttribute("reasonText")] public virtual string ReasonText { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class OrdersCustomBatchRequestEntrySetLineItemMetadata : Google.Apis.Requests.IDirectResponseSchema { [Newtonsoft.Json.JsonPropertyAttribute("annotations")] public virtual System.Collections.Generic.IList<OrderMerchantProvidedAnnotation> Annotations { get; set; } /// <summary>The ID of the line item to set metadata. Either lineItemId or productId is required.</summary> [Newtonsoft.Json.JsonPropertyAttribute("lineItemId")] public virtual string LineItemId { get; set; } /// <summary>The ID of the product to set metadata. This is the REST ID used in the products service. Either /// lineItemId or productId is required.</summary> [Newtonsoft.Json.JsonPropertyAttribute("productId")] public virtual string ProductId { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class OrdersCustomBatchRequestEntryShipLineItems : Google.Apis.Requests.IDirectResponseSchema { /// <summary>Deprecated. Please use shipmentInfo instead. The carrier handling the shipment. See /// shipments[].carrier in the Orders resource representation for a list of acceptable values.</summary> [Newtonsoft.Json.JsonPropertyAttribute("carrier")] public virtual string Carrier { get; set; } /// <summary>Line items to ship.</summary> [Newtonsoft.Json.JsonPropertyAttribute("lineItems")] public virtual System.Collections.Generic.IList<OrderShipmentLineItemShipment> LineItems { get; set; } /// <summary>ID of the shipment group. Required for orders that use the orderinvoices service.</summary> [Newtonsoft.Json.JsonPropertyAttribute("shipmentGroupId")] public virtual string ShipmentGroupId { get; set; } /// <summary>Deprecated. Please use shipmentInfo instead. The ID of the shipment.</summary> [Newtonsoft.Json.JsonPropertyAttribute("shipmentId")] public virtual string ShipmentId { get; set; } /// <summary>Shipment information. This field is repeated because a single line item can be shipped in several /// packages (and have several tracking IDs).</summary> [Newtonsoft.Json.JsonPropertyAttribute("shipmentInfos")] public virtual System.Collections.Generic.IList<OrdersCustomBatchRequestEntryShipLineItemsShipmentInfo> ShipmentInfos { get; set; } /// <summary>Deprecated. Please use shipmentInfo instead. The tracking ID for the shipment.</summary> [Newtonsoft.Json.JsonPropertyAttribute("trackingId")] public virtual string TrackingId { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class OrdersCustomBatchRequestEntryShipLineItemsShipmentInfo : Google.Apis.Requests.IDirectResponseSchema { /// <summary>The carrier handling the shipment. See shipments[].carrier in the Orders resource representation /// for a list of acceptable values.</summary> [Newtonsoft.Json.JsonPropertyAttribute("carrier")] public virtual string Carrier { get; set; } /// <summary>The ID of the shipment. This is assigned by the merchant and is unique to each shipment.</summary> [Newtonsoft.Json.JsonPropertyAttribute("shipmentId")] public virtual string ShipmentId { get; set; } /// <summary>The tracking ID for the shipment.</summary> [Newtonsoft.Json.JsonPropertyAttribute("trackingId")] public virtual string TrackingId { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class OrdersCustomBatchRequestEntryUpdateLineItemShippingDetails : Google.Apis.Requests.IDirectResponseSchema { /// <summary>Updated delivery by date, in ISO 8601 format. If not specified only ship by date is updated. /// /// Provided date should be within 1 year timeframe and can not be a date in the past.</summary> [Newtonsoft.Json.JsonPropertyAttribute("deliverByDate")] public virtual string DeliverByDate { get; set; } /// <summary>The ID of the line item to set metadata. Either lineItemId or productId is required.</summary> [Newtonsoft.Json.JsonPropertyAttribute("lineItemId")] public virtual string LineItemId { get; set; } /// <summary>The ID of the product to set metadata. This is the REST ID used in the products service. Either /// lineItemId or productId is required.</summary> [Newtonsoft.Json.JsonPropertyAttribute("productId")] public virtual string ProductId { get; set; } /// <summary>Updated ship by date, in ISO 8601 format. If not specified only deliver by date is updated. /// /// Provided date should be within 1 year timeframe and can not be a date in the past.</summary> [Newtonsoft.Json.JsonPropertyAttribute("shipByDate")] public virtual string ShipByDate { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class OrdersCustomBatchRequestEntryUpdateShipment : Google.Apis.Requests.IDirectResponseSchema { /// <summary>The carrier handling the shipment. Not updated if missing. See shipments[].carrier in the Orders /// resource representation for a list of acceptable values.</summary> [Newtonsoft.Json.JsonPropertyAttribute("carrier")] public virtual string Carrier { get; set; } /// <summary>Date on which the shipment has been delivered, in ISO 8601 format. Optional and can be provided /// only if status is delivered.</summary> [Newtonsoft.Json.JsonPropertyAttribute("deliveryDate")] public virtual string DeliveryDate { get; set; } /// <summary>The ID of the shipment.</summary> [Newtonsoft.Json.JsonPropertyAttribute("shipmentId")] public virtual string ShipmentId { get; set; } /// <summary>New status for the shipment. Not updated if missing.</summary> [Newtonsoft.Json.JsonPropertyAttribute("status")] public virtual string Status { get; set; } /// <summary>The tracking ID for the shipment. Not updated if missing.</summary> [Newtonsoft.Json.JsonPropertyAttribute("trackingId")] public virtual string TrackingId { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class OrdersCustomBatchResponse : Google.Apis.Requests.IDirectResponseSchema { /// <summary>The result of the execution of the batch requests.</summary> [Newtonsoft.Json.JsonPropertyAttribute("entries")] public virtual System.Collections.Generic.IList<OrdersCustomBatchResponseEntry> Entries { get; set; } /// <summary>Identifies what kind of resource this is. Value: the fixed string /// "content#ordersCustomBatchResponse".</summary> [Newtonsoft.Json.JsonPropertyAttribute("kind")] public virtual string Kind { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class OrdersCustomBatchResponseEntry : Google.Apis.Requests.IDirectResponseSchema { /// <summary>The ID of the request entry this entry responds to.</summary> [Newtonsoft.Json.JsonPropertyAttribute("batchId")] public virtual System.Nullable<long> BatchId { get; set; } /// <summary>A list of errors defined if and only if the request failed.</summary> [Newtonsoft.Json.JsonPropertyAttribute("errors")] public virtual Errors Errors { get; set; } /// <summary>The status of the execution. Only defined if - the request was successful; and - the method is not /// get, getByMerchantOrderId, or one of the test methods.</summary> [Newtonsoft.Json.JsonPropertyAttribute("executionStatus")] public virtual string ExecutionStatus { get; set; } /// <summary>Identifies what kind of resource this is. Value: the fixed string /// "content#ordersCustomBatchResponseEntry".</summary> [Newtonsoft.Json.JsonPropertyAttribute("kind")] public virtual string Kind { get; set; } /// <summary>The retrieved order. Only defined if the method is get and if the request was successful.</summary> [Newtonsoft.Json.JsonPropertyAttribute("order")] public virtual Order Order { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class OrdersGetByMerchantOrderIdResponse : Google.Apis.Requests.IDirectResponseSchema { /// <summary>Identifies what kind of resource this is. Value: the fixed string /// "content#ordersGetByMerchantOrderIdResponse".</summary> [Newtonsoft.Json.JsonPropertyAttribute("kind")] public virtual string Kind { get; set; } /// <summary>The requested order.</summary> [Newtonsoft.Json.JsonPropertyAttribute("order")] public virtual Order Order { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class OrdersGetTestOrderTemplateResponse : Google.Apis.Requests.IDirectResponseSchema { /// <summary>Identifies what kind of resource this is. Value: the fixed string /// "content#ordersGetTestOrderTemplateResponse".</summary> [Newtonsoft.Json.JsonPropertyAttribute("kind")] public virtual string Kind { get; set; } /// <summary>The requested test order template.</summary> [Newtonsoft.Json.JsonPropertyAttribute("template")] public virtual TestOrder Template { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class OrdersInStoreRefundLineItemRequest : Google.Apis.Requests.IDirectResponseSchema { /// <summary>The amount that is refunded. Required.</summary> [Newtonsoft.Json.JsonPropertyAttribute("amountPretax")] public virtual Price AmountPretax { get; set; } /// <summary>Tax amount that correspond to refund amount in amountPretax. Required.</summary> [Newtonsoft.Json.JsonPropertyAttribute("amountTax")] public virtual Price AmountTax { get; set; } /// <summary>The ID of the line item to return. Either lineItemId or productId is required.</summary> [Newtonsoft.Json.JsonPropertyAttribute("lineItemId")] public virtual string LineItemId { get; set; } /// <summary>The ID of the operation. Unique across all operations for a given order.</summary> [Newtonsoft.Json.JsonPropertyAttribute("operationId")] public virtual string OperationId { get; set; } /// <summary>The ID of the product to return. This is the REST ID used in the products service. Either /// lineItemId or productId is required.</summary> [Newtonsoft.Json.JsonPropertyAttribute("productId")] public virtual string ProductId { get; set; } /// <summary>The quantity to return and refund.</summary> [Newtonsoft.Json.JsonPropertyAttribute("quantity")] public virtual System.Nullable<long> Quantity { get; set; } /// <summary>The reason for the return.</summary> [Newtonsoft.Json.JsonPropertyAttribute("reason")] public virtual string Reason { get; set; } /// <summary>The explanation of the reason.</summary> [Newtonsoft.Json.JsonPropertyAttribute("reasonText")] public virtual string ReasonText { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class OrdersInStoreRefundLineItemResponse : Google.Apis.Requests.IDirectResponseSchema { /// <summary>The status of the execution.</summary> [Newtonsoft.Json.JsonPropertyAttribute("executionStatus")] public virtual string ExecutionStatus { get; set; } /// <summary>Identifies what kind of resource this is. Value: the fixed string /// "content#ordersInStoreRefundLineItemResponse".</summary> [Newtonsoft.Json.JsonPropertyAttribute("kind")] public virtual string Kind { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class OrdersListResponse : Google.Apis.Requests.IDirectResponseSchema { /// <summary>Identifies what kind of resource this is. Value: the fixed string /// "content#ordersListResponse".</summary> [Newtonsoft.Json.JsonPropertyAttribute("kind")] public virtual string Kind { get; set; } /// <summary>The token for the retrieval of the next page of orders.</summary> [Newtonsoft.Json.JsonPropertyAttribute("nextPageToken")] public virtual string NextPageToken { get; set; } [Newtonsoft.Json.JsonPropertyAttribute("resources")] public virtual System.Collections.Generic.IList<Order> Resources { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class OrdersRefundRequest : Google.Apis.Requests.IDirectResponseSchema { /// <summary>Deprecated. Please use amountPretax and amountTax instead.</summary> [Newtonsoft.Json.JsonPropertyAttribute("amount")] public virtual Price Amount { get; set; } /// <summary>The amount that is refunded. Either amount or amountPretax should be filled.</summary> [Newtonsoft.Json.JsonPropertyAttribute("amountPretax")] public virtual Price AmountPretax { get; set; } /// <summary>Tax amount that corresponds to refund amount in amountPretax. Optional, but if filled, amountPretax /// must be set. Calculated automatically if not provided.</summary> [Newtonsoft.Json.JsonPropertyAttribute("amountTax")] public virtual Price AmountTax { get; set; } /// <summary>The ID of the operation. Unique across all operations for a given order.</summary> [Newtonsoft.Json.JsonPropertyAttribute("operationId")] public virtual string OperationId { get; set; } /// <summary>The reason for the refund.</summary> [Newtonsoft.Json.JsonPropertyAttribute("reason")] public virtual string Reason { get; set; } /// <summary>The explanation of the reason.</summary> [Newtonsoft.Json.JsonPropertyAttribute("reasonText")] public virtual string ReasonText { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class OrdersRefundResponse : Google.Apis.Requests.IDirectResponseSchema { /// <summary>The status of the execution.</summary> [Newtonsoft.Json.JsonPropertyAttribute("executionStatus")] public virtual string ExecutionStatus { get; set; } /// <summary>Identifies what kind of resource this is. Value: the fixed string /// "content#ordersRefundResponse".</summary> [Newtonsoft.Json.JsonPropertyAttribute("kind")] public virtual string Kind { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class OrdersRejectReturnLineItemRequest : Google.Apis.Requests.IDirectResponseSchema { /// <summary>The ID of the line item to return. Either lineItemId or productId is required.</summary> [Newtonsoft.Json.JsonPropertyAttribute("lineItemId")] public virtual string LineItemId { get; set; } /// <summary>The ID of the operation. Unique across all operations for a given order.</summary> [Newtonsoft.Json.JsonPropertyAttribute("operationId")] public virtual string OperationId { get; set; } /// <summary>The ID of the product to return. This is the REST ID used in the products service. Either /// lineItemId or productId is required.</summary> [Newtonsoft.Json.JsonPropertyAttribute("productId")] public virtual string ProductId { get; set; } /// <summary>The quantity to return and refund.</summary> [Newtonsoft.Json.JsonPropertyAttribute("quantity")] public virtual System.Nullable<long> Quantity { get; set; } /// <summary>The reason for the return.</summary> [Newtonsoft.Json.JsonPropertyAttribute("reason")] public virtual string Reason { get; set; } /// <summary>The explanation of the reason.</summary> [Newtonsoft.Json.JsonPropertyAttribute("reasonText")] public virtual string ReasonText { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class OrdersRejectReturnLineItemResponse : Google.Apis.Requests.IDirectResponseSchema { /// <summary>The status of the execution.</summary> [Newtonsoft.Json.JsonPropertyAttribute("executionStatus")] public virtual string ExecutionStatus { get; set; } /// <summary>Identifies what kind of resource this is. Value: the fixed string /// "content#ordersRejectReturnLineItemResponse".</summary> [Newtonsoft.Json.JsonPropertyAttribute("kind")] public virtual string Kind { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class OrdersReturnLineItemRequest : Google.Apis.Requests.IDirectResponseSchema { /// <summary>The ID of the line item to return. Either lineItemId or productId is required.</summary> [Newtonsoft.Json.JsonPropertyAttribute("lineItemId")] public virtual string LineItemId { get; set; } /// <summary>The ID of the operation. Unique across all operations for a given order.</summary> [Newtonsoft.Json.JsonPropertyAttribute("operationId")] public virtual string OperationId { get; set; } /// <summary>The ID of the product to return. This is the REST ID used in the products service. Either /// lineItemId or productId is required.</summary> [Newtonsoft.Json.JsonPropertyAttribute("productId")] public virtual string ProductId { get; set; } /// <summary>The quantity to return.</summary> [Newtonsoft.Json.JsonPropertyAttribute("quantity")] public virtual System.Nullable<long> Quantity { get; set; } /// <summary>The reason for the return.</summary> [Newtonsoft.Json.JsonPropertyAttribute("reason")] public virtual string Reason { get; set; } /// <summary>The explanation of the reason.</summary> [Newtonsoft.Json.JsonPropertyAttribute("reasonText")] public virtual string ReasonText { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class OrdersReturnLineItemResponse : Google.Apis.Requests.IDirectResponseSchema { /// <summary>The status of the execution.</summary> [Newtonsoft.Json.JsonPropertyAttribute("executionStatus")] public virtual string ExecutionStatus { get; set; } /// <summary>Identifies what kind of resource this is. Value: the fixed string /// "content#ordersReturnLineItemResponse".</summary> [Newtonsoft.Json.JsonPropertyAttribute("kind")] public virtual string Kind { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class OrdersReturnRefundLineItemRequest : Google.Apis.Requests.IDirectResponseSchema { /// <summary>The amount that is refunded. If omitted, refundless return is assumed (same as calling /// returnLineItem method).</summary> [Newtonsoft.Json.JsonPropertyAttribute("amountPretax")] public virtual Price AmountPretax { get; set; } /// <summary>Tax amount that corresponds to refund amount in amountPretax. Optional, but if filled, then /// amountPretax must be set. Calculated automatically if not provided.</summary> [Newtonsoft.Json.JsonPropertyAttribute("amountTax")] public virtual Price AmountTax { get; set; } /// <summary>The ID of the line item to return. Either lineItemId or productId is required.</summary> [Newtonsoft.Json.JsonPropertyAttribute("lineItemId")] public virtual string LineItemId { get; set; } /// <summary>The ID of the operation. Unique across all operations for a given order.</summary> [Newtonsoft.Json.JsonPropertyAttribute("operationId")] public virtual string OperationId { get; set; } /// <summary>The ID of the product to return. This is the REST ID used in the products service. Either /// lineItemId or productId is required.</summary> [Newtonsoft.Json.JsonPropertyAttribute("productId")] public virtual string ProductId { get; set; } /// <summary>The quantity to return and refund.</summary> [Newtonsoft.Json.JsonPropertyAttribute("quantity")] public virtual System.Nullable<long> Quantity { get; set; } /// <summary>The reason for the return.</summary> [Newtonsoft.Json.JsonPropertyAttribute("reason")] public virtual string Reason { get; set; } /// <summary>The explanation of the reason.</summary> [Newtonsoft.Json.JsonPropertyAttribute("reasonText")] public virtual string ReasonText { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class OrdersReturnRefundLineItemResponse : Google.Apis.Requests.IDirectResponseSchema { /// <summary>The status of the execution.</summary> [Newtonsoft.Json.JsonPropertyAttribute("executionStatus")] public virtual string ExecutionStatus { get; set; } /// <summary>Identifies what kind of resource this is. Value: the fixed string /// "content#ordersReturnRefundLineItemResponse".</summary> [Newtonsoft.Json.JsonPropertyAttribute("kind")] public virtual string Kind { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class OrdersSetLineItemMetadataRequest : Google.Apis.Requests.IDirectResponseSchema { [Newtonsoft.Json.JsonPropertyAttribute("annotations")] public virtual System.Collections.Generic.IList<OrderMerchantProvidedAnnotation> Annotations { get; set; } /// <summary>The ID of the line item to set metadata. Either lineItemId or productId is required.</summary> [Newtonsoft.Json.JsonPropertyAttribute("lineItemId")] public virtual string LineItemId { get; set; } /// <summary>The ID of the operation. Unique across all operations for a given order.</summary> [Newtonsoft.Json.JsonPropertyAttribute("operationId")] public virtual string OperationId { get; set; } /// <summary>The ID of the product to set metadata. This is the REST ID used in the products service. Either /// lineItemId or productId is required.</summary> [Newtonsoft.Json.JsonPropertyAttribute("productId")] public virtual string ProductId { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class OrdersSetLineItemMetadataResponse : Google.Apis.Requests.IDirectResponseSchema { /// <summary>The status of the execution.</summary> [Newtonsoft.Json.JsonPropertyAttribute("executionStatus")] public virtual string ExecutionStatus { get; set; } /// <summary>Identifies what kind of resource this is. Value: the fixed string /// "content#ordersSetLineItemMetadataResponse".</summary> [Newtonsoft.Json.JsonPropertyAttribute("kind")] public virtual string Kind { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class OrdersShipLineItemsRequest : Google.Apis.Requests.IDirectResponseSchema { /// <summary>Deprecated. Please use shipmentInfo instead. The carrier handling the shipment. See /// shipments[].carrier in the Orders resource representation for a list of acceptable values.</summary> [Newtonsoft.Json.JsonPropertyAttribute("carrier")] public virtual string Carrier { get; set; } /// <summary>Line items to ship.</summary> [Newtonsoft.Json.JsonPropertyAttribute("lineItems")] public virtual System.Collections.Generic.IList<OrderShipmentLineItemShipment> LineItems { get; set; } /// <summary>The ID of the operation. Unique across all operations for a given order.</summary> [Newtonsoft.Json.JsonPropertyAttribute("operationId")] public virtual string OperationId { get; set; } /// <summary>ID of the shipment group. Required for orders that use the orderinvoices service.</summary> [Newtonsoft.Json.JsonPropertyAttribute("shipmentGroupId")] public virtual string ShipmentGroupId { get; set; } /// <summary>Deprecated. Please use shipmentInfo instead. The ID of the shipment.</summary> [Newtonsoft.Json.JsonPropertyAttribute("shipmentId")] public virtual string ShipmentId { get; set; } /// <summary>Shipment information. This field is repeated because a single line item can be shipped in several /// packages (and have several tracking IDs).</summary> [Newtonsoft.Json.JsonPropertyAttribute("shipmentInfos")] public virtual System.Collections.Generic.IList<OrdersCustomBatchRequestEntryShipLineItemsShipmentInfo> ShipmentInfos { get; set; } /// <summary>Deprecated. Please use shipmentInfo instead. The tracking ID for the shipment.</summary> [Newtonsoft.Json.JsonPropertyAttribute("trackingId")] public virtual string TrackingId { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class OrdersShipLineItemsResponse : Google.Apis.Requests.IDirectResponseSchema { /// <summary>The status of the execution.</summary> [Newtonsoft.Json.JsonPropertyAttribute("executionStatus")] public virtual string ExecutionStatus { get; set; } /// <summary>Identifies what kind of resource this is. Value: the fixed string /// "content#ordersShipLineItemsResponse".</summary> [Newtonsoft.Json.JsonPropertyAttribute("kind")] public virtual string Kind { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class OrdersUpdateLineItemShippingDetailsRequest : Google.Apis.Requests.IDirectResponseSchema { /// <summary>Updated delivery by date, in ISO 8601 format. If not specified only ship by date is updated. /// /// Provided date should be within 1 year timeframe and can not be a date in the past.</summary> [Newtonsoft.Json.JsonPropertyAttribute("deliverByDate")] public virtual string DeliverByDate { get; set; } /// <summary>The ID of the line item to set metadata. Either lineItemId or productId is required.</summary> [Newtonsoft.Json.JsonPropertyAttribute("lineItemId")] public virtual string LineItemId { get; set; } /// <summary>The ID of the operation. Unique across all operations for a given order.</summary> [Newtonsoft.Json.JsonPropertyAttribute("operationId")] public virtual string OperationId { get; set; } /// <summary>The ID of the product to set metadata. This is the REST ID used in the products service. Either /// lineItemId or productId is required.</summary> [Newtonsoft.Json.JsonPropertyAttribute("productId")] public virtual string ProductId { get; set; } /// <summary>Updated ship by date, in ISO 8601 format. If not specified only deliver by date is updated. /// /// Provided date should be within 1 year timeframe and can not be a date in the past.</summary> [Newtonsoft.Json.JsonPropertyAttribute("shipByDate")] public virtual string ShipByDate { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class OrdersUpdateLineItemShippingDetailsResponse : Google.Apis.Requests.IDirectResponseSchema { /// <summary>The status of the execution.</summary> [Newtonsoft.Json.JsonPropertyAttribute("executionStatus")] public virtual string ExecutionStatus { get; set; } /// <summary>Identifies what kind of resource this is. Value: the fixed string /// "content#ordersUpdateLineItemShippingDetailsResponse".</summary> [Newtonsoft.Json.JsonPropertyAttribute("kind")] public virtual string Kind { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class OrdersUpdateMerchantOrderIdRequest : Google.Apis.Requests.IDirectResponseSchema { /// <summary>The merchant order id to be assigned to the order. Must be unique per merchant.</summary> [Newtonsoft.Json.JsonPropertyAttribute("merchantOrderId")] public virtual string MerchantOrderId { get; set; } /// <summary>The ID of the operation. Unique across all operations for a given order.</summary> [Newtonsoft.Json.JsonPropertyAttribute("operationId")] public virtual string OperationId { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class OrdersUpdateMerchantOrderIdResponse : Google.Apis.Requests.IDirectResponseSchema { /// <summary>The status of the execution.</summary> [Newtonsoft.Json.JsonPropertyAttribute("executionStatus")] public virtual string ExecutionStatus { get; set; } /// <summary>Identifies what kind of resource this is. Value: the fixed string /// "content#ordersUpdateMerchantOrderIdResponse".</summary> [Newtonsoft.Json.JsonPropertyAttribute("kind")] public virtual string Kind { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class OrdersUpdateShipmentRequest : Google.Apis.Requests.IDirectResponseSchema { /// <summary>The carrier handling the shipment. Not updated if missing. See shipments[].carrier in the Orders /// resource representation for a list of acceptable values.</summary> [Newtonsoft.Json.JsonPropertyAttribute("carrier")] public virtual string Carrier { get; set; } /// <summary>Date on which the shipment has been delivered, in ISO 8601 format. Optional and can be provided /// only if status is delivered.</summary> [Newtonsoft.Json.JsonPropertyAttribute("deliveryDate")] public virtual string DeliveryDate { get; set; } /// <summary>The ID of the operation. Unique across all operations for a given order.</summary> [Newtonsoft.Json.JsonPropertyAttribute("operationId")] public virtual string OperationId { get; set; } /// <summary>The ID of the shipment.</summary> [Newtonsoft.Json.JsonPropertyAttribute("shipmentId")] public virtual string ShipmentId { get; set; } /// <summary>New status for the shipment. Not updated if missing.</summary> [Newtonsoft.Json.JsonPropertyAttribute("status")] public virtual string Status { get; set; } /// <summary>The tracking ID for the shipment. Not updated if missing.</summary> [Newtonsoft.Json.JsonPropertyAttribute("trackingId")] public virtual string TrackingId { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class OrdersUpdateShipmentResponse : Google.Apis.Requests.IDirectResponseSchema { /// <summary>The status of the execution.</summary> [Newtonsoft.Json.JsonPropertyAttribute("executionStatus")] public virtual string ExecutionStatus { get; set; } /// <summary>Identifies what kind of resource this is. Value: the fixed string /// "content#ordersUpdateShipmentResponse".</summary> [Newtonsoft.Json.JsonPropertyAttribute("kind")] public virtual string Kind { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class PosCustomBatchRequest : Google.Apis.Requests.IDirectResponseSchema { /// <summary>The request entries to be processed in the batch.</summary> [Newtonsoft.Json.JsonPropertyAttribute("entries")] public virtual System.Collections.Generic.IList<PosCustomBatchRequestEntry> Entries { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class PosCustomBatchRequestEntry : Google.Apis.Requests.IDirectResponseSchema { /// <summary>An entry ID, unique within the batch request.</summary> [Newtonsoft.Json.JsonPropertyAttribute("batchId")] public virtual System.Nullable<long> BatchId { get; set; } /// <summary>The inventory to submit. Set this only if the method is inventory.</summary> [Newtonsoft.Json.JsonPropertyAttribute("inventory")] public virtual PosInventory Inventory { get; set; } /// <summary>The ID of the POS data provider.</summary> [Newtonsoft.Json.JsonPropertyAttribute("merchantId")] public virtual System.Nullable<ulong> MerchantId { get; set; } [Newtonsoft.Json.JsonPropertyAttribute("method")] public virtual string Method { get; set; } /// <summary>The sale information to submit. Set this only if the method is sale.</summary> [Newtonsoft.Json.JsonPropertyAttribute("sale")] public virtual PosSale Sale { get; set; } /// <summary>The store information to submit. Set this only if the method is insert.</summary> [Newtonsoft.Json.JsonPropertyAttribute("store")] public virtual PosStore Store { get; set; } /// <summary>The store code. Set this only if the method is delete or get.</summary> [Newtonsoft.Json.JsonPropertyAttribute("storeCode")] public virtual string StoreCode { get; set; } /// <summary>The ID of the account for which to get/submit data.</summary> [Newtonsoft.Json.JsonPropertyAttribute("targetMerchantId")] public virtual System.Nullable<ulong> TargetMerchantId { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class PosCustomBatchResponse : Google.Apis.Requests.IDirectResponseSchema { /// <summary>The result of the execution of the batch requests.</summary> [Newtonsoft.Json.JsonPropertyAttribute("entries")] public virtual System.Collections.Generic.IList<PosCustomBatchResponseEntry> Entries { get; set; } /// <summary>Identifies what kind of resource this is. Value: the fixed string /// "content#posCustomBatchResponse".</summary> [Newtonsoft.Json.JsonPropertyAttribute("kind")] public virtual string Kind { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class PosCustomBatchResponseEntry : Google.Apis.Requests.IDirectResponseSchema { /// <summary>The ID of the request entry to which this entry responds.</summary> [Newtonsoft.Json.JsonPropertyAttribute("batchId")] public virtual System.Nullable<long> BatchId { get; set; } /// <summary>A list of errors defined if, and only if, the request failed.</summary> [Newtonsoft.Json.JsonPropertyAttribute("errors")] public virtual Errors Errors { get; set; } /// <summary>The updated inventory information.</summary> [Newtonsoft.Json.JsonPropertyAttribute("inventory")] public virtual PosInventory Inventory { get; set; } /// <summary>Identifies what kind of resource this is. Value: the fixed string /// "content#posCustomBatchResponseEntry".</summary> [Newtonsoft.Json.JsonPropertyAttribute("kind")] public virtual string Kind { get; set; } /// <summary>The updated sale information.</summary> [Newtonsoft.Json.JsonPropertyAttribute("sale")] public virtual PosSale Sale { get; set; } /// <summary>The retrieved or updated store information.</summary> [Newtonsoft.Json.JsonPropertyAttribute("store")] public virtual PosStore Store { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class PosDataProviders : Google.Apis.Requests.IDirectResponseSchema { /// <summary>Country code.</summary> [Newtonsoft.Json.JsonPropertyAttribute("country")] public virtual string Country { get; set; } /// <summary>A list of POS data providers.</summary> [Newtonsoft.Json.JsonPropertyAttribute("posDataProviders")] public virtual System.Collections.Generic.IList<PosDataProvidersPosDataProvider> PosDataProvidersValue { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class PosDataProvidersPosDataProvider : Google.Apis.Requests.IDirectResponseSchema { /// <summary>The display name of Pos data Provider.</summary> [Newtonsoft.Json.JsonPropertyAttribute("displayName")] public virtual string DisplayName { get; set; } /// <summary>The full name of this POS data Provider.</summary> [Newtonsoft.Json.JsonPropertyAttribute("fullName")] public virtual string FullName { get; set; } /// <summary>The ID of the account.</summary> [Newtonsoft.Json.JsonPropertyAttribute("providerId")] public virtual System.Nullable<ulong> ProviderId { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } /// <summary>The absolute quantity of an item available at the given store.</summary> public class PosInventory : Google.Apis.Requests.IDirectResponseSchema { /// <summary>The two-letter ISO 639-1 language code for the item.</summary> [Newtonsoft.Json.JsonPropertyAttribute("contentLanguage")] public virtual string ContentLanguage { get; set; } /// <summary>Global Trade Item Number.</summary> [Newtonsoft.Json.JsonPropertyAttribute("gtin")] public virtual string Gtin { get; set; } /// <summary>A unique identifier for the item.</summary> [Newtonsoft.Json.JsonPropertyAttribute("itemId")] public virtual string ItemId { get; set; } /// <summary>Identifies what kind of resource this is. Value: the fixed string "content#posInventory".</summary> [Newtonsoft.Json.JsonPropertyAttribute("kind")] public virtual string Kind { get; set; } /// <summary>The current price of the item.</summary> [Newtonsoft.Json.JsonPropertyAttribute("price")] public virtual Price Price { get; set; } /// <summary>The available quantity of the item.</summary> [Newtonsoft.Json.JsonPropertyAttribute("quantity")] public virtual System.Nullable<long> Quantity { get; set; } /// <summary>The identifier of the merchant's store. Either a storeCode inserted via the API or the code of the /// store in Google My Business.</summary> [Newtonsoft.Json.JsonPropertyAttribute("storeCode")] public virtual string StoreCode { get; set; } /// <summary>The CLDR territory code for the item.</summary> [Newtonsoft.Json.JsonPropertyAttribute("targetCountry")] public virtual string TargetCountry { get; set; } /// <summary>The inventory timestamp, in ISO 8601 format.</summary> [Newtonsoft.Json.JsonPropertyAttribute("timestamp")] public virtual string Timestamp { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class PosInventoryRequest : Google.Apis.Requests.IDirectResponseSchema { /// <summary>The two-letter ISO 639-1 language code for the item.</summary> [Newtonsoft.Json.JsonPropertyAttribute("contentLanguage")] public virtual string ContentLanguage { get; set; } /// <summary>Global Trade Item Number.</summary> [Newtonsoft.Json.JsonPropertyAttribute("gtin")] public virtual string Gtin { get; set; } /// <summary>A unique identifier for the item.</summary> [Newtonsoft.Json.JsonPropertyAttribute("itemId")] public virtual string ItemId { get; set; } /// <summary>The current price of the item.</summary> [Newtonsoft.Json.JsonPropertyAttribute("price")] public virtual Price Price { get; set; } /// <summary>The available quantity of the item.</summary> [Newtonsoft.Json.JsonPropertyAttribute("quantity")] public virtual System.Nullable<long> Quantity { get; set; } /// <summary>The identifier of the merchant's store. Either a storeCode inserted via the API or the code of the /// store in Google My Business.</summary> [Newtonsoft.Json.JsonPropertyAttribute("storeCode")] public virtual string StoreCode { get; set; } /// <summary>The CLDR territory code for the item.</summary> [Newtonsoft.Json.JsonPropertyAttribute("targetCountry")] public virtual string TargetCountry { get; set; } /// <summary>The inventory timestamp, in ISO 8601 format.</summary> [Newtonsoft.Json.JsonPropertyAttribute("timestamp")] public virtual string Timestamp { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class PosInventoryResponse : Google.Apis.Requests.IDirectResponseSchema { /// <summary>The two-letter ISO 639-1 language code for the item.</summary> [Newtonsoft.Json.JsonPropertyAttribute("contentLanguage")] public virtual string ContentLanguage { get; set; } /// <summary>Global Trade Item Number.</summary> [Newtonsoft.Json.JsonPropertyAttribute("gtin")] public virtual string Gtin { get; set; } /// <summary>A unique identifier for the item.</summary> [Newtonsoft.Json.JsonPropertyAttribute("itemId")] public virtual string ItemId { get; set; } /// <summary>Identifies what kind of resource this is. Value: the fixed string /// "content#posInventoryResponse".</summary> [Newtonsoft.Json.JsonPropertyAttribute("kind")] public virtual string Kind { get; set; } /// <summary>The current price of the item.</summary> [Newtonsoft.Json.JsonPropertyAttribute("price")] public virtual Price Price { get; set; } /// <summary>The available quantity of the item.</summary> [Newtonsoft.Json.JsonPropertyAttribute("quantity")] public virtual System.Nullable<long> Quantity { get; set; } /// <summary>The identifier of the merchant's store. Either a storeCode inserted via the API or the code of the /// store in Google My Business.</summary> [Newtonsoft.Json.JsonPropertyAttribute("storeCode")] public virtual string StoreCode { get; set; } /// <summary>The CLDR territory code for the item.</summary> [Newtonsoft.Json.JsonPropertyAttribute("targetCountry")] public virtual string TargetCountry { get; set; } /// <summary>The inventory timestamp, in ISO 8601 format.</summary> [Newtonsoft.Json.JsonPropertyAttribute("timestamp")] public virtual string Timestamp { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class PosListResponse : Google.Apis.Requests.IDirectResponseSchema { /// <summary>Identifies what kind of resource this is. Value: the fixed string /// "content#posListResponse".</summary> [Newtonsoft.Json.JsonPropertyAttribute("kind")] public virtual string Kind { get; set; } [Newtonsoft.Json.JsonPropertyAttribute("resources")] public virtual System.Collections.Generic.IList<PosStore> Resources { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } /// <summary>The change of the available quantity of an item at the given store.</summary> public class PosSale : Google.Apis.Requests.IDirectResponseSchema { /// <summary>The two-letter ISO 639-1 language code for the item.</summary> [Newtonsoft.Json.JsonPropertyAttribute("contentLanguage")] public virtual string ContentLanguage { get; set; } /// <summary>Global Trade Item Number.</summary> [Newtonsoft.Json.JsonPropertyAttribute("gtin")] public virtual string Gtin { get; set; } /// <summary>A unique identifier for the item.</summary> [Newtonsoft.Json.JsonPropertyAttribute("itemId")] public virtual string ItemId { get; set; } /// <summary>Identifies what kind of resource this is. Value: the fixed string "content#posSale".</summary> [Newtonsoft.Json.JsonPropertyAttribute("kind")] public virtual string Kind { get; set; } /// <summary>The price of the item.</summary> [Newtonsoft.Json.JsonPropertyAttribute("price")] public virtual Price Price { get; set; } /// <summary>The relative change of the available quantity. Negative for items returned.</summary> [Newtonsoft.Json.JsonPropertyAttribute("quantity")] public virtual System.Nullable<long> Quantity { get; set; } /// <summary>A unique ID to group items from the same sale event.</summary> [Newtonsoft.Json.JsonPropertyAttribute("saleId")] public virtual string SaleId { get; set; } /// <summary>The identifier of the merchant's store. Either a storeCode inserted via the API or the code of the /// store in Google My Business.</summary> [Newtonsoft.Json.JsonPropertyAttribute("storeCode")] public virtual string StoreCode { get; set; } /// <summary>The CLDR territory code for the item.</summary> [Newtonsoft.Json.JsonPropertyAttribute("targetCountry")] public virtual string TargetCountry { get; set; } /// <summary>The inventory timestamp, in ISO 8601 format.</summary> [Newtonsoft.Json.JsonPropertyAttribute("timestamp")] public virtual string Timestamp { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class PosSaleRequest : Google.Apis.Requests.IDirectResponseSchema { /// <summary>The two-letter ISO 639-1 language code for the item.</summary> [Newtonsoft.Json.JsonPropertyAttribute("contentLanguage")] public virtual string ContentLanguage { get; set; } /// <summary>Global Trade Item Number.</summary> [Newtonsoft.Json.JsonPropertyAttribute("gtin")] public virtual string Gtin { get; set; } /// <summary>A unique identifier for the item.</summary> [Newtonsoft.Json.JsonPropertyAttribute("itemId")] public virtual string ItemId { get; set; } /// <summary>The price of the item.</summary> [Newtonsoft.Json.JsonPropertyAttribute("price")] public virtual Price Price { get; set; } /// <summary>The relative change of the available quantity. Negative for items returned.</summary> [Newtonsoft.Json.JsonPropertyAttribute("quantity")] public virtual System.Nullable<long> Quantity { get; set; } /// <summary>A unique ID to group items from the same sale event.</summary> [Newtonsoft.Json.JsonPropertyAttribute("saleId")] public virtual string SaleId { get; set; } /// <summary>The identifier of the merchant's store. Either a storeCode inserted via the API or the code of the /// store in Google My Business.</summary> [Newtonsoft.Json.JsonPropertyAttribute("storeCode")] public virtual string StoreCode { get; set; } /// <summary>The CLDR territory code for the item.</summary> [Newtonsoft.Json.JsonPropertyAttribute("targetCountry")] public virtual string TargetCountry { get; set; } /// <summary>The inventory timestamp, in ISO 8601 format.</summary> [Newtonsoft.Json.JsonPropertyAttribute("timestamp")] public virtual string Timestamp { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class PosSaleResponse : Google.Apis.Requests.IDirectResponseSchema { /// <summary>The two-letter ISO 639-1 language code for the item.</summary> [Newtonsoft.Json.JsonPropertyAttribute("contentLanguage")] public virtual string ContentLanguage { get; set; } /// <summary>Global Trade Item Number.</summary> [Newtonsoft.Json.JsonPropertyAttribute("gtin")] public virtual string Gtin { get; set; } /// <summary>A unique identifier for the item.</summary> [Newtonsoft.Json.JsonPropertyAttribute("itemId")] public virtual string ItemId { get; set; } /// <summary>Identifies what kind of resource this is. Value: the fixed string /// "content#posSaleResponse".</summary> [Newtonsoft.Json.JsonPropertyAttribute("kind")] public virtual string Kind { get; set; } /// <summary>The price of the item.</summary> [Newtonsoft.Json.JsonPropertyAttribute("price")] public virtual Price Price { get; set; } /// <summary>The relative change of the available quantity. Negative for items returned.</summary> [Newtonsoft.Json.JsonPropertyAttribute("quantity")] public virtual System.Nullable<long> Quantity { get; set; } /// <summary>A unique ID to group items from the same sale event.</summary> [Newtonsoft.Json.JsonPropertyAttribute("saleId")] public virtual string SaleId { get; set; } /// <summary>The identifier of the merchant's store. Either a storeCode inserted via the API or the code of the /// store in Google My Business.</summary> [Newtonsoft.Json.JsonPropertyAttribute("storeCode")] public virtual string StoreCode { get; set; } /// <summary>The CLDR territory code for the item.</summary> [Newtonsoft.Json.JsonPropertyAttribute("targetCountry")] public virtual string TargetCountry { get; set; } /// <summary>The inventory timestamp, in ISO 8601 format.</summary> [Newtonsoft.Json.JsonPropertyAttribute("timestamp")] public virtual string Timestamp { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } /// <summary>Store resource.</summary> public class PosStore : Google.Apis.Requests.IDirectResponseSchema { /// <summary>Identifies what kind of resource this is. Value: the fixed string "content#posStore".</summary> [Newtonsoft.Json.JsonPropertyAttribute("kind")] public virtual string Kind { get; set; } /// <summary>The street address of the store.</summary> [Newtonsoft.Json.JsonPropertyAttribute("storeAddress")] public virtual string StoreAddress { get; set; } /// <summary>A store identifier that is unique for the given merchant.</summary> [Newtonsoft.Json.JsonPropertyAttribute("storeCode")] public virtual string StoreCode { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class PostalCodeGroup : Google.Apis.Requests.IDirectResponseSchema { /// <summary>The CLDR territory code of the country the postal code group applies to. Required.</summary> [Newtonsoft.Json.JsonPropertyAttribute("country")] public virtual string Country { get; set; } /// <summary>The name of the postal code group, referred to in headers. Required.</summary> [Newtonsoft.Json.JsonPropertyAttribute("name")] public virtual string Name { get; set; } /// <summary>A range of postal codes. Required.</summary> [Newtonsoft.Json.JsonPropertyAttribute("postalCodeRanges")] public virtual System.Collections.Generic.IList<PostalCodeRange> PostalCodeRanges { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class PostalCodeRange : Google.Apis.Requests.IDirectResponseSchema { /// <summary>A postal code or a pattern of the form prefix* denoting the inclusive lower bound of the range /// defining the area. Examples values: "94108", "9410*", "9*". Required.</summary> [Newtonsoft.Json.JsonPropertyAttribute("postalCodeRangeBegin")] public virtual string PostalCodeRangeBegin { get; set; } /// <summary>A postal code or a pattern of the form prefix* denoting the inclusive upper bound of the range /// defining the area. It must have the same length as postalCodeRangeBegin: if postalCodeRangeBegin is a postal /// code then postalCodeRangeEnd must be a postal code too; if postalCodeRangeBegin is a pattern then /// postalCodeRangeEnd must be a pattern with the same prefix length. Optional: if not set, then the area is /// defined as being all the postal codes matching postalCodeRangeBegin.</summary> [Newtonsoft.Json.JsonPropertyAttribute("postalCodeRangeEnd")] public virtual string PostalCodeRangeEnd { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class Price : Google.Apis.Requests.IDirectResponseSchema { /// <summary>The currency of the price.</summary> [Newtonsoft.Json.JsonPropertyAttribute("currency")] public virtual string Currency { get; set; } /// <summary>The price represented as a number.</summary> [Newtonsoft.Json.JsonPropertyAttribute("value")] public virtual string Value { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } /// <summary>Product data. After inserting, updating, or deleting a product, it may take several minutes before /// changes take effect.</summary> public class Product : Google.Apis.Requests.IDirectResponseSchema { /// <summary>Additional URLs of images of the item.</summary> [Newtonsoft.Json.JsonPropertyAttribute("additionalImageLinks")] public virtual System.Collections.Generic.IList<string> AdditionalImageLinks { get; set; } /// <summary>Additional categories of the item (formatted as in products data specification).</summary> [Newtonsoft.Json.JsonPropertyAttribute("additionalProductTypes")] public virtual System.Collections.Generic.IList<string> AdditionalProductTypes { get; set; } /// <summary>Set to true if the item is targeted towards adults.</summary> [Newtonsoft.Json.JsonPropertyAttribute("adult")] public virtual System.Nullable<bool> Adult { get; set; } /// <summary>Used to group items in an arbitrary way. Only for CPA%, discouraged otherwise.</summary> [Newtonsoft.Json.JsonPropertyAttribute("adwordsGrouping")] public virtual string AdwordsGrouping { get; set; } /// <summary>Similar to adwords_grouping, but only works on CPC.</summary> [Newtonsoft.Json.JsonPropertyAttribute("adwordsLabels")] public virtual System.Collections.Generic.IList<string> AdwordsLabels { get; set; } /// <summary>Allows advertisers to override the item URL when the product is shown within the context of Product /// Ads.</summary> [Newtonsoft.Json.JsonPropertyAttribute("adwordsRedirect")] public virtual string AdwordsRedirect { get; set; } /// <summary>Target age group of the item.</summary> [Newtonsoft.Json.JsonPropertyAttribute("ageGroup")] public virtual string AgeGroup { get; set; } /// <summary>Deprecated. Do not use.</summary> [Newtonsoft.Json.JsonPropertyAttribute("aspects")] public virtual System.Collections.Generic.IList<ProductAspect> Aspects { get; set; } /// <summary>Availability status of the item.</summary> [Newtonsoft.Json.JsonPropertyAttribute("availability")] public virtual string Availability { get; set; } /// <summary>The day a pre-ordered product becomes available for delivery, in ISO 8601 format.</summary> [Newtonsoft.Json.JsonPropertyAttribute("availabilityDate")] public virtual string AvailabilityDate { get; set; } /// <summary>Brand of the item.</summary> [Newtonsoft.Json.JsonPropertyAttribute("brand")] public virtual string Brand { get; set; } /// <summary>The item's channel (online or local).</summary> [Newtonsoft.Json.JsonPropertyAttribute("channel")] public virtual string Channel { get; set; } /// <summary>Color of the item.</summary> [Newtonsoft.Json.JsonPropertyAttribute("color")] public virtual string Color { get; set; } /// <summary>Condition or state of the item.</summary> [Newtonsoft.Json.JsonPropertyAttribute("condition")] public virtual string Condition { get; set; } /// <summary>The two-letter ISO 639-1 language code for the item.</summary> [Newtonsoft.Json.JsonPropertyAttribute("contentLanguage")] public virtual string ContentLanguage { get; set; } /// <summary>Cost of goods sold. Used for gross profit reporting.</summary> [Newtonsoft.Json.JsonPropertyAttribute("costOfGoodsSold")] public virtual Price CostOfGoodsSold { get; set; } /// <summary>A list of custom (merchant-provided) attributes. It can also be used for submitting any attribute /// of the feed specification in its generic form (e.g., { "name": "size type", "value": "regular" }). This is /// useful for submitting attributes not explicitly exposed by the API, such as additional attributes used for /// Shopping Actions.</summary> [Newtonsoft.Json.JsonPropertyAttribute("customAttributes")] public virtual System.Collections.Generic.IList<CustomAttribute> CustomAttributes { get; set; } /// <summary>A list of custom (merchant-provided) custom attribute groups.</summary> [Newtonsoft.Json.JsonPropertyAttribute("customGroups")] public virtual System.Collections.Generic.IList<CustomGroup> CustomGroups { get; set; } /// <summary>Custom label 0 for custom grouping of items in a Shopping campaign.</summary> [Newtonsoft.Json.JsonPropertyAttribute("customLabel0")] public virtual string CustomLabel0 { get; set; } /// <summary>Custom label 1 for custom grouping of items in a Shopping campaign.</summary> [Newtonsoft.Json.JsonPropertyAttribute("customLabel1")] public virtual string CustomLabel1 { get; set; } /// <summary>Custom label 2 for custom grouping of items in a Shopping campaign.</summary> [Newtonsoft.Json.JsonPropertyAttribute("customLabel2")] public virtual string CustomLabel2 { get; set; } /// <summary>Custom label 3 for custom grouping of items in a Shopping campaign.</summary> [Newtonsoft.Json.JsonPropertyAttribute("customLabel3")] public virtual string CustomLabel3 { get; set; } /// <summary>Custom label 4 for custom grouping of items in a Shopping campaign.</summary> [Newtonsoft.Json.JsonPropertyAttribute("customLabel4")] public virtual string CustomLabel4 { get; set; } /// <summary>Description of the item.</summary> [Newtonsoft.Json.JsonPropertyAttribute("description")] public virtual string Description { get; set; } /// <summary>Specifies the intended destinations for the product.</summary> [Newtonsoft.Json.JsonPropertyAttribute("destinations")] public virtual System.Collections.Generic.IList<ProductDestination> Destinations { get; set; } /// <summary>An identifier for an item for dynamic remarketing campaigns.</summary> [Newtonsoft.Json.JsonPropertyAttribute("displayAdsId")] public virtual string DisplayAdsId { get; set; } /// <summary>URL directly to your item's landing page for dynamic remarketing campaigns.</summary> [Newtonsoft.Json.JsonPropertyAttribute("displayAdsLink")] public virtual string DisplayAdsLink { get; set; } /// <summary>Advertiser-specified recommendations.</summary> [Newtonsoft.Json.JsonPropertyAttribute("displayAdsSimilarIds")] public virtual System.Collections.Generic.IList<string> DisplayAdsSimilarIds { get; set; } /// <summary>Title of an item for dynamic remarketing campaigns.</summary> [Newtonsoft.Json.JsonPropertyAttribute("displayAdsTitle")] public virtual string DisplayAdsTitle { get; set; } /// <summary>Offer margin for dynamic remarketing campaigns.</summary> [Newtonsoft.Json.JsonPropertyAttribute("displayAdsValue")] public virtual System.Nullable<double> DisplayAdsValue { get; set; } /// <summary>The energy efficiency class as defined in EU directive 2010/30/EU.</summary> [Newtonsoft.Json.JsonPropertyAttribute("energyEfficiencyClass")] public virtual string EnergyEfficiencyClass { get; set; } /// <summary>Date on which the item should expire, as specified upon insertion, in ISO 8601 format. The actual /// expiration date in Google Shopping is exposed in productstatuses as googleExpirationDate and might be /// earlier if expirationDate is too far in the future.</summary> [Newtonsoft.Json.JsonPropertyAttribute("expirationDate")] public virtual string ExpirationDate { get; set; } /// <summary>Target gender of the item.</summary> [Newtonsoft.Json.JsonPropertyAttribute("gender")] public virtual string Gender { get; set; } /// <summary>Google's category of the item (see Google product taxonomy).</summary> [Newtonsoft.Json.JsonPropertyAttribute("googleProductCategory")] public virtual string GoogleProductCategory { get; set; } /// <summary>Global Trade Item Number (GTIN) of the item.</summary> [Newtonsoft.Json.JsonPropertyAttribute("gtin")] public virtual string Gtin { get; set; } /// <summary>The REST ID of the product. Content API methods that operate on products take this as their /// productId parameter. The REST ID for a product is of the form /// channel:contentLanguage:targetCountry:offerId.</summary> [Newtonsoft.Json.JsonPropertyAttribute("id")] public virtual string Id { get; set; } /// <summary>False when the item does not have unique product identifiers appropriate to its category, such as /// GTIN, MPN, and brand. Required according to the Unique Product Identifier Rules for all target countries /// except for Canada.</summary> [Newtonsoft.Json.JsonPropertyAttribute("identifierExists")] public virtual System.Nullable<bool> IdentifierExists { get; set; } /// <summary>URL of an image of the item.</summary> [Newtonsoft.Json.JsonPropertyAttribute("imageLink")] public virtual string ImageLink { get; set; } /// <summary>Number and amount of installments to pay for an item. Brazil only.</summary> [Newtonsoft.Json.JsonPropertyAttribute("installment")] public virtual Installment Installment { get; set; } /// <summary>Whether the item is a merchant-defined bundle. A bundle is a custom grouping of different products /// sold by a merchant for a single price.</summary> [Newtonsoft.Json.JsonPropertyAttribute("isBundle")] public virtual System.Nullable<bool> IsBundle { get; set; } /// <summary>Shared identifier for all variants of the same product.</summary> [Newtonsoft.Json.JsonPropertyAttribute("itemGroupId")] public virtual string ItemGroupId { get; set; } /// <summary>Identifies what kind of resource this is. Value: the fixed string "content#product".</summary> [Newtonsoft.Json.JsonPropertyAttribute("kind")] public virtual string Kind { get; set; } /// <summary>URL directly linking to your item's page on your website.</summary> [Newtonsoft.Json.JsonPropertyAttribute("link")] public virtual string Link { get; set; } /// <summary>Loyalty points that users receive after purchasing the item. Japan only.</summary> [Newtonsoft.Json.JsonPropertyAttribute("loyaltyPoints")] public virtual LoyaltyPoints LoyaltyPoints { get; set; } /// <summary>The material of which the item is made.</summary> [Newtonsoft.Json.JsonPropertyAttribute("material")] public virtual string Material { get; set; } /// <summary>The energy efficiency class as defined in EU directive 2010/30/EU.</summary> [Newtonsoft.Json.JsonPropertyAttribute("maxEnergyEfficiencyClass")] public virtual string MaxEnergyEfficiencyClass { get; set; } /// <summary>Maximal product handling time (in business days).</summary> [Newtonsoft.Json.JsonPropertyAttribute("maxHandlingTime")] public virtual System.Nullable<long> MaxHandlingTime { get; set; } /// <summary>The energy efficiency class as defined in EU directive 2010/30/EU.</summary> [Newtonsoft.Json.JsonPropertyAttribute("minEnergyEfficiencyClass")] public virtual string MinEnergyEfficiencyClass { get; set; } /// <summary>Minimal product handling time (in business days).</summary> [Newtonsoft.Json.JsonPropertyAttribute("minHandlingTime")] public virtual System.Nullable<long> MinHandlingTime { get; set; } /// <summary>Link to a mobile-optimized version of the landing page.</summary> [Newtonsoft.Json.JsonPropertyAttribute("mobileLink")] public virtual string MobileLink { get; set; } /// <summary>Manufacturer Part Number (MPN) of the item.</summary> [Newtonsoft.Json.JsonPropertyAttribute("mpn")] public virtual string Mpn { get; set; } /// <summary>The number of identical products in a merchant-defined multipack.</summary> [Newtonsoft.Json.JsonPropertyAttribute("multipack")] public virtual System.Nullable<long> Multipack { get; set; } /// <summary>A unique identifier for the item. Leading and trailing whitespaces are stripped and multiple /// whitespaces are replaced by a single whitespace upon submission. Only valid unicode characters are accepted. /// See the products feed specification for details. Note: Content API methods that operate on products take the /// REST ID of the product, not this identifier.</summary> [Newtonsoft.Json.JsonPropertyAttribute("offerId")] public virtual string OfferId { get; set; } /// <summary>Deprecated. Whether an item is available for purchase only online.</summary> [Newtonsoft.Json.JsonPropertyAttribute("onlineOnly")] public virtual System.Nullable<bool> OnlineOnly { get; set; } /// <summary>The item's pattern (e.g. polka dots).</summary> [Newtonsoft.Json.JsonPropertyAttribute("pattern")] public virtual string Pattern { get; set; } /// <summary>Price of the item.</summary> [Newtonsoft.Json.JsonPropertyAttribute("price")] public virtual Price Price { get; set; } /// <summary>Your category of the item (formatted as in products data specification).</summary> [Newtonsoft.Json.JsonPropertyAttribute("productType")] public virtual string ProductType { get; set; } /// <summary>The unique ID of a promotion.</summary> [Newtonsoft.Json.JsonPropertyAttribute("promotionIds")] public virtual System.Collections.Generic.IList<string> PromotionIds { get; set; } /// <summary>Advertised sale price of the item.</summary> [Newtonsoft.Json.JsonPropertyAttribute("salePrice")] public virtual Price SalePrice { get; set; } /// <summary>Date range during which the item is on sale (see products data specification).</summary> [Newtonsoft.Json.JsonPropertyAttribute("salePriceEffectiveDate")] public virtual string SalePriceEffectiveDate { get; set; } /// <summary>The quantity of the product that is available for selling on Google. Supported only for online /// products.</summary> [Newtonsoft.Json.JsonPropertyAttribute("sellOnGoogleQuantity")] public virtual System.Nullable<long> SellOnGoogleQuantity { get; set; } /// <summary>Shipping rules.</summary> [Newtonsoft.Json.JsonPropertyAttribute("shipping")] public virtual System.Collections.Generic.IList<ProductShipping> Shipping { get; set; } /// <summary>Height of the item for shipping.</summary> [Newtonsoft.Json.JsonPropertyAttribute("shippingHeight")] public virtual ProductShippingDimension ShippingHeight { get; set; } /// <summary>The shipping label of the product, used to group product in account-level shipping rules.</summary> [Newtonsoft.Json.JsonPropertyAttribute("shippingLabel")] public virtual string ShippingLabel { get; set; } /// <summary>Length of the item for shipping.</summary> [Newtonsoft.Json.JsonPropertyAttribute("shippingLength")] public virtual ProductShippingDimension ShippingLength { get; set; } /// <summary>Weight of the item for shipping.</summary> [Newtonsoft.Json.JsonPropertyAttribute("shippingWeight")] public virtual ProductShippingWeight ShippingWeight { get; set; } /// <summary>Width of the item for shipping.</summary> [Newtonsoft.Json.JsonPropertyAttribute("shippingWidth")] public virtual ProductShippingDimension ShippingWidth { get; set; } /// <summary>System in which the size is specified. Recommended for apparel items.</summary> [Newtonsoft.Json.JsonPropertyAttribute("sizeSystem")] public virtual string SizeSystem { get; set; } /// <summary>The cut of the item. Recommended for apparel items.</summary> [Newtonsoft.Json.JsonPropertyAttribute("sizeType")] public virtual string SizeType { get; set; } /// <summary>Size of the item. Only one value is allowed. For variants with different sizes, insert a separate /// product for each size with the same itemGroupId value (see size definition).</summary> [Newtonsoft.Json.JsonPropertyAttribute("sizes")] public virtual System.Collections.Generic.IList<string> Sizes { get; set; } /// <summary>The source of the offer, i.e., how the offer was created.</summary> [Newtonsoft.Json.JsonPropertyAttribute("source")] public virtual string Source { get; set; } /// <summary>The CLDR territory code for the item.</summary> [Newtonsoft.Json.JsonPropertyAttribute("targetCountry")] public virtual string TargetCountry { get; set; } /// <summary>Tax information.</summary> [Newtonsoft.Json.JsonPropertyAttribute("taxes")] public virtual System.Collections.Generic.IList<ProductTax> Taxes { get; set; } /// <summary>Title of the item.</summary> [Newtonsoft.Json.JsonPropertyAttribute("title")] public virtual string Title { get; set; } /// <summary>The preference of the denominator of the unit price.</summary> [Newtonsoft.Json.JsonPropertyAttribute("unitPricingBaseMeasure")] public virtual ProductUnitPricingBaseMeasure UnitPricingBaseMeasure { get; set; } /// <summary>The measure and dimension of an item.</summary> [Newtonsoft.Json.JsonPropertyAttribute("unitPricingMeasure")] public virtual ProductUnitPricingMeasure UnitPricingMeasure { get; set; } /// <summary>Deprecated. The read-only list of intended destinations which passed validation.</summary> [Newtonsoft.Json.JsonPropertyAttribute("validatedDestinations")] public virtual System.Collections.Generic.IList<string> ValidatedDestinations { get; set; } /// <summary>Read-only warnings.</summary> [Newtonsoft.Json.JsonPropertyAttribute("warnings")] public virtual System.Collections.Generic.IList<Error> Warnings { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class ProductAmount : Google.Apis.Requests.IDirectResponseSchema { /// <summary>The pre-tax or post-tax price depending on the location of the order.</summary> [Newtonsoft.Json.JsonPropertyAttribute("priceAmount")] public virtual Price PriceAmount { get; set; } /// <summary>Remitted tax value.</summary> [Newtonsoft.Json.JsonPropertyAttribute("remittedTaxAmount")] public virtual Price RemittedTaxAmount { get; set; } /// <summary>Tax value.</summary> [Newtonsoft.Json.JsonPropertyAttribute("taxAmount")] public virtual Price TaxAmount { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class ProductAspect : Google.Apis.Requests.IDirectResponseSchema { /// <summary>The name of the aspect.</summary> [Newtonsoft.Json.JsonPropertyAttribute("aspectName")] public virtual string AspectName { get; set; } /// <summary>The name of the destination. Leave out to apply to all destinations.</summary> [Newtonsoft.Json.JsonPropertyAttribute("destinationName")] public virtual string DestinationName { get; set; } /// <summary>Whether the aspect is required, excluded or should be validated.</summary> [Newtonsoft.Json.JsonPropertyAttribute("intention")] public virtual string Intention { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class ProductDestination : Google.Apis.Requests.IDirectResponseSchema { /// <summary>The name of the destination.</summary> [Newtonsoft.Json.JsonPropertyAttribute("destinationName")] public virtual string DestinationName { get; set; } /// <summary>Whether the destination is required, excluded or should be validated.</summary> [Newtonsoft.Json.JsonPropertyAttribute("intention")] public virtual string Intention { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class ProductShipping : Google.Apis.Requests.IDirectResponseSchema { /// <summary>The CLDR territory code of the country to which an item will ship.</summary> [Newtonsoft.Json.JsonPropertyAttribute("country")] public virtual string Country { get; set; } /// <summary>The location where the shipping is applicable, represented by a location group name.</summary> [Newtonsoft.Json.JsonPropertyAttribute("locationGroupName")] public virtual string LocationGroupName { get; set; } /// <summary>The numeric ID of a location that the shipping rate applies to as defined in the AdWords /// API.</summary> [Newtonsoft.Json.JsonPropertyAttribute("locationId")] public virtual System.Nullable<long> LocationId { get; set; } /// <summary>The postal code range that the shipping rate applies to, represented by a postal code, a postal /// code prefix followed by a * wildcard, a range between two postal codes or two postal code prefixes of equal /// length.</summary> [Newtonsoft.Json.JsonPropertyAttribute("postalCode")] public virtual string PostalCode { get; set; } /// <summary>Fixed shipping price, represented as a number.</summary> [Newtonsoft.Json.JsonPropertyAttribute("price")] public virtual Price Price { get; set; } /// <summary>The geographic region to which a shipping rate applies.</summary> [Newtonsoft.Json.JsonPropertyAttribute("region")] public virtual string Region { get; set; } /// <summary>A free-form description of the service class or delivery speed.</summary> [Newtonsoft.Json.JsonPropertyAttribute("service")] public virtual string Service { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class ProductShippingDimension : Google.Apis.Requests.IDirectResponseSchema { /// <summary>The unit of value.</summary> [Newtonsoft.Json.JsonPropertyAttribute("unit")] public virtual string Unit { get; set; } /// <summary>The dimension of the product used to calculate the shipping cost of the item.</summary> [Newtonsoft.Json.JsonPropertyAttribute("value")] public virtual System.Nullable<double> Value { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class ProductShippingWeight : Google.Apis.Requests.IDirectResponseSchema { /// <summary>The unit of value.</summary> [Newtonsoft.Json.JsonPropertyAttribute("unit")] public virtual string Unit { get; set; } /// <summary>The weight of the product used to calculate the shipping cost of the item.</summary> [Newtonsoft.Json.JsonPropertyAttribute("value")] public virtual System.Nullable<double> Value { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } /// <summary>The status of a product, i.e., information about a product computed asynchronously.</summary> public class ProductStatus : Google.Apis.Requests.IDirectResponseSchema { /// <summary>Date on which the item has been created, in ISO 8601 format.</summary> [Newtonsoft.Json.JsonPropertyAttribute("creationDate")] public virtual string CreationDate { get; set; } /// <summary>DEPRECATED - never populated</summary> [Newtonsoft.Json.JsonPropertyAttribute("dataQualityIssues")] public virtual System.Collections.Generic.IList<ProductStatusDataQualityIssue> DataQualityIssues { get; set; } /// <summary>The intended destinations for the product.</summary> [Newtonsoft.Json.JsonPropertyAttribute("destinationStatuses")] public virtual System.Collections.Generic.IList<ProductStatusDestinationStatus> DestinationStatuses { get; set; } /// <summary>Date on which the item expires in Google Shopping, in ISO 8601 format.</summary> [Newtonsoft.Json.JsonPropertyAttribute("googleExpirationDate")] public virtual string GoogleExpirationDate { get; set; } /// <summary>A list of all issues associated with the product.</summary> [Newtonsoft.Json.JsonPropertyAttribute("itemLevelIssues")] public virtual System.Collections.Generic.IList<ProductStatusItemLevelIssue> ItemLevelIssues { get; set; } /// <summary>Identifies what kind of resource this is. Value: the fixed string /// "content#productStatus".</summary> [Newtonsoft.Json.JsonPropertyAttribute("kind")] public virtual string Kind { get; set; } /// <summary>Date on which the item has been last updated, in ISO 8601 format.</summary> [Newtonsoft.Json.JsonPropertyAttribute("lastUpdateDate")] public virtual string LastUpdateDate { get; set; } /// <summary>The link to the product.</summary> [Newtonsoft.Json.JsonPropertyAttribute("link")] public virtual string Link { get; set; } /// <summary>Product data after applying all the join inputs.</summary> [Newtonsoft.Json.JsonPropertyAttribute("product")] public virtual Product Product { get; set; } /// <summary>The ID of the product for which status is reported.</summary> [Newtonsoft.Json.JsonPropertyAttribute("productId")] public virtual string ProductId { get; set; } /// <summary>The title of the product.</summary> [Newtonsoft.Json.JsonPropertyAttribute("title")] public virtual string Title { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class ProductStatusDataQualityIssue : Google.Apis.Requests.IDirectResponseSchema { [Newtonsoft.Json.JsonPropertyAttribute("destination")] public virtual string Destination { get; set; } [Newtonsoft.Json.JsonPropertyAttribute("detail")] public virtual string Detail { get; set; } [Newtonsoft.Json.JsonPropertyAttribute("fetchStatus")] public virtual string FetchStatus { get; set; } [Newtonsoft.Json.JsonPropertyAttribute("id")] public virtual string Id { get; set; } [Newtonsoft.Json.JsonPropertyAttribute("location")] public virtual string Location { get; set; } [Newtonsoft.Json.JsonPropertyAttribute("severity")] public virtual string Severity { get; set; } [Newtonsoft.Json.JsonPropertyAttribute("timestamp")] public virtual string Timestamp { get; set; } [Newtonsoft.Json.JsonPropertyAttribute("valueOnLandingPage")] public virtual string ValueOnLandingPage { get; set; } [Newtonsoft.Json.JsonPropertyAttribute("valueProvided")] public virtual string ValueProvided { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class ProductStatusDestinationStatus : Google.Apis.Requests.IDirectResponseSchema { /// <summary>Whether the approval status might change due to further processing.</summary> [Newtonsoft.Json.JsonPropertyAttribute("approvalPending")] public virtual System.Nullable<bool> ApprovalPending { get; set; } /// <summary>The destination's approval status.</summary> [Newtonsoft.Json.JsonPropertyAttribute("approvalStatus")] public virtual string ApprovalStatus { get; set; } /// <summary>The name of the destination</summary> [Newtonsoft.Json.JsonPropertyAttribute("destination")] public virtual string Destination { get; set; } /// <summary>Provided for backward compatibility only. Always set to "required".</summary> [Newtonsoft.Json.JsonPropertyAttribute("intention")] public virtual string Intention { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class ProductStatusItemLevelIssue : Google.Apis.Requests.IDirectResponseSchema { /// <summary>The attribute's name, if the issue is caused by a single attribute.</summary> [Newtonsoft.Json.JsonPropertyAttribute("attributeName")] public virtual string AttributeName { get; set; } /// <summary>The error code of the issue.</summary> [Newtonsoft.Json.JsonPropertyAttribute("code")] public virtual string Code { get; set; } /// <summary>A short issue description in English.</summary> [Newtonsoft.Json.JsonPropertyAttribute("description")] public virtual string Description { get; set; } /// <summary>The destination the issue applies to.</summary> [Newtonsoft.Json.JsonPropertyAttribute("destination")] public virtual string Destination { get; set; } /// <summary>A detailed issue description in English.</summary> [Newtonsoft.Json.JsonPropertyAttribute("detail")] public virtual string Detail { get; set; } /// <summary>The URL of a web page to help with resolving this issue.</summary> [Newtonsoft.Json.JsonPropertyAttribute("documentation")] public virtual string Documentation { get; set; } /// <summary>Whether the issue can be resolved by the merchant.</summary> [Newtonsoft.Json.JsonPropertyAttribute("resolution")] public virtual string Resolution { get; set; } /// <summary>How this issue affects serving of the offer.</summary> [Newtonsoft.Json.JsonPropertyAttribute("servability")] public virtual string Servability { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class ProductTax : Google.Apis.Requests.IDirectResponseSchema { /// <summary>The country within which the item is taxed, specified as a CLDR territory code.</summary> [Newtonsoft.Json.JsonPropertyAttribute("country")] public virtual string Country { get; set; } /// <summary>The numeric ID of a location that the tax rate applies to as defined in the AdWords API.</summary> [Newtonsoft.Json.JsonPropertyAttribute("locationId")] public virtual System.Nullable<long> LocationId { get; set; } /// <summary>The postal code range that the tax rate applies to, represented by a ZIP code, a ZIP code prefix /// using * wildcard, a range between two ZIP codes or two ZIP code prefixes of equal length. Examples: 94114, /// 94*, 94002-95460, 94*-95*.</summary> [Newtonsoft.Json.JsonPropertyAttribute("postalCode")] public virtual string PostalCode { get; set; } /// <summary>The percentage of tax rate that applies to the item price.</summary> [Newtonsoft.Json.JsonPropertyAttribute("rate")] public virtual System.Nullable<double> Rate { get; set; } /// <summary>The geographic region to which the tax rate applies.</summary> [Newtonsoft.Json.JsonPropertyAttribute("region")] public virtual string Region { get; set; } /// <summary>Set to true if tax is charged on shipping.</summary> [Newtonsoft.Json.JsonPropertyAttribute("taxShip")] public virtual System.Nullable<bool> TaxShip { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class ProductUnitPricingBaseMeasure : Google.Apis.Requests.IDirectResponseSchema { /// <summary>The unit of the denominator.</summary> [Newtonsoft.Json.JsonPropertyAttribute("unit")] public virtual string Unit { get; set; } /// <summary>The denominator of the unit price.</summary> [Newtonsoft.Json.JsonPropertyAttribute("value")] public virtual System.Nullable<long> Value { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class ProductUnitPricingMeasure : Google.Apis.Requests.IDirectResponseSchema { /// <summary>The unit of the measure.</summary> [Newtonsoft.Json.JsonPropertyAttribute("unit")] public virtual string Unit { get; set; } /// <summary>The measure of an item.</summary> [Newtonsoft.Json.JsonPropertyAttribute("value")] public virtual System.Nullable<double> Value { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class ProductsCustomBatchRequest : Google.Apis.Requests.IDirectResponseSchema { /// <summary>The request entries to be processed in the batch.</summary> [Newtonsoft.Json.JsonPropertyAttribute("entries")] public virtual System.Collections.Generic.IList<ProductsCustomBatchRequestEntry> Entries { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } /// <summary>A batch entry encoding a single non-batch products request.</summary> public class ProductsCustomBatchRequestEntry : Google.Apis.Requests.IDirectResponseSchema { /// <summary>An entry ID, unique within the batch request.</summary> [Newtonsoft.Json.JsonPropertyAttribute("batchId")] public virtual System.Nullable<long> BatchId { get; set; } /// <summary>The ID of the managing account.</summary> [Newtonsoft.Json.JsonPropertyAttribute("merchantId")] public virtual System.Nullable<ulong> MerchantId { get; set; } [Newtonsoft.Json.JsonPropertyAttribute("method")] public virtual string Method { get; set; } /// <summary>The product to insert. Only required if the method is insert.</summary> [Newtonsoft.Json.JsonPropertyAttribute("product")] public virtual Product Product { get; set; } /// <summary>The ID of the product to get or delete. Only defined if the method is get or delete.</summary> [Newtonsoft.Json.JsonPropertyAttribute("productId")] public virtual string ProductId { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class ProductsCustomBatchResponse : Google.Apis.Requests.IDirectResponseSchema { /// <summary>The result of the execution of the batch requests.</summary> [Newtonsoft.Json.JsonPropertyAttribute("entries")] public virtual System.Collections.Generic.IList<ProductsCustomBatchResponseEntry> Entries { get; set; } /// <summary>Identifies what kind of resource this is. Value: the fixed string /// "content#productsCustomBatchResponse".</summary> [Newtonsoft.Json.JsonPropertyAttribute("kind")] public virtual string Kind { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } /// <summary>A batch entry encoding a single non-batch products response.</summary> public class ProductsCustomBatchResponseEntry : Google.Apis.Requests.IDirectResponseSchema { /// <summary>The ID of the request entry this entry responds to.</summary> [Newtonsoft.Json.JsonPropertyAttribute("batchId")] public virtual System.Nullable<long> BatchId { get; set; } /// <summary>A list of errors defined if and only if the request failed.</summary> [Newtonsoft.Json.JsonPropertyAttribute("errors")] public virtual Errors Errors { get; set; } /// <summary>Identifies what kind of resource this is. Value: the fixed string /// "content#productsCustomBatchResponseEntry".</summary> [Newtonsoft.Json.JsonPropertyAttribute("kind")] public virtual string Kind { get; set; } /// <summary>The inserted product. Only defined if the method is insert and if the request was /// successful.</summary> [Newtonsoft.Json.JsonPropertyAttribute("product")] public virtual Product Product { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class ProductsListResponse : Google.Apis.Requests.IDirectResponseSchema { /// <summary>Identifies what kind of resource this is. Value: the fixed string /// "content#productsListResponse".</summary> [Newtonsoft.Json.JsonPropertyAttribute("kind")] public virtual string Kind { get; set; } /// <summary>The token for the retrieval of the next page of products.</summary> [Newtonsoft.Json.JsonPropertyAttribute("nextPageToken")] public virtual string NextPageToken { get; set; } [Newtonsoft.Json.JsonPropertyAttribute("resources")] public virtual System.Collections.Generic.IList<Product> Resources { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class ProductstatusesCustomBatchRequest : Google.Apis.Requests.IDirectResponseSchema { /// <summary>The request entries to be processed in the batch.</summary> [Newtonsoft.Json.JsonPropertyAttribute("entries")] public virtual System.Collections.Generic.IList<ProductstatusesCustomBatchRequestEntry> Entries { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } /// <summary>A batch entry encoding a single non-batch productstatuses request.</summary> public class ProductstatusesCustomBatchRequestEntry : Google.Apis.Requests.IDirectResponseSchema { /// <summary>An entry ID, unique within the batch request.</summary> [Newtonsoft.Json.JsonPropertyAttribute("batchId")] public virtual System.Nullable<long> BatchId { get; set; } /// <summary>If set, only issues for the specified destinations are returned, otherwise only issues for the /// Shopping destination.</summary> [Newtonsoft.Json.JsonPropertyAttribute("destinations")] public virtual System.Collections.Generic.IList<string> Destinations { get; set; } [Newtonsoft.Json.JsonPropertyAttribute("includeAttributes")] public virtual System.Nullable<bool> IncludeAttributes { get; set; } /// <summary>The ID of the managing account.</summary> [Newtonsoft.Json.JsonPropertyAttribute("merchantId")] public virtual System.Nullable<ulong> MerchantId { get; set; } [Newtonsoft.Json.JsonPropertyAttribute("method")] public virtual string Method { get; set; } /// <summary>The ID of the product whose status to get.</summary> [Newtonsoft.Json.JsonPropertyAttribute("productId")] public virtual string ProductId { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class ProductstatusesCustomBatchResponse : Google.Apis.Requests.IDirectResponseSchema { /// <summary>The result of the execution of the batch requests.</summary> [Newtonsoft.Json.JsonPropertyAttribute("entries")] public virtual System.Collections.Generic.IList<ProductstatusesCustomBatchResponseEntry> Entries { get; set; } /// <summary>Identifies what kind of resource this is. Value: the fixed string /// "content#productstatusesCustomBatchResponse".</summary> [Newtonsoft.Json.JsonPropertyAttribute("kind")] public virtual string Kind { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } /// <summary>A batch entry encoding a single non-batch productstatuses response.</summary> public class ProductstatusesCustomBatchResponseEntry : Google.Apis.Requests.IDirectResponseSchema { /// <summary>The ID of the request entry this entry responds to.</summary> [Newtonsoft.Json.JsonPropertyAttribute("batchId")] public virtual System.Nullable<long> BatchId { get; set; } /// <summary>A list of errors, if the request failed.</summary> [Newtonsoft.Json.JsonPropertyAttribute("errors")] public virtual Errors Errors { get; set; } /// <summary>Identifies what kind of resource this is. Value: the fixed string /// "content#productstatusesCustomBatchResponseEntry".</summary> [Newtonsoft.Json.JsonPropertyAttribute("kind")] public virtual string Kind { get; set; } /// <summary>The requested product status. Only defined if the request was successful.</summary> [Newtonsoft.Json.JsonPropertyAttribute("productStatus")] public virtual ProductStatus ProductStatus { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class ProductstatusesListResponse : Google.Apis.Requests.IDirectResponseSchema { /// <summary>Identifies what kind of resource this is. Value: the fixed string /// "content#productstatusesListResponse".</summary> [Newtonsoft.Json.JsonPropertyAttribute("kind")] public virtual string Kind { get; set; } /// <summary>The token for the retrieval of the next page of products statuses.</summary> [Newtonsoft.Json.JsonPropertyAttribute("nextPageToken")] public virtual string NextPageToken { get; set; } [Newtonsoft.Json.JsonPropertyAttribute("resources")] public virtual System.Collections.Generic.IList<ProductStatus> Resources { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class Promotion : Google.Apis.Requests.IDirectResponseSchema { /// <summary>[required] Amount of the promotion. The values here are the promotion applied to the unit price /// pretax and to the total of the tax amounts.</summary> [Newtonsoft.Json.JsonPropertyAttribute("promotionAmount")] public virtual Amount PromotionAmount { get; set; } /// <summary>[required] ID of the promotion.</summary> [Newtonsoft.Json.JsonPropertyAttribute("promotionId")] public virtual string PromotionId { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class RateGroup : Google.Apis.Requests.IDirectResponseSchema { /// <summary>A list of shipping labels defining the products to which this rate group applies to. This is a /// disjunction: only one of the labels has to match for the rate group to apply. May only be empty for the last /// rate group of a service. Required.</summary> [Newtonsoft.Json.JsonPropertyAttribute("applicableShippingLabels")] public virtual System.Collections.Generic.IList<string> ApplicableShippingLabels { get; set; } /// <summary>A list of carrier rates that can be referred to by mainTable or singleValue.</summary> [Newtonsoft.Json.JsonPropertyAttribute("carrierRates")] public virtual System.Collections.Generic.IList<CarrierRate> CarrierRates { get; set; } /// <summary>A table defining the rate group, when singleValue is not expressive enough. Can only be set if /// singleValue is not set.</summary> [Newtonsoft.Json.JsonPropertyAttribute("mainTable")] public virtual Table MainTable { get; set; } /// <summary>Name of the rate group. Optional. If set has to be unique within shipping service.</summary> [Newtonsoft.Json.JsonPropertyAttribute("name")] public virtual string Name { get; set; } /// <summary>The value of the rate group (e.g. flat rate $10). Can only be set if mainTable and subtables are /// not set.</summary> [Newtonsoft.Json.JsonPropertyAttribute("singleValue")] public virtual Value SingleValue { get; set; } /// <summary>A list of subtables referred to by mainTable. Can only be set if mainTable is set.</summary> [Newtonsoft.Json.JsonPropertyAttribute("subtables")] public virtual System.Collections.Generic.IList<Table> Subtables { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class RefundReason : Google.Apis.Requests.IDirectResponseSchema { [Newtonsoft.Json.JsonPropertyAttribute("description")] public virtual string Description { get; set; } [Newtonsoft.Json.JsonPropertyAttribute("reasonCode")] public virtual string ReasonCode { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class ReturnShipment : Google.Apis.Requests.IDirectResponseSchema { [Newtonsoft.Json.JsonPropertyAttribute("creationDate")] public virtual string CreationDate { get; set; } [Newtonsoft.Json.JsonPropertyAttribute("deliveryDate")] public virtual string DeliveryDate { get; set; } [Newtonsoft.Json.JsonPropertyAttribute("returnMethodType")] public virtual string ReturnMethodType { get; set; } [Newtonsoft.Json.JsonPropertyAttribute("shipmentId")] public virtual string ShipmentId { get; set; } [Newtonsoft.Json.JsonPropertyAttribute("shipmentTrackingInfos")] public virtual System.Collections.Generic.IList<ShipmentTrackingInfo> ShipmentTrackingInfos { get; set; } [Newtonsoft.Json.JsonPropertyAttribute("shippingDate")] public virtual string ShippingDate { get; set; } [Newtonsoft.Json.JsonPropertyAttribute("state")] public virtual string State { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class Row : Google.Apis.Requests.IDirectResponseSchema { /// <summary>The list of cells that constitute the row. Must have the same length as columnHeaders for two- /// dimensional tables, a length of 1 for one-dimensional tables. Required.</summary> [Newtonsoft.Json.JsonPropertyAttribute("cells")] public virtual System.Collections.Generic.IList<Value> Cells { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class Service : Google.Apis.Requests.IDirectResponseSchema { /// <summary>A boolean exposing the active status of the shipping service. Required.</summary> [Newtonsoft.Json.JsonPropertyAttribute("active")] public virtual System.Nullable<bool> Active { get; set; } /// <summary>The CLDR code of the currency to which this service applies. Must match that of the prices in rate /// groups.</summary> [Newtonsoft.Json.JsonPropertyAttribute("currency")] public virtual string Currency { get; set; } /// <summary>The CLDR territory code of the country to which the service applies. Required.</summary> [Newtonsoft.Json.JsonPropertyAttribute("deliveryCountry")] public virtual string DeliveryCountry { get; set; } /// <summary>Time spent in various aspects from order to the delivery of the product. Required.</summary> [Newtonsoft.Json.JsonPropertyAttribute("deliveryTime")] public virtual DeliveryTime DeliveryTime { get; set; } /// <summary>Eligibility for this service.</summary> [Newtonsoft.Json.JsonPropertyAttribute("eligibility")] public virtual string Eligibility { get; set; } /// <summary>Minimum order value for this service. If set, indicates that customers will have to spend at least /// this amount. All prices within a service must have the same currency.</summary> [Newtonsoft.Json.JsonPropertyAttribute("minimumOrderValue")] public virtual Price MinimumOrderValue { get; set; } /// <summary>Free-form name of the service. Must be unique within target account. Required.</summary> [Newtonsoft.Json.JsonPropertyAttribute("name")] public virtual string Name { get; set; } /// <summary>Shipping rate group definitions. Only the last one is allowed to have an empty /// applicableShippingLabels, which means "everything else". The other applicableShippingLabels must not /// overlap.</summary> [Newtonsoft.Json.JsonPropertyAttribute("rateGroups")] public virtual System.Collections.Generic.IList<RateGroup> RateGroups { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class ShipmentInvoice : Google.Apis.Requests.IDirectResponseSchema { /// <summary>[required] Invoice summary.</summary> [Newtonsoft.Json.JsonPropertyAttribute("invoiceSummary")] public virtual InvoiceSummary InvoiceSummary { get; set; } /// <summary>[required] Invoice details per line item.</summary> [Newtonsoft.Json.JsonPropertyAttribute("lineItemInvoices")] public virtual System.Collections.Generic.IList<ShipmentInvoiceLineItemInvoice> LineItemInvoices { get; set; } /// <summary>[required] ID of the shipment group. It is assigned by the merchant in the shipLineItems method and /// is used to group multiple line items that have the same kind of shipping charges.</summary> [Newtonsoft.Json.JsonPropertyAttribute("shipmentGroupId")] public virtual string ShipmentGroupId { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class ShipmentInvoiceLineItemInvoice : Google.Apis.Requests.IDirectResponseSchema { /// <summary>ID of the line item. Either lineItemId or productId must be set.</summary> [Newtonsoft.Json.JsonPropertyAttribute("lineItemId")] public virtual string LineItemId { get; set; } /// <summary>ID of the product. This is the REST ID used in the products service. Either lineItemId or productId /// must be set.</summary> [Newtonsoft.Json.JsonPropertyAttribute("productId")] public virtual string ProductId { get; set; } /// <summary>[required] The shipment unit ID is assigned by the merchant and defines individual quantities /// within a line item. The same ID can be assigned to units that are the same while units that differ must be /// assigned a different ID (for example: free or promotional units).</summary> [Newtonsoft.Json.JsonPropertyAttribute("shipmentUnitIds")] public virtual System.Collections.Generic.IList<string> ShipmentUnitIds { get; set; } /// <summary>[required] Invoice details for a single unit.</summary> [Newtonsoft.Json.JsonPropertyAttribute("unitInvoice")] public virtual UnitInvoice UnitInvoice { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class ShipmentTrackingInfo : Google.Apis.Requests.IDirectResponseSchema { [Newtonsoft.Json.JsonPropertyAttribute("carrier")] public virtual string Carrier { get; set; } [Newtonsoft.Json.JsonPropertyAttribute("trackingNumber")] public virtual string TrackingNumber { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } /// <summary>The merchant account's shipping settings. All methods except getsupportedcarriers and /// getsupportedholidays require the admin role.</summary> public class ShippingSettings : Google.Apis.Requests.IDirectResponseSchema { /// <summary>The ID of the account to which these account shipping settings belong. Ignored upon update, always /// present in get request responses.</summary> [Newtonsoft.Json.JsonPropertyAttribute("accountId")] public virtual System.Nullable<ulong> AccountId { get; set; } /// <summary>A list of postal code groups that can be referred to in services. Optional.</summary> [Newtonsoft.Json.JsonPropertyAttribute("postalCodeGroups")] public virtual System.Collections.Generic.IList<PostalCodeGroup> PostalCodeGroups { get; set; } /// <summary>The target account's list of services. Optional.</summary> [Newtonsoft.Json.JsonPropertyAttribute("services")] public virtual System.Collections.Generic.IList<Service> Services { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class ShippingsettingsCustomBatchRequest : Google.Apis.Requests.IDirectResponseSchema { /// <summary>The request entries to be processed in the batch.</summary> [Newtonsoft.Json.JsonPropertyAttribute("entries")] public virtual System.Collections.Generic.IList<ShippingsettingsCustomBatchRequestEntry> Entries { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } /// <summary>A batch entry encoding a single non-batch shippingsettings request.</summary> public class ShippingsettingsCustomBatchRequestEntry : Google.Apis.Requests.IDirectResponseSchema { /// <summary>The ID of the account for which to get/update account shipping settings.</summary> [Newtonsoft.Json.JsonPropertyAttribute("accountId")] public virtual System.Nullable<ulong> AccountId { get; set; } /// <summary>An entry ID, unique within the batch request.</summary> [Newtonsoft.Json.JsonPropertyAttribute("batchId")] public virtual System.Nullable<long> BatchId { get; set; } /// <summary>The ID of the managing account.</summary> [Newtonsoft.Json.JsonPropertyAttribute("merchantId")] public virtual System.Nullable<ulong> MerchantId { get; set; } [Newtonsoft.Json.JsonPropertyAttribute("method")] public virtual string Method { get; set; } /// <summary>The account shipping settings to update. Only defined if the method is update.</summary> [Newtonsoft.Json.JsonPropertyAttribute("shippingSettings")] public virtual ShippingSettings ShippingSettings { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class ShippingsettingsCustomBatchResponse : Google.Apis.Requests.IDirectResponseSchema { /// <summary>The result of the execution of the batch requests.</summary> [Newtonsoft.Json.JsonPropertyAttribute("entries")] public virtual System.Collections.Generic.IList<ShippingsettingsCustomBatchResponseEntry> Entries { get; set; } /// <summary>Identifies what kind of resource this is. Value: the fixed string /// "content#shippingsettingsCustomBatchResponse".</summary> [Newtonsoft.Json.JsonPropertyAttribute("kind")] public virtual string Kind { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } /// <summary>A batch entry encoding a single non-batch shipping settings response.</summary> public class ShippingsettingsCustomBatchResponseEntry : Google.Apis.Requests.IDirectResponseSchema { /// <summary>The ID of the request entry to which this entry responds.</summary> [Newtonsoft.Json.JsonPropertyAttribute("batchId")] public virtual System.Nullable<long> BatchId { get; set; } /// <summary>A list of errors defined if, and only if, the request failed.</summary> [Newtonsoft.Json.JsonPropertyAttribute("errors")] public virtual Errors Errors { get; set; } /// <summary>Identifies what kind of resource this is. Value: the fixed string /// "content#shippingsettingsCustomBatchResponseEntry".</summary> [Newtonsoft.Json.JsonPropertyAttribute("kind")] public virtual string Kind { get; set; } /// <summary>The retrieved or updated account shipping settings.</summary> [Newtonsoft.Json.JsonPropertyAttribute("shippingSettings")] public virtual ShippingSettings ShippingSettings { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class ShippingsettingsGetSupportedCarriersResponse : Google.Apis.Requests.IDirectResponseSchema { /// <summary>A list of supported carriers. May be empty.</summary> [Newtonsoft.Json.JsonPropertyAttribute("carriers")] public virtual System.Collections.Generic.IList<CarriersCarrier> Carriers { get; set; } /// <summary>Identifies what kind of resource this is. Value: the fixed string /// "content#shippingsettingsGetSupportedCarriersResponse".</summary> [Newtonsoft.Json.JsonPropertyAttribute("kind")] public virtual string Kind { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class ShippingsettingsGetSupportedHolidaysResponse : Google.Apis.Requests.IDirectResponseSchema { /// <summary>A list of holidays applicable for delivery guarantees. May be empty.</summary> [Newtonsoft.Json.JsonPropertyAttribute("holidays")] public virtual System.Collections.Generic.IList<HolidaysHoliday> Holidays { get; set; } /// <summary>Identifies what kind of resource this is. Value: the fixed string /// "content#shippingsettingsGetSupportedHolidaysResponse".</summary> [Newtonsoft.Json.JsonPropertyAttribute("kind")] public virtual string Kind { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class ShippingsettingsListResponse : Google.Apis.Requests.IDirectResponseSchema { /// <summary>Identifies what kind of resource this is. Value: the fixed string /// "content#shippingsettingsListResponse".</summary> [Newtonsoft.Json.JsonPropertyAttribute("kind")] public virtual string Kind { get; set; } /// <summary>The token for the retrieval of the next page of shipping settings.</summary> [Newtonsoft.Json.JsonPropertyAttribute("nextPageToken")] public virtual string NextPageToken { get; set; } [Newtonsoft.Json.JsonPropertyAttribute("resources")] public virtual System.Collections.Generic.IList<ShippingSettings> Resources { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class Table : Google.Apis.Requests.IDirectResponseSchema { /// <summary>Headers of the table's columns. Optional: if not set then the table has only one /// dimension.</summary> [Newtonsoft.Json.JsonPropertyAttribute("columnHeaders")] public virtual Headers ColumnHeaders { get; set; } /// <summary>Name of the table. Required for subtables, ignored for the main table.</summary> [Newtonsoft.Json.JsonPropertyAttribute("name")] public virtual string Name { get; set; } /// <summary>Headers of the table's rows. Required.</summary> [Newtonsoft.Json.JsonPropertyAttribute("rowHeaders")] public virtual Headers RowHeaders { get; set; } /// <summary>The list of rows that constitute the table. Must have the same length as rowHeaders. /// Required.</summary> [Newtonsoft.Json.JsonPropertyAttribute("rows")] public virtual System.Collections.Generic.IList<Row> Rows { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class TestOrder : Google.Apis.Requests.IDirectResponseSchema { /// <summary>The details of the customer who placed the order.</summary> [Newtonsoft.Json.JsonPropertyAttribute("customer")] public virtual TestOrderCustomer Customer { get; set; } /// <summary>Whether the orderinvoices service should support this order.</summary> [Newtonsoft.Json.JsonPropertyAttribute("enableOrderinvoices")] public virtual System.Nullable<bool> EnableOrderinvoices { get; set; } /// <summary>Identifies what kind of resource this is. Value: the fixed string "content#testOrder".</summary> [Newtonsoft.Json.JsonPropertyAttribute("kind")] public virtual string Kind { get; set; } /// <summary>Line items that are ordered. At least one line item must be provided.</summary> [Newtonsoft.Json.JsonPropertyAttribute("lineItems")] public virtual System.Collections.Generic.IList<TestOrderLineItem> LineItems { get; set; } /// <summary>Determines if test order must be pulled by merchant or pushed to merchant via push /// integration.</summary> [Newtonsoft.Json.JsonPropertyAttribute("notificationMode")] public virtual string NotificationMode { get; set; } /// <summary>The details of the payment method.</summary> [Newtonsoft.Json.JsonPropertyAttribute("paymentMethod")] public virtual TestOrderPaymentMethod PaymentMethod { get; set; } /// <summary>Identifier of one of the predefined delivery addresses for the delivery.</summary> [Newtonsoft.Json.JsonPropertyAttribute("predefinedDeliveryAddress")] public virtual string PredefinedDeliveryAddress { get; set; } /// <summary>Identifier of one of the predefined pickup details. Required for orders containing line items with /// shipping type pickup.</summary> [Newtonsoft.Json.JsonPropertyAttribute("predefinedPickupDetails")] public virtual string PredefinedPickupDetails { get; set; } /// <summary>Deprecated. Ignored if provided.</summary> [Newtonsoft.Json.JsonPropertyAttribute("promotions")] public virtual System.Collections.Generic.IList<OrderLegacyPromotion> Promotions { get; set; } /// <summary>The price of shipping for all items. Shipping tax is automatically calculated for orders where /// marketplace facilitator tax laws are applicable. Otherwise, tax settings from Merchant Center are applied. /// Note that shipping is not taxed in certain states.</summary> [Newtonsoft.Json.JsonPropertyAttribute("shippingCost")] public virtual Price ShippingCost { get; set; } /// <summary>Deprecated. Ignored if provided.</summary> [Newtonsoft.Json.JsonPropertyAttribute("shippingCostTax")] public virtual Price ShippingCostTax { get; set; } /// <summary>The requested shipping option.</summary> [Newtonsoft.Json.JsonPropertyAttribute("shippingOption")] public virtual string ShippingOption { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class TestOrderCustomer : Google.Apis.Requests.IDirectResponseSchema { /// <summary>Email address of the customer.</summary> [Newtonsoft.Json.JsonPropertyAttribute("email")] public virtual string Email { get; set; } /// <summary>Deprecated. Please use marketingRightsInfo instead.</summary> [Newtonsoft.Json.JsonPropertyAttribute("explicitMarketingPreference")] public virtual System.Nullable<bool> ExplicitMarketingPreference { get; set; } /// <summary>Full name of the customer.</summary> [Newtonsoft.Json.JsonPropertyAttribute("fullName")] public virtual string FullName { get; set; } /// <summary>Customer's marketing preferences.</summary> [Newtonsoft.Json.JsonPropertyAttribute("marketingRightsInfo")] public virtual TestOrderCustomerMarketingRightsInfo MarketingRightsInfo { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class TestOrderCustomerMarketingRightsInfo : Google.Apis.Requests.IDirectResponseSchema { /// <summary>Last know user use selection regards marketing preferences. In certain cases selection might not be /// known, so this field would be empty.</summary> [Newtonsoft.Json.JsonPropertyAttribute("explicitMarketingPreference")] public virtual string ExplicitMarketingPreference { get; set; } /// <summary>Timestamp when last time marketing preference was updated. Could be empty, if user wasn't offered a /// selection yet.</summary> [Newtonsoft.Json.JsonPropertyAttribute("lastUpdatedTimestamp")] public virtual string LastUpdatedTimestamp { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class TestOrderLineItem : Google.Apis.Requests.IDirectResponseSchema { /// <summary>Product data from the time of the order placement.</summary> [Newtonsoft.Json.JsonPropertyAttribute("product")] public virtual TestOrderLineItemProduct Product { get; set; } /// <summary>Number of items ordered.</summary> [Newtonsoft.Json.JsonPropertyAttribute("quantityOrdered")] public virtual System.Nullable<long> QuantityOrdered { get; set; } /// <summary>Details of the return policy for the line item.</summary> [Newtonsoft.Json.JsonPropertyAttribute("returnInfo")] public virtual OrderLineItemReturnInfo ReturnInfo { get; set; } /// <summary>Details of the requested shipping for the line item.</summary> [Newtonsoft.Json.JsonPropertyAttribute("shippingDetails")] public virtual OrderLineItemShippingDetails ShippingDetails { get; set; } /// <summary>Deprecated. Ignored if provided.</summary> [Newtonsoft.Json.JsonPropertyAttribute("unitTax")] public virtual Price UnitTax { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class TestOrderLineItemProduct : Google.Apis.Requests.IDirectResponseSchema { /// <summary>Brand of the item.</summary> [Newtonsoft.Json.JsonPropertyAttribute("brand")] public virtual string Brand { get; set; } /// <summary>Deprecated.</summary> [Newtonsoft.Json.JsonPropertyAttribute("channel")] public virtual string Channel { get; set; } /// <summary>Condition or state of the item.</summary> [Newtonsoft.Json.JsonPropertyAttribute("condition")] public virtual string Condition { get; set; } /// <summary>The two-letter ISO 639-1 language code for the item.</summary> [Newtonsoft.Json.JsonPropertyAttribute("contentLanguage")] public virtual string ContentLanguage { get; set; } /// <summary>Fees for the item. Optional.</summary> [Newtonsoft.Json.JsonPropertyAttribute("fees")] public virtual System.Collections.Generic.IList<OrderLineItemProductFee> Fees { get; set; } /// <summary>Global Trade Item Number (GTIN) of the item. Optional.</summary> [Newtonsoft.Json.JsonPropertyAttribute("gtin")] public virtual string Gtin { get; set; } /// <summary>URL of an image of the item.</summary> [Newtonsoft.Json.JsonPropertyAttribute("imageLink")] public virtual string ImageLink { get; set; } /// <summary>Shared identifier for all variants of the same product. Optional.</summary> [Newtonsoft.Json.JsonPropertyAttribute("itemGroupId")] public virtual string ItemGroupId { get; set; } /// <summary>Manufacturer Part Number (MPN) of the item. Optional.</summary> [Newtonsoft.Json.JsonPropertyAttribute("mpn")] public virtual string Mpn { get; set; } /// <summary>An identifier of the item.</summary> [Newtonsoft.Json.JsonPropertyAttribute("offerId")] public virtual string OfferId { get; set; } /// <summary>The price for the product. Tax is automatically calculated for orders where marketplace facilitator /// tax laws are applicable. Otherwise, tax settings from Merchant Center are applied.</summary> [Newtonsoft.Json.JsonPropertyAttribute("price")] public virtual Price Price { get; set; } /// <summary>The CLDR territory code of the target country of the product.</summary> [Newtonsoft.Json.JsonPropertyAttribute("targetCountry")] public virtual string TargetCountry { get; set; } /// <summary>The title of the product.</summary> [Newtonsoft.Json.JsonPropertyAttribute("title")] public virtual string Title { get; set; } /// <summary>Variant attributes for the item. Optional.</summary> [Newtonsoft.Json.JsonPropertyAttribute("variantAttributes")] public virtual System.Collections.Generic.IList<OrderLineItemProductVariantAttribute> VariantAttributes { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class TestOrderPaymentMethod : Google.Apis.Requests.IDirectResponseSchema { /// <summary>The card expiration month (January = 1, February = 2 etc.).</summary> [Newtonsoft.Json.JsonPropertyAttribute("expirationMonth")] public virtual System.Nullable<int> ExpirationMonth { get; set; } /// <summary>The card expiration year (4-digit, e.g. 2015).</summary> [Newtonsoft.Json.JsonPropertyAttribute("expirationYear")] public virtual System.Nullable<int> ExpirationYear { get; set; } /// <summary>The last four digits of the card number.</summary> [Newtonsoft.Json.JsonPropertyAttribute("lastFourDigits")] public virtual string LastFourDigits { get; set; } /// <summary>The billing address.</summary> [Newtonsoft.Json.JsonPropertyAttribute("predefinedBillingAddress")] public virtual string PredefinedBillingAddress { get; set; } /// <summary>The type of instrument. Note that real orders might have different values than the four values /// accepted by createTestOrder.</summary> [Newtonsoft.Json.JsonPropertyAttribute("type")] public virtual string Type { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class TransitTable : Google.Apis.Requests.IDirectResponseSchema { /// <summary>A list of postal group names. The last value can be "all other locations". Example: ["zone 1", /// "zone 2", "all other locations"]. The referred postal code groups must match the delivery country of the /// service.</summary> [Newtonsoft.Json.JsonPropertyAttribute("postalCodeGroupNames")] public virtual System.Collections.Generic.IList<string> PostalCodeGroupNames { get; set; } [Newtonsoft.Json.JsonPropertyAttribute("rows")] public virtual System.Collections.Generic.IList<TransitTableTransitTimeRow> Rows { get; set; } /// <summary>A list of transit time labels. The last value can be "all other labels". Example: ["food", /// "electronics", "all other labels"].</summary> [Newtonsoft.Json.JsonPropertyAttribute("transitTimeLabels")] public virtual System.Collections.Generic.IList<string> TransitTimeLabels { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class TransitTableTransitTimeRow : Google.Apis.Requests.IDirectResponseSchema { [Newtonsoft.Json.JsonPropertyAttribute("values")] public virtual System.Collections.Generic.IList<TransitTableTransitTimeRowTransitTimeValue> Values { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class TransitTableTransitTimeRowTransitTimeValue : Google.Apis.Requests.IDirectResponseSchema { /// <summary>Must be greater than or equal to minTransitTimeInDays.</summary> [Newtonsoft.Json.JsonPropertyAttribute("maxTransitTimeInDays")] public virtual System.Nullable<long> MaxTransitTimeInDays { get; set; } /// <summary>Transit time range (min-max) in business days. 0 means same day delivery, 1 means next day /// delivery.</summary> [Newtonsoft.Json.JsonPropertyAttribute("minTransitTimeInDays")] public virtual System.Nullable<long> MinTransitTimeInDays { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class UnitInvoice : Google.Apis.Requests.IDirectResponseSchema { /// <summary>Additional charges for a unit, e.g. shipping costs.</summary> [Newtonsoft.Json.JsonPropertyAttribute("additionalCharges")] public virtual System.Collections.Generic.IList<UnitInvoiceAdditionalCharge> AdditionalCharges { get; set; } /// <summary>Deprecated.</summary> [Newtonsoft.Json.JsonPropertyAttribute("promotions")] public virtual System.Collections.Generic.IList<Promotion> Promotions { get; set; } /// <summary>[required] Price of the unit, before applying taxes.</summary> [Newtonsoft.Json.JsonPropertyAttribute("unitPricePretax")] public virtual Price UnitPricePretax { get; set; } /// <summary>Tax amounts to apply to the unit price.</summary> [Newtonsoft.Json.JsonPropertyAttribute("unitPriceTaxes")] public virtual System.Collections.Generic.IList<UnitInvoiceTaxLine> UnitPriceTaxes { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class UnitInvoiceAdditionalCharge : Google.Apis.Requests.IDirectResponseSchema { /// <summary>[required] Amount of the additional charge.</summary> [Newtonsoft.Json.JsonPropertyAttribute("additionalChargeAmount")] public virtual Amount AdditionalChargeAmount { get; set; } /// <summary>Deprecated.</summary> [Newtonsoft.Json.JsonPropertyAttribute("additionalChargePromotions")] public virtual System.Collections.Generic.IList<Promotion> AdditionalChargePromotions { get; set; } /// <summary>[required] Type of the additional charge.</summary> [Newtonsoft.Json.JsonPropertyAttribute("type")] public virtual string Type { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class UnitInvoiceTaxLine : Google.Apis.Requests.IDirectResponseSchema { /// <summary>[required] Tax amount for the tax type.</summary> [Newtonsoft.Json.JsonPropertyAttribute("taxAmount")] public virtual Price TaxAmount { get; set; } /// <summary>Optional name of the tax type. This should only be provided if taxType is otherFeeTax.</summary> [Newtonsoft.Json.JsonPropertyAttribute("taxName")] public virtual string TaxName { get; set; } /// <summary>[required] Type of the tax.</summary> [Newtonsoft.Json.JsonPropertyAttribute("taxType")] public virtual string TaxType { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } /// <summary>The single value of a rate group or the value of a rate group table's cell. Exactly one of noShipping, /// flatRate, pricePercentage, carrierRateName, subtableName must be set.</summary> public class Value : Google.Apis.Requests.IDirectResponseSchema { /// <summary>The name of a carrier rate referring to a carrier rate defined in the same rate group. Can only be /// set if all other fields are not set.</summary> [Newtonsoft.Json.JsonPropertyAttribute("carrierRateName")] public virtual string CarrierRateName { get; set; } /// <summary>A flat rate. Can only be set if all other fields are not set.</summary> [Newtonsoft.Json.JsonPropertyAttribute("flatRate")] public virtual Price FlatRate { get; set; } /// <summary>If true, then the product can't ship. Must be true when set, can only be set if all other fields /// are not set.</summary> [Newtonsoft.Json.JsonPropertyAttribute("noShipping")] public virtual System.Nullable<bool> NoShipping { get; set; } /// <summary>A percentage of the price represented as a number in decimal notation (e.g., "5.4"). Can only be /// set if all other fields are not set.</summary> [Newtonsoft.Json.JsonPropertyAttribute("pricePercentage")] public virtual string PricePercentage { get; set; } /// <summary>The name of a subtable. Can only be set in table cells (i.e., not for single values), and only if /// all other fields are not set.</summary> [Newtonsoft.Json.JsonPropertyAttribute("subtableName")] public virtual string SubtableName { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } public class Weight : Google.Apis.Requests.IDirectResponseSchema { /// <summary>The weight unit.</summary> [Newtonsoft.Json.JsonPropertyAttribute("unit")] public virtual string Unit { get; set; } /// <summary>The weight represented as a number.</summary> [Newtonsoft.Json.JsonPropertyAttribute("value")] public virtual string Value { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } }
46.05309
219
0.610979
[ "Apache-2.0" ]
dirtyarteaga/google-api-dotnet-client
Src/Generated/Google.Apis.ShoppingContent.v2/Google.Apis.ShoppingContent.v2.cs
687,021
C#
using System.Collections.Generic; namespace EnTier.Services { public interface ICrudService<TEntity, in TDomainId> where TEntity : class, new() { IEnumerable<TEntity> GetAll(); TEntity GetById(TDomainId id); TEntity Add(TEntity value); TEntity Update(TEntity value); TEntity Update(TDomainId id,TEntity value); bool Remove(TEntity value); bool RemoveById(TDomainId id); } }
21.714286
85
0.649123
[ "MIT" ]
Acidmanic/EnTier
EnTier/Services/ICrudService.cs
456
C#
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System.Threading.Tasks; using Microsoft.CodeAnalysis.CSharp; using Microsoft.CodeAnalysis.CSharp.CodeStyle; using Microsoft.CodeAnalysis.CSharp.Test.Utilities; using Microsoft.CodeAnalysis.Editor.UnitTests.CodeActions; using Microsoft.CodeAnalysis.Editor.UnitTests.Diagnostics.NamingStyles; using Microsoft.CodeAnalysis.ImplementType; using Microsoft.CodeAnalysis.Test.Utilities; using Microsoft.CodeAnalysis.Testing; using Roslyn.Test.Utilities; using Xunit; using VerifyCS = Microsoft.CodeAnalysis.Editor.UnitTests.CodeActions.CSharpCodeFixVerifier< Microsoft.CodeAnalysis.Testing.EmptyDiagnosticAnalyzer, Microsoft.CodeAnalysis.CSharp.ImplementInterface.CSharpImplementInterfaceCodeFixProvider>; namespace Microsoft.CodeAnalysis.Editor.CSharp.UnitTests.ImplementInterface { public class ImplementInterfaceTests { private readonly NamingStylesTestOptionSets _options = new NamingStylesTestOptionSets(LanguageNames.CSharp); private static OptionsCollection AllOptionsOff => new OptionsCollection(LanguageNames.CSharp) { { CSharpCodeStyleOptions.PreferExpressionBodiedMethods, CSharpCodeStyleOptions.NeverWithSilentEnforcement }, { CSharpCodeStyleOptions.PreferExpressionBodiedConstructors, CSharpCodeStyleOptions.NeverWithSilentEnforcement }, { CSharpCodeStyleOptions.PreferExpressionBodiedOperators, CSharpCodeStyleOptions.NeverWithSilentEnforcement }, { CSharpCodeStyleOptions.PreferExpressionBodiedAccessors, CSharpCodeStyleOptions.NeverWithSilentEnforcement }, { CSharpCodeStyleOptions.PreferExpressionBodiedProperties, CSharpCodeStyleOptions.NeverWithSilentEnforcement }, { CSharpCodeStyleOptions.PreferExpressionBodiedIndexers, CSharpCodeStyleOptions.NeverWithSilentEnforcement }, }; private static OptionsCollection AllOptionsOn => new OptionsCollection(LanguageNames.CSharp) { { CSharpCodeStyleOptions.PreferExpressionBodiedMethods, CSharpCodeStyleOptions.WhenPossibleWithSilentEnforcement }, { CSharpCodeStyleOptions.PreferExpressionBodiedConstructors, CSharpCodeStyleOptions.WhenPossibleWithSilentEnforcement }, { CSharpCodeStyleOptions.PreferExpressionBodiedOperators, CSharpCodeStyleOptions.WhenPossibleWithSilentEnforcement }, { CSharpCodeStyleOptions.PreferExpressionBodiedAccessors, CSharpCodeStyleOptions.WhenPossibleWithSilentEnforcement }, { CSharpCodeStyleOptions.PreferExpressionBodiedProperties, CSharpCodeStyleOptions.WhenPossibleWithSilentEnforcement }, { CSharpCodeStyleOptions.PreferExpressionBodiedIndexers, CSharpCodeStyleOptions.WhenPossibleWithSilentEnforcement }, }; private static OptionsCollection AccessorOptionsOn => new OptionsCollection(LanguageNames.CSharp) { { CSharpCodeStyleOptions.PreferExpressionBodiedMethods, CSharpCodeStyleOptions.NeverWithSilentEnforcement }, { CSharpCodeStyleOptions.PreferExpressionBodiedConstructors, CSharpCodeStyleOptions.NeverWithSilentEnforcement }, { CSharpCodeStyleOptions.PreferExpressionBodiedOperators, CSharpCodeStyleOptions.NeverWithSilentEnforcement }, { CSharpCodeStyleOptions.PreferExpressionBodiedAccessors, CSharpCodeStyleOptions.WhenPossibleWithSilentEnforcement }, { CSharpCodeStyleOptions.PreferExpressionBodiedProperties, CSharpCodeStyleOptions.NeverWithSilentEnforcement }, { CSharpCodeStyleOptions.PreferExpressionBodiedIndexers, CSharpCodeStyleOptions.NeverWithSilentEnforcement }, }; internal static async Task TestWithAllCodeStyleOptionsOffAsync( string initialMarkup, string expectedMarkup, (string equivalenceKey, int index)? codeAction = null) { await new VerifyCS.Test { TestCode = initialMarkup, FixedCode = expectedMarkup, Options = { AllOptionsOff }, CodeActionEquivalenceKey = codeAction?.equivalenceKey, CodeActionIndex = codeAction?.index, }.RunAsync(); } internal static async Task TestWithAllCodeStyleOptionsOnAsync(string initialMarkup, string expectedMarkup) { await new VerifyCS.Test { TestCode = initialMarkup, FixedCode = expectedMarkup, Options = { AllOptionsOn }, }.RunAsync(); } internal static async Task TestWithAccessorCodeStyleOptionsOnAsync(string initialMarkup, string expectedMarkup) { await new VerifyCS.Test { TestCode = initialMarkup, FixedCode = expectedMarkup, Options = { AccessorOptionsOn }, }.RunAsync(); } private static async Task TestInRegularAndScriptAsync( string initialMarkup, string expectedMarkup, (string equivalenceKey, int index)? codeAction = null) { await new VerifyCS.Test { TestCode = initialMarkup, FixedCode = expectedMarkup, CodeActionEquivalenceKey = codeAction?.equivalenceKey, CodeActionIndex = codeAction?.index, }.RunAsync(); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestMethod() { await TestWithAllCodeStyleOptionsOffAsync( @"interface IInterface { void Method1(); } class Class : {|CS0535:IInterface|} { }", @"interface IInterface { void Method1(); } class Class : IInterface { public void Method1() { throw new System.NotImplementedException(); } }"); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestMethodInRecord() { await new VerifyCS.Test { LanguageVersion = LanguageVersion.Preview, TestCode = @"interface IInterface { void Method1(); } record Record : {|CS0535:IInterface|} { }", FixedCode = @"interface IInterface { void Method1(); } record Record : IInterface { public void Method1() { throw new System.NotImplementedException(); } }", }.RunAsync(); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] [WorkItem(42986, "https://github.com/dotnet/roslyn/issues/42986")] public async Task TestMethodWithNativeIntegers() { var nativeIntegerAttributeDefinition = @" namespace System.Runtime.CompilerServices { [System.AttributeUsage(AttributeTargets.All)] public sealed class NativeIntegerAttribute : System.Attribute { public NativeIntegerAttribute() { } public NativeIntegerAttribute(bool[] flags) { } } }"; // Note: we're putting the attribute by hand to simulate metadata await new VerifyCS.Test { LanguageVersion = LanguageVersion.CSharp9, TestCode = @"interface IInterface { [return: {|CS8335:System.Runtime.CompilerServices.NativeInteger(new[] { true, true })|}] (nint, nuint) Method(nint x, nuint x2); } class Class : {|CS0535:IInterface|} { }" + nativeIntegerAttributeDefinition, FixedCode = @"interface IInterface { [return: {|CS8335:System.Runtime.CompilerServices.NativeInteger(new[] { true, true })|}] (nint, nuint) Method(nint x, nuint x2); } class Class : IInterface { public (nint, nuint) Method(nint x, nuint x2) { throw new System.NotImplementedException(); } }" + nativeIntegerAttributeDefinition, Options = { AllOptionsOff }, }.RunAsync(); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestMethodWithTuple() { await TestWithAllCodeStyleOptionsOffAsync( @"interface IInterface { (int, int) Method((string, string) x); } class Class : {|CS0535:IInterface|} { }", @"interface IInterface { (int, int) Method((string, string) x); } class Class : IInterface { public (int, int) Method((string, string) x) { throw new System.NotImplementedException(); } }"); } [WorkItem(16793, "https://github.com/dotnet/roslyn/issues/16793")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestMethodWithValueTupleArity1() { await TestWithAllCodeStyleOptionsOffAsync( @" using System; interface I { ValueTuple<object> F(); } class C : {|CS0535:I|} { }", @" using System; interface I { ValueTuple<object> F(); } class C : I { public ValueTuple<object> F() { throw new NotImplementedException(); } }"); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestExpressionBodiedMethod1() { await TestWithAllCodeStyleOptionsOnAsync( @"interface IInterface { void Method1(); } class Class : {|CS0535:IInterface|} { }", @"interface IInterface { void Method1(); } class Class : IInterface { public void Method1() => throw new System.NotImplementedException(); }"); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface), CompilerTrait(CompilerFeature.Tuples)] public async Task TupleWithNamesInMethod() { // Note: we're putting the attribute by hand to simulate metadata await TestWithAllCodeStyleOptionsOffAsync( @"interface IInterface { [return: {|CS8138:System.Runtime.CompilerServices.TupleElementNames(new[] { ""a"", ""b"" })|}] (int a, int b)[] Method1((int c, string) x); } class Class : {|CS0535:IInterface|} { }", @"interface IInterface { [return: {|CS8138:System.Runtime.CompilerServices.TupleElementNames(new[] { ""a"", ""b"" })|}] (int a, int b)[] Method1((int c, string) x); } class Class : IInterface { public (int a, int b)[] Method1((int c, string) x) { throw new System.NotImplementedException(); } }"); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface), CompilerTrait(CompilerFeature.Tuples)] public async Task TupleWithNamesInMethod_Explicitly() { await TestWithAllCodeStyleOptionsOffAsync( @"interface IInterface { [return: {|CS8138:System.Runtime.CompilerServices.TupleElementNames(new[] { ""a"", ""b"" })|}] (int a, int b)[] Method1((int c, string) x); } class Class : {|CS0535:IInterface|} { }", @"interface IInterface { [return: {|CS8138:System.Runtime.CompilerServices.TupleElementNames(new[] { ""a"", ""b"" })|}] (int a, int b)[] Method1((int c, string) x); } class Class : IInterface { (int a, int b)[] IInterface.Method1((int c, string) x) { throw new System.NotImplementedException(); } }", codeAction: ("True;False;False:global::IInterface;TestProject;Microsoft.CodeAnalysis.ImplementInterface.AbstractImplementInterfaceService+ImplementInterfaceCodeAction;", 1)); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface), CompilerTrait(CompilerFeature.Tuples)] public async Task TupleWithNamesInProperty() { await TestWithAllCodeStyleOptionsOffAsync( @"interface IInterface { [{|CS8138:System.Runtime.CompilerServices.TupleElementNames(new[] { ""a"", ""b"" })|}] (int a, int b)[] Property1 { [return: {|CS8138:System.Runtime.CompilerServices.TupleElementNames(new[] { ""a"", ""b"" })|}] get; [param: {|CS8138:System.Runtime.CompilerServices.TupleElementNames(new[] { ""a"", ""b"" })|}] set; } } class Class : {|CS0535:IInterface|} { }", @"interface IInterface { [{|CS8138:System.Runtime.CompilerServices.TupleElementNames(new[] { ""a"", ""b"" })|}] (int a, int b)[] Property1 { [return: {|CS8138:System.Runtime.CompilerServices.TupleElementNames(new[] { ""a"", ""b"" })|}] get; [param: {|CS8138:System.Runtime.CompilerServices.TupleElementNames(new[] { ""a"", ""b"" })|}] set; } } class Class : IInterface { public (int a, int b)[] Property1 { get { throw new System.NotImplementedException(); } set { throw new System.NotImplementedException(); } } }"); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface), CompilerTrait(CompilerFeature.Tuples)] public async Task TupleWithNamesInEvent() { await new VerifyCS.Test { TestCode = @"interface IInterface { [{|CS8138:System.Runtime.CompilerServices.TupleElementNames(new[] { ""a"", ""b"" })|}] event System.Func<(int a, int b)> Event1; } class Class : {|CS0535:IInterface|} { }", FixedCode = @"using System; interface IInterface { [{|CS8138:System.Runtime.CompilerServices.TupleElementNames(new[] { ""a"", ""b"" })|}] event System.Func<(int a, int b)> Event1; } class Class : IInterface { public event Func<(int a, int b)> Event1; }", Options = { AllOptionsOff }, }.RunAsync(); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task NoDynamicAttributeInMethod() { await TestWithAllCodeStyleOptionsOffAsync( @"interface IInterface { [return: {|CS1970:System.Runtime.CompilerServices.DynamicAttribute()|}] object Method1(); } class Class : {|CS0535:IInterface|} { }", @"interface IInterface { [return: {|CS1970:System.Runtime.CompilerServices.DynamicAttribute()|}] object Method1(); } class Class : IInterface { public object Method1() { throw new System.NotImplementedException(); } }"); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task NoNullableAttributesInMethodFromMetadata() { var test = new VerifyCS.Test { TestState = { Sources = { @" #nullable enable using System; class C : {|CS0535:{|CS0535:IInterface|}|} { }", }, AdditionalProjects = { ["Assembly1"] = { Sources = { @" #nullable enable public interface IInterface { void M(string? s1, string s2); string this[string? s1, string s2] { get; set; } }" }, }, }, AdditionalProjectReferences = { "Assembly1", }, }, FixedState = { Sources = { @" #nullable enable using System; class C : IInterface { public string this[string? s1, string s2] { get { throw new NotImplementedException(); } set { throw new NotImplementedException(); } } public void M(string? s1, string s2) { throw new NotImplementedException(); } }", }, }, CodeActionEquivalenceKey = "False;False;True:global::IInterface;Assembly1;Microsoft.CodeAnalysis.ImplementInterface.AbstractImplementInterfaceService+ImplementInterfaceCodeAction;", CodeActionIndex = 0, }; test.Options.AddRange(AllOptionsOff); await test.RunAsync(); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestMethodWhenClassBracesAreMissing() { await TestWithAllCodeStyleOptionsOffAsync( @"interface IInterface { void Method1(); } class Class : {|CS0535:IInterface|}{|CS1513:|}{|CS1514:|}", @"interface IInterface { void Method1(); } class Class : IInterface { public void Method1() { throw new System.NotImplementedException(); } } "); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestInheritance1() { await TestWithAllCodeStyleOptionsOffAsync( @"interface IInterface1 { void Method1(); } interface IInterface2 : IInterface1 { } class Class : {|CS0535:IInterface2|} { }", @"interface IInterface1 { void Method1(); } interface IInterface2 : IInterface1 { } class Class : IInterface2 { public void Method1() { throw new System.NotImplementedException(); } }"); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestInheritance2() { await TestWithAllCodeStyleOptionsOffAsync( @"interface IInterface1 { } interface IInterface2 : IInterface1 { void Method1(); } class Class : {|CS0535:IInterface2|} { }", @"interface IInterface1 { } interface IInterface2 : IInterface1 { void Method1(); } class Class : IInterface2 { public void Method1() { throw new System.NotImplementedException(); } }"); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestInheritance3() { await TestWithAllCodeStyleOptionsOffAsync( @"interface IInterface1 { void Method1(); } interface IInterface2 : IInterface1 { void Method2(); } class Class : {|CS0535:{|CS0535:IInterface2|}|} { }", @"interface IInterface1 { void Method1(); } interface IInterface2 : IInterface1 { void Method2(); } class Class : IInterface2 { public void Method1() { throw new System.NotImplementedException(); } public void Method2() { throw new System.NotImplementedException(); } }"); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestInheritanceMatchingMethod() { await TestWithAllCodeStyleOptionsOffAsync( @"interface IInterface1 { void Method1(); } interface IInterface2 : IInterface1 { void Method1(); } class Class : {|CS0535:{|CS0535:IInterface2|}|} { }", @"interface IInterface1 { void Method1(); } interface IInterface2 : IInterface1 { void Method1(); } class Class : IInterface2 { public void Method1() { throw new System.NotImplementedException(); } }"); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestExistingConflictingMethodReturnType() { await TestWithAllCodeStyleOptionsOffAsync( @"interface IInterface1 { void Method1(); } class Class : {|CS0738:IInterface1|} { public int Method1() { return 0; } }", @"interface IInterface1 { void Method1(); } class Class : IInterface1 { public int Method1() { return 0; } void IInterface1.Method1() { throw new System.NotImplementedException(); } }"); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestExistingConflictingMethodParameters() { await TestWithAllCodeStyleOptionsOffAsync( @"interface IInterface1 { void Method1(int i); } class Class : {|CS0535:IInterface1|} { public void Method1(string i) { } }", @"interface IInterface1 { void Method1(int i); } class Class : IInterface1 { public void Method1(string i) { } public void Method1(int i) { throw new System.NotImplementedException(); } }"); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestImplementGenericType() { await TestWithAllCodeStyleOptionsOffAsync( @"interface IInterface1<T> { void Method1(T t); } class Class : {|CS0535:IInterface1<int>|} { }", @"interface IInterface1<T> { void Method1(T t); } class Class : IInterface1<int> { public void Method1(int t) { throw new System.NotImplementedException(); } }"); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestImplementGenericTypeWithGenericMethod() { await TestWithAllCodeStyleOptionsOffAsync( @"interface IInterface1<T> { void Method1<U>(T t, U u); } class Class : {|CS0535:IInterface1<int>|} { }", @"interface IInterface1<T> { void Method1<U>(T t, U u); } class Class : IInterface1<int> { public void Method1<U>(int t, U u) { throw new System.NotImplementedException(); } }"); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestImplementGenericTypeWithGenericMethodWithNaturalConstraint() { await TestWithAllCodeStyleOptionsOffAsync( @"using System.Collections.Generic; interface IInterface1<T> { void Method1<U>(T t, U u) where U : IList<T>; } class Class : {|CS0535:IInterface1<int>|} { }", @"using System.Collections.Generic; interface IInterface1<T> { void Method1<U>(T t, U u) where U : IList<T>; } class Class : IInterface1<int> { public void Method1<U>(int t, U u) where U : IList<int> { throw new System.NotImplementedException(); } }"); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestImplementGenericTypeWithGenericMethodWithUnexpressibleConstraint() { await TestWithAllCodeStyleOptionsOffAsync( @"interface IInterface1<T> { void Method1<U>(T t, U u) where U : T; } class Class : {|CS0535:IInterface1<int>|} { }", @"interface IInterface1<T> { void Method1<U>(T t, U u) where U : T; } class Class : IInterface1<int> { void IInterface1<int>.Method1<U>(int t, U u) { throw new System.NotImplementedException(); } }"); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestArrayType() { await TestWithAllCodeStyleOptionsOffAsync( @"interface I { string[] M(); } class C : {|CS0535:I|} { }", @"interface I { string[] M(); } class C : I { public string[] M() { throw new System.NotImplementedException(); } }"); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestImplementThroughFieldMember() { await TestWithAllCodeStyleOptionsOffAsync( @"interface I { void Method1(); } class C : {|CS0535:I|} { I i; }", @"interface I { void Method1(); } class C : I { I i; public void Method1() { i.Method1(); } }", codeAction: ("False;False;False:global::I;TestProject;Microsoft.CodeAnalysis.ImplementInterface.AbstractImplementInterfaceService+ImplementInterfaceCodeAction;i", 1)); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestImplementThroughFieldMember_FixAll_SameMemberInDifferentType() { await TestWithAllCodeStyleOptionsOffAsync( @"interface I { void Method1(); } class C : {|CS0535:I|} { I i; } class D : {|CS0535:I|} { I i; }", @"interface I { void Method1(); } class C : I { I i; public void Method1() { i.Method1(); } } class D : I { I i; public void Method1() { i.Method1(); } }", codeAction: ("False;False;False:global::I;TestProject;Microsoft.CodeAnalysis.ImplementInterface.AbstractImplementInterfaceService+ImplementInterfaceCodeAction;i", 1)); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestImplementThroughFieldMember_FixAll_FieldInOnePropInAnother() { await TestWithAllCodeStyleOptionsOffAsync( @"interface I { void Method1(); } class C : {|CS0535:I|} { I i; } class D : {|CS0535:I|} { I i { get; } }", @"interface I { void Method1(); } class C : I { I i; public void Method1() { i.Method1(); } } class D : I { I i { get; } public void Method1() { i.Method1(); } }", codeAction: ("False;False;False:global::I;TestProject;Microsoft.CodeAnalysis.ImplementInterface.AbstractImplementInterfaceService+ImplementInterfaceCodeAction;i", 1)); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestImplementThroughFieldMember_FixAll_FieldInOneNonViableInAnother() { var test = new VerifyCS.Test { TestCode = @"interface I { void Method1(); } class C : {|CS0535:I|} { I i; } class D : {|CS0535:I|} { int i; }", FixedState = { Sources = { @"interface I { void Method1(); } class C : I { I i; public void Method1() { i.Method1(); } } class D : {|CS0535:I|} { int i; }", }, MarkupHandling = MarkupMode.Allow, }, CodeFixTestBehaviors = CodeFixTestBehaviors.FixOne, CodeActionEquivalenceKey = "False;False;False:global::I;TestProject;Microsoft.CodeAnalysis.ImplementInterface.AbstractImplementInterfaceService+ImplementInterfaceCodeAction;i", CodeActionIndex = 1, }; test.Options.AddRange(AllOptionsOff); await test.RunAsync(); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestImplementThroughFieldMemberInterfaceWithIndexer() { await TestWithAllCodeStyleOptionsOffAsync( @"interface IGoo { int this[int x] { get; set; } } class Goo : {|CS0535:IGoo|} { IGoo f; }", @"interface IGoo { int this[int x] { get; set; } } class Goo : IGoo { IGoo f; public int this[int x] { get { return f[x]; } set { f[x] = value; } } }", codeAction: ("False;False;False:global::IGoo;TestProject;Microsoft.CodeAnalysis.ImplementInterface.AbstractImplementInterfaceService+ImplementInterfaceCodeAction;f", 1)); } [WorkItem(472, "https://github.com/dotnet/roslyn/issues/472")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestImplementThroughFieldMemberRemoveUnnecessaryCast() { await TestWithAllCodeStyleOptionsOffAsync( @"using System.Collections; sealed class X : {|CS0535:IComparer|} { X x; }", @"using System.Collections; sealed class X : IComparer { X x; public int Compare(object x, object y) { return ((IComparer)this.x).Compare(x, y); } }", codeAction: ("False;False;False:global::System.Collections.IComparer;mscorlib;Microsoft.CodeAnalysis.ImplementInterface.AbstractImplementInterfaceService+ImplementInterfaceCodeAction;x", 1)); } [WorkItem(472, "https://github.com/dotnet/roslyn/issues/472")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestImplementThroughFieldMemberRemoveUnnecessaryCastAndThis() { await TestWithAllCodeStyleOptionsOffAsync( @"using System.Collections; sealed class X : {|CS0535:IComparer|} { X a; }", @"using System.Collections; sealed class X : IComparer { X a; public int Compare(object x, object y) { return ((IComparer)a).Compare(x, y); } }", codeAction: ("False;False;False:global::System.Collections.IComparer;mscorlib;Microsoft.CodeAnalysis.ImplementInterface.AbstractImplementInterfaceService+ImplementInterfaceCodeAction;a", 1)); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestImplementAbstract() { await TestWithAllCodeStyleOptionsOffAsync( @"interface I { void Method1(); } abstract class C : {|CS0535:I|} { }", @"interface I { void Method1(); } abstract class C : I { public abstract void Method1(); }", codeAction: ("False;True;True:global::I;TestProject;Microsoft.CodeAnalysis.ImplementInterface.AbstractImplementInterfaceService+ImplementInterfaceCodeAction;", 1)); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestImplementInterfaceWithRefOutParameters() { await TestWithAllCodeStyleOptionsOffAsync( @"class C : {|CS0535:{|CS0535:I|}|} { I goo; } interface I { void Method1(ref int x, out int y, int z); int Method2(); }", @"class C : I { I goo; public void Method1(ref int x, out int y, int z) { goo.Method1(ref x, out y, z); } public int Method2() { return goo.Method2(); } } interface I { void Method1(ref int x, out int y, int z); int Method2(); }", codeAction: ("False;False;False:global::I;TestProject;Microsoft.CodeAnalysis.ImplementInterface.AbstractImplementInterfaceService+ImplementInterfaceCodeAction;goo", 1)); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestConflictingMethods1() { await TestWithAllCodeStyleOptionsOffAsync( @"class B { public int Method1() { return 0; } } class C : B, {|CS0738:I|} { } interface I { void Method1(); }", @"class B { public int Method1() { return 0; } } class C : B, I { void I.Method1() { throw new System.NotImplementedException(); } } interface I { void Method1(); }"); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestConflictingProperties() { await TestWithAllCodeStyleOptionsOffAsync( @"class Test : {|CS0737:I1|} { int Prop { get; set; } } interface I1 { int Prop { get; set; } }", @"class Test : I1 { int Prop { get; set; } int I1.Prop { get { throw new System.NotImplementedException(); } set { throw new System.NotImplementedException(); } } } interface I1 { int Prop { get; set; } }"); } [WorkItem(539043, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/539043")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestExplicitProperties() { var code = @"interface I2 { decimal Calc { get; } } class C : I2 { protected decimal pay; decimal I2.Calc { get { return pay; } } }"; await VerifyCS.VerifyCodeFixAsync(code, code); } [WorkItem(539489, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/539489")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestEscapedMethodName() { await TestWithAllCodeStyleOptionsOffAsync( @"interface IInterface { void @M(); } class Class : {|CS0535:IInterface|} { }", @"interface IInterface { void @M(); } class Class : IInterface { public void M() { throw new System.NotImplementedException(); } }"); } [WorkItem(539489, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/539489")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestEscapedMethodKeyword() { await TestWithAllCodeStyleOptionsOffAsync( @"interface IInterface { void @int(); } class Class : {|CS0535:IInterface|} { }", @"interface IInterface { void @int(); } class Class : IInterface { public void @int() { throw new System.NotImplementedException(); } }"); } [WorkItem(539489, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/539489")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestEscapedInterfaceName1() { await TestWithAllCodeStyleOptionsOffAsync( @"interface @IInterface { void M(); } class Class : {|CS0737:@IInterface|} { string M() => """"; }", @"interface @IInterface { void M(); } class Class : @IInterface { string M() => """"; void IInterface.M() { throw new System.NotImplementedException(); } }"); } [WorkItem(539489, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/539489")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestEscapedInterfaceName2() { await TestWithAllCodeStyleOptionsOffAsync( @"interface @IInterface { void @M(); } class Class : {|CS0737:@IInterface|} { string M() => """"; }", @"interface @IInterface { void @M(); } class Class : @IInterface { string M() => """"; void IInterface.M() { throw new System.NotImplementedException(); } }"); } [WorkItem(539489, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/539489")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestEscapedInterfaceKeyword1() { await TestWithAllCodeStyleOptionsOffAsync( @"interface @int { void M(); } class Class : {|CS0737:@int|} { string M() => """"; }", @"interface @int { void M(); } class Class : @int { string M() => """"; void @int.M() { throw new System.NotImplementedException(); } }"); } [WorkItem(539489, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/539489")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestEscapedInterfaceKeyword2() { await TestWithAllCodeStyleOptionsOffAsync( @"interface @int { void @bool(); } class Class : {|CS0737:@int|} { string @bool() => """"; }", @"interface @int { void @bool(); } class Class : @int { string @bool() => """"; void @int.@bool() { throw new System.NotImplementedException(); } }"); } [WorkItem(539522, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/539522")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestPropertyFormatting() { await TestWithAllCodeStyleOptionsOffAsync( @"public interface DD { int Prop { get; set; } } public class A : {|CS0535:DD|} { }", @"public interface DD { int Prop { get; set; } } public class A : DD { public int Prop { get { throw new System.NotImplementedException(); } set { throw new System.NotImplementedException(); } } }"); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestProperty_PropertyCodeStyleOn1() { await TestWithAllCodeStyleOptionsOnAsync( @"public interface DD { int Prop { get; } } public class A : {|CS0535:DD|} { }", @"public interface DD { int Prop { get; } } public class A : DD { public int Prop => throw new System.NotImplementedException(); }"); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestProperty_AccessorCodeStyleOn1() { await TestWithAccessorCodeStyleOptionsOnAsync( @"public interface DD { int Prop { get; } } public class A : {|CS0535:DD|} { }", @"public interface DD { int Prop { get; } } public class A : DD { public int Prop { get => throw new System.NotImplementedException(); } }"); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestIndexer_IndexerCodeStyleOn1() { await TestWithAllCodeStyleOptionsOnAsync( @"public interface DD { int this[int i] { get; } } public class A : {|CS0535:DD|} { }", @"public interface DD { int this[int i] { get; } } public class A : DD { public int this[int i] => throw new System.NotImplementedException(); }"); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestIndexer_AccessorCodeStyleOn1() { await TestWithAccessorCodeStyleOptionsOnAsync( @"public interface DD { int this[int i] { get; } } public class A : {|CS0535:DD|} { }", @"public interface DD { int this[int i] { get; } } public class A : DD { public int this[int i] { get => throw new System.NotImplementedException(); } }"); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestMethod_AllCodeStyleOn1() { await TestWithAllCodeStyleOptionsOnAsync( @"public interface DD { int M(); } public class A : {|CS0535:DD|} { }", @"public interface DD { int M(); } public class A : DD { public int M() => throw new System.NotImplementedException(); }"); } [WorkItem(539522, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/539522")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestReadonlyPropertyExpressionBodyYes1() { await TestWithAllCodeStyleOptionsOnAsync( @"public interface DD { int Prop { get; } } public class A : {|CS0535:DD|} { }", @"public interface DD { int Prop { get; } } public class A : DD { public int Prop => throw new System.NotImplementedException(); }"); } [WorkItem(539522, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/539522")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestReadonlyPropertyAccessorBodyYes1() { await TestWithAccessorCodeStyleOptionsOnAsync( @"public interface DD { int Prop { get; } } public class A : {|CS0535:DD|} { }", @"public interface DD { int Prop { get; } } public class A : DD { public int Prop { get => throw new System.NotImplementedException(); } }"); } [WorkItem(539522, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/539522")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestReadonlyPropertyAccessorBodyYes2() { await TestWithAccessorCodeStyleOptionsOnAsync( @"public interface DD { int Prop { get; set; } } public class A : {|CS0535:DD|} { }", @"public interface DD { int Prop { get; set; } } public class A : DD { public int Prop { get => throw new System.NotImplementedException(); set => throw new System.NotImplementedException(); } }"); } [WorkItem(539522, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/539522")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestReadonlyPropertyExpressionBodyNo1() { await TestWithAllCodeStyleOptionsOffAsync( @"public interface DD { int Prop { get; } } public class A : {|CS0535:DD|} { }", @"public interface DD { int Prop { get; } } public class A : DD { public int Prop { get { throw new System.NotImplementedException(); } } }"); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestIndexerExpressionBodyYes1() { await TestWithAllCodeStyleOptionsOnAsync( @"public interface DD { int this[int i] { get; } } public class A : {|CS0535:DD|} { }", @"public interface DD { int this[int i] { get; } } public class A : DD { public int this[int i] => throw new System.NotImplementedException(); }"); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestIndexerExpressionBodyNo1() { await TestWithAllCodeStyleOptionsOnAsync( @"public interface DD { int this[int i] { get; set; } } public class A : {|CS0535:DD|} { }", @"public interface DD { int this[int i] { get; set; } } public class A : DD { public int this[int i] { get => throw new System.NotImplementedException(); set => throw new System.NotImplementedException(); } }"); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestIndexerAccessorExpressionBodyYes1() { await TestWithAccessorCodeStyleOptionsOnAsync( @"public interface DD { int this[int i] { get; } } public class A : {|CS0535:DD|} { }", @"public interface DD { int this[int i] { get; } } public class A : DD { public int this[int i] { get => throw new System.NotImplementedException(); } }"); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestIndexerAccessorExpressionBodyYes2() { await TestWithAllCodeStyleOptionsOnAsync( @"public interface DD { int this[int i] { get; set; } } public class A : {|CS0535:DD|} { }", @"public interface DD { int this[int i] { get; set; } } public class A : DD { public int this[int i] { get => throw new System.NotImplementedException(); set => throw new System.NotImplementedException(); } }"); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestCommentPlacement() { await TestWithAllCodeStyleOptionsOffAsync( @"public interface DD { void Goo(); } public class A : {|CS0535:DD|} { //comments }", @"public interface DD { void Goo(); } public class A : DD { //comments public void Goo() { throw new System.NotImplementedException(); } }"); } [WorkItem(539991, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/539991")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestBracePlacement() { await TestWithAllCodeStyleOptionsOffAsync( @"using System; class C : {|CS0535:IServiceProvider|}{|CS1513:|}{|CS1514:|}", @"using System; class C : IServiceProvider { public object GetService(Type serviceType) { throw new NotImplementedException(); } } "); } [WorkItem(540318, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/540318")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestMissingWithIncompleteMember() { var code = @"interface ITest { void Method(); } class Test : ITest { p {|CS1585:public|} void Method() { throw new System.NotImplementedException(); } }"; await VerifyCS.VerifyCodeFixAsync(code, code); } [WorkItem(541380, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/541380")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestExplicitProperty() { await TestWithAllCodeStyleOptionsOffAsync( @"interface i1 { int p { get; set; } } class c1 : {|CS0535:i1|} { }", @"interface i1 { int p { get; set; } } class c1 : i1 { int i1.p { get { throw new System.NotImplementedException(); } set { throw new System.NotImplementedException(); } } }", codeAction: ("True;False;False:global::i1;TestProject;Microsoft.CodeAnalysis.ImplementInterface.AbstractImplementInterfaceService+ImplementInterfaceCodeAction;", 1)); } [WorkItem(541981, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/541981")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestNoDelegateThroughField1() { var code = @"interface I { void Method1(); } class C : {|CS0535:I|} { I i { get; set; } }"; await new VerifyCS.Test { TestCode = code, FixedCode = @"interface I { void Method1(); } class C : I { I i { get; set; } public void Method1() { throw new System.NotImplementedException(); } }", Options = { AllOptionsOff }, CodeActionsVerifier = codeActions => Assert.Equal(3, codeActions.Length), CodeActionEquivalenceKey = "False;False;True:global::I;TestProject;Microsoft.CodeAnalysis.ImplementInterface.AbstractImplementInterfaceService+ImplementInterfaceCodeAction;", CodeActionIndex = 0, }.RunAsync(); await new VerifyCS.Test { TestCode = code, FixedCode = @"interface I { void Method1(); } class C : I { I i { get; set; } public void Method1() { i.Method1(); } }", Options = { AllOptionsOff }, CodeActionsVerifier = codeActions => Assert.Equal(3, codeActions.Length), CodeActionEquivalenceKey = "False;False;False:global::I;TestProject;Microsoft.CodeAnalysis.ImplementInterface.AbstractImplementInterfaceService+ImplementInterfaceCodeAction;i", CodeActionIndex = 1, }.RunAsync(); await new VerifyCS.Test { TestCode = code, FixedCode = @"interface I { void Method1(); } class C : I { I i { get; set; } void I.Method1() { throw new System.NotImplementedException(); } }", Options = { AllOptionsOff }, CodeActionsVerifier = codeActions => Assert.Equal(3, codeActions.Length), CodeActionEquivalenceKey = "True;False;False:global::I;TestProject;Microsoft.CodeAnalysis.ImplementInterface.AbstractImplementInterfaceService+ImplementInterfaceCodeAction;", CodeActionIndex = 2, }.RunAsync(); } [WorkItem(768799, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/768799")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestImplementIReadOnlyListThroughField() { await TestWithAllCodeStyleOptionsOffAsync( @"using System.Collections.Generic; class A : {|CS0535:{|CS0535:{|CS0535:{|CS0535:IReadOnlyList<int>|}|}|}|} { int[] field; }", @"using System.Collections; using System.Collections.Generic; class A : IReadOnlyList<int> { int[] field; public int this[int index] { get { return ((IReadOnlyList<int>)field)[index]; } } public int Count { get { return ((IReadOnlyCollection<int>)field).Count; } } public IEnumerator<int> GetEnumerator() { return ((IEnumerable<int>)field).GetEnumerator(); } IEnumerator IEnumerable.GetEnumerator() { return field.GetEnumerator(); } }", codeAction: ("False;False;False:global::System.Collections.Generic.IReadOnlyList<int>;mscorlib;Microsoft.CodeAnalysis.ImplementInterface.AbstractImplementInterfaceService+ImplementInterfaceCodeAction;field", 1)); } [WorkItem(768799, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/768799")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestImplementIReadOnlyListThroughProperty() { await TestWithAllCodeStyleOptionsOffAsync( @"using System.Collections.Generic; class A : {|CS0535:{|CS0535:{|CS0535:{|CS0535:IReadOnlyList<int>|}|}|}|} { int[] field { get; set; } }", @"using System.Collections; using System.Collections.Generic; class A : IReadOnlyList<int> { public int this[int index] { get { return ((IReadOnlyList<int>)field)[index]; } } public int Count { get { return ((IReadOnlyCollection<int>)field).Count; } } int[] field { get; set; } public IEnumerator<int> GetEnumerator() { return ((IEnumerable<int>)field).GetEnumerator(); } IEnumerator IEnumerable.GetEnumerator() { return field.GetEnumerator(); } }", codeAction: ("False;False;False:global::System.Collections.Generic.IReadOnlyList<int>;mscorlib;Microsoft.CodeAnalysis.ImplementInterface.AbstractImplementInterfaceService+ImplementInterfaceCodeAction;field", 1)); } [WorkItem(768799, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/768799")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestImplementInterfaceThroughField() { await TestWithAllCodeStyleOptionsOffAsync( @"interface I { int M(); } class A : I { int I.M() { return 0; } } class B : {|CS0535:I|} { A a; }", @"interface I { int M(); } class A : I { int I.M() { return 0; } } class B : I { A a; public int M() { return ((I)a).M(); } }", codeAction: ("False;False;False:global::I;TestProject;Microsoft.CodeAnalysis.ImplementInterface.AbstractImplementInterfaceService+ImplementInterfaceCodeAction;a", 1)); } [WorkItem(768799, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/768799")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestImplementInterfaceThroughField_FieldImplementsMultipleInterfaces() { await new VerifyCS.Test { TestCode = @"interface I { int M(); } interface I2 { int M2(); } class A : I, I2 { int I.M() { return 0; } int I2.M2() { return 0; } } class B : {|CS0535:I|}, {|CS0535:I2|} { A a; }", FixedState = { Sources = { @"interface I { int M(); } interface I2 { int M2(); } class A : I, I2 { int I.M() { return 0; } int I2.M2() { return 0; } } class B : I, {|CS0535:I2|} { A a; public int M() { return ((I)a).M(); } }", }, MarkupHandling = MarkupMode.Allow, }, Options = { AllOptionsOff }, CodeActionsVerifier = codeActions => Assert.Equal(3, codeActions.Length), DiagnosticSelector = diagnostics => diagnostics[0], CodeFixTestBehaviors = CodeFixTestBehaviors.FixOne, CodeActionEquivalenceKey = "False;False;False:global::I;TestProject;Microsoft.CodeAnalysis.ImplementInterface.AbstractImplementInterfaceService+ImplementInterfaceCodeAction;a", CodeActionIndex = 1, }.RunAsync(); await new VerifyCS.Test { TestCode = @"interface I { int M(); } interface I2 { int M2(); } class A : I, I2 { int I.M() { return 0; } int I2.M2() { return 0; } } class B : {|CS0535:I|}, {|CS0535:I2|} { A a; }", FixedState = { Sources = { @"interface I { int M(); } interface I2 { int M2(); } class A : I, I2 { int I.M() { return 0; } int I2.M2() { return 0; } } class B : {|CS0535:I|}, I2 { A a; public int M2() { return ((I2)a).M2(); } }", }, MarkupHandling = MarkupMode.Allow, }, Options = { AllOptionsOff }, CodeActionsVerifier = codeActions => Assert.Equal(3, codeActions.Length), DiagnosticSelector = diagnostics => diagnostics[1], CodeFixTestBehaviors = CodeFixTestBehaviors.FixOne, CodeActionEquivalenceKey = "False;False;False:global::I2;TestProject;Microsoft.CodeAnalysis.ImplementInterface.AbstractImplementInterfaceService+ImplementInterfaceCodeAction;a", CodeActionIndex = 1, }.RunAsync(); } [WorkItem(768799, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/768799")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestImplementInterfaceThroughField_MultipleFieldsCanImplementInterface() { await new VerifyCS.Test { TestCode = @"interface I { int M(); } class A : I { int I.M() { return 0; } } class B : {|CS0535:I|} { A a; A aa; }", FixedState = { Sources = { @"interface I { int M(); } class A : I { int I.M() { return 0; } } class B : I { A a; A aa; public int M() { return ((I)a).M(); } }", }, MarkupHandling = MarkupMode.Allow, }, Options = { AllOptionsOff }, CodeActionsVerifier = codeActions => Assert.Equal(4, codeActions.Length), CodeActionEquivalenceKey = "False;False;False:global::I;TestProject;Microsoft.CodeAnalysis.ImplementInterface.AbstractImplementInterfaceService+ImplementInterfaceCodeAction;a", CodeActionIndex = 1, }.RunAsync(); await new VerifyCS.Test { TestCode = @"interface I { int M(); } class A : I { int I.M() { return 0; } } class B : {|CS0535:I|} { A a; A aa; }", FixedState = { Sources = { @"interface I { int M(); } class A : I { int I.M() { return 0; } } class B : I { A a; A aa; public int M() { return ((I)aa).M(); } }", }, MarkupHandling = MarkupMode.Allow, }, Options = { AllOptionsOff }, CodeActionsVerifier = codeActions => Assert.Equal(4, codeActions.Length), CodeActionEquivalenceKey = "False;False;False:global::I;TestProject;Microsoft.CodeAnalysis.ImplementInterface.AbstractImplementInterfaceService+ImplementInterfaceCodeAction;aa", CodeActionIndex = 2, }.RunAsync(); } [WorkItem(768799, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/768799")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestImplementInterfaceThroughField_MultipleFieldsForMultipleInterfaces() { await new VerifyCS.Test { TestCode = @"interface I { int M(); } interface I2 { int M2(); } class A : I { int I.M() { return 0; } } class B : I2 { int I2.M2() { return 0; } } class C : {|CS0535:I|}, {|CS0535:I2|} { A a; B b; }", FixedState = { Sources = { @"interface I { int M(); } interface I2 { int M2(); } class A : I { int I.M() { return 0; } } class B : I2 { int I2.M2() { return 0; } } class C : I, {|CS0535:I2|} { A a; B b; public int M() { return ((I)a).M(); } }", }, MarkupHandling = MarkupMode.Allow, }, Options = { AllOptionsOff }, CodeActionsVerifier = codeActions => Assert.Equal(3, codeActions.Length), DiagnosticSelector = diagnostics => diagnostics[0], CodeFixTestBehaviors = CodeFixTestBehaviors.FixOne, CodeActionEquivalenceKey = "False;False;False:global::I;TestProject;Microsoft.CodeAnalysis.ImplementInterface.AbstractImplementInterfaceService+ImplementInterfaceCodeAction;a", CodeActionIndex = 1, }.RunAsync(); await new VerifyCS.Test { TestCode = @"interface I { int M(); } interface I2 { int M2(); } class A : I { int I.M() { return 0; } } class B : I2 { int I2.M2() { return 0; } } class C : {|CS0535:I|}, {|CS0535:I2|} { A a; B b; }", FixedState = { Sources = { @"interface I { int M(); } interface I2 { int M2(); } class A : I { int I.M() { return 0; } } class B : I2 { int I2.M2() { return 0; } } class C : {|CS0535:I|}, I2 { A a; B b; public int M2() { return ((I2)b).M2(); } }", }, MarkupHandling = MarkupMode.Allow, }, Options = { AllOptionsOff }, CodeActionsVerifier = codeActions => Assert.Equal(3, codeActions.Length), DiagnosticSelector = diagnostics => diagnostics[1], CodeFixTestBehaviors = CodeFixTestBehaviors.FixOne, CodeActionEquivalenceKey = "False;False;False:global::I2;TestProject;Microsoft.CodeAnalysis.ImplementInterface.AbstractImplementInterfaceService+ImplementInterfaceCodeAction;b", CodeActionIndex = 1, }.RunAsync(); } [WorkItem(18556, "https://github.com/dotnet/roslyn/issues/18556")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestImplementInterfaceThroughExplicitProperty() { await new VerifyCS.Test { TestCode = @"interface IA { IB B { get; } } interface IB { int M(); } class AB : IA, {|CS0535:IB|} { IB IA.B => null; }", FixedCode = @"interface IA { IB B { get; } } interface IB { int M(); } class AB : IA, IB { IB IA.B => null; public int M() { return ((IA)this).B.M(); } }", Options = { AllOptionsOff }, CodeActionsVerifier = codeActions => Assert.Equal(3, codeActions.Length), CodeActionEquivalenceKey = "False;False;False:global::IB;TestProject;Microsoft.CodeAnalysis.ImplementInterface.AbstractImplementInterfaceService+ImplementInterfaceCodeAction;IA.B", CodeActionIndex = 1, }.RunAsync(); } [WorkItem(768799, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/768799")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestNoImplementThroughIndexer() { await new VerifyCS.Test { TestCode = @"interface I { int M(); } class A : I { int I.M() { return 0; } } class B : {|CS0535:I|} { A this[int index] { get { return null; } } }", FixedCode = @"interface I { int M(); } class A : I { int I.M() { return 0; } } class B : I { A this[int index] { get { return null; } } public int M() { throw new System.NotImplementedException(); } }", CodeActionsVerifier = codeActions => Assert.Equal(2, codeActions.Length), }.RunAsync(); } [WorkItem(768799, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/768799")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestNoImplementThroughWriteOnlyProperty() { await new VerifyCS.Test { TestCode = @"interface I { int M(); } class A : I { int I.M() { return 0; } } class B : {|CS0535:I|} { A a { set { } } }", FixedCode = @"interface I { int M(); } class A : I { int I.M() { return 0; } } class B : {|CS0535:I|} { A a { set { } } public int M() { throw new System.NotImplementedException(); } }", CodeActionsVerifier = codeActions => Assert.Equal(2, codeActions.Length), }.RunAsync(); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestImplementEventThroughMember() { await TestInRegularAndScriptAsync(@" interface IGoo { event System.EventHandler E; } class CanGoo : IGoo { public event System.EventHandler E; } class HasCanGoo : {|CS0535:IGoo|} { CanGoo canGoo; }", @" using System; interface IGoo { event System.EventHandler E; } class CanGoo : IGoo { public event System.EventHandler E; } class HasCanGoo : IGoo { CanGoo canGoo; public event EventHandler E { add { ((IGoo)canGoo).E += value; } remove { ((IGoo)canGoo).E -= value; } } }", codeAction: ("False;False;False:global::IGoo;TestProject;Microsoft.CodeAnalysis.ImplementInterface.AbstractImplementInterfaceService+ImplementInterfaceCodeAction;canGoo", 1)); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestImplementEventThroughExplicitMember() { await TestInRegularAndScriptAsync( @"interface IGoo { event System . EventHandler E ; } class CanGoo : IGoo { event System.EventHandler IGoo.E { add { } remove { } } } class HasCanGoo : {|CS0535:IGoo|} { CanGoo canGoo; } ", @"using System; interface IGoo { event System . EventHandler E ; } class CanGoo : IGoo { event System.EventHandler IGoo.E { add { } remove { } } } class HasCanGoo : IGoo { CanGoo canGoo; public event EventHandler E { add { ((IGoo)canGoo).E += value; } remove { ((IGoo)canGoo).E -= value; } } } ", codeAction: ("False;False;False:global::IGoo;TestProject;Microsoft.CodeAnalysis.ImplementInterface.AbstractImplementInterfaceService+ImplementInterfaceCodeAction;canGoo", 1)); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestImplementEvent() { await TestWithAllCodeStyleOptionsOffAsync( @"interface IGoo { event System.EventHandler E; } abstract class Goo : {|CS0535:IGoo|} { }", @"using System; interface IGoo { event System.EventHandler E; } abstract class Goo : IGoo { public event EventHandler E; }", codeAction: ("False;False;True:global::IGoo;TestProject;Microsoft.CodeAnalysis.ImplementInterface.AbstractImplementInterfaceService+ImplementInterfaceCodeAction;", 0)); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestImplementEventAbstractly() { await TestWithAllCodeStyleOptionsOffAsync( @"interface IGoo { event System.EventHandler E; } abstract class Goo : {|CS0535:IGoo|} { }", @"using System; interface IGoo { event System.EventHandler E; } abstract class Goo : IGoo { public abstract event EventHandler E; }", codeAction: ("False;True;True:global::IGoo;TestProject;Microsoft.CodeAnalysis.ImplementInterface.AbstractImplementInterfaceService+ImplementInterfaceCodeAction;", 1)); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestImplementEventExplicitly() { await TestWithAllCodeStyleOptionsOffAsync( @"interface IGoo { event System.EventHandler E; } abstract class Goo : {|CS0535:IGoo|} { }", @"using System; interface IGoo { event System.EventHandler E; } abstract class Goo : IGoo { event EventHandler IGoo.E { add { throw new NotImplementedException(); } remove { throw new NotImplementedException(); } } }", codeAction: ("True;False;False:global::IGoo;TestProject;Microsoft.CodeAnalysis.ImplementInterface.AbstractImplementInterfaceService+ImplementInterfaceCodeAction;", 2)); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestFaultToleranceInStaticMembers_01() { await new VerifyCS.Test { ReferenceAssemblies = ReferenceAssemblies.Net.Net50, TestCode = @"interface IFoo { static string Name { set; get; } static int {|CS0501:Foo|}(string s); } class Program : IFoo { }", }.RunAsync(); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestFaultToleranceInStaticMembers_02() { var test = new VerifyCS.Test { ReferenceAssemblies = ReferenceAssemblies.Net.Net50, TestCode = @"interface IFoo { string Name { set; get; } static int {|CS0501:Foo|}(string s); } class Program : {|CS0535:IFoo|} { }", FixedCode = @"interface IFoo { string Name { set; get; } static int {|CS0501:Foo|}(string s); } class Program : IFoo { public string Name { get { throw new System.NotImplementedException(); } set { throw new System.NotImplementedException(); } } }", }; test.Options.AddRange(AllOptionsOff); await test.RunAsync(); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestFaultToleranceInStaticMembers_03() { var test = new VerifyCS.Test { ReferenceAssemblies = ReferenceAssemblies.Net.Net50, TestCode = @"interface IGoo { static string Name { set; get; } int Goo(string s); } class Program : {|CS0535:IGoo|} { }", FixedCode = @"interface IGoo { static string Name { set; get; } int Goo(string s); } class Program : IGoo { public int Goo(string s) { throw new System.NotImplementedException(); } }", }; test.Options.AddRange(AllOptionsOff); await test.RunAsync(); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestIndexers() { await TestWithAllCodeStyleOptionsOffAsync( @"public interface ISomeInterface { int this[int index] { get; set; } } class IndexerClass : {|CS0535:ISomeInterface|} { }", @"public interface ISomeInterface { int this[int index] { get; set; } } class IndexerClass : ISomeInterface { public int this[int index] { get { throw new System.NotImplementedException(); } set { throw new System.NotImplementedException(); } } }"); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestIndexersExplicit() { await TestWithAllCodeStyleOptionsOffAsync( @"public interface ISomeInterface { int this[int index] { get; set; } } class IndexerClass : {|CS0535:ISomeInterface|} { }", @"public interface ISomeInterface { int this[int index] { get; set; } } class IndexerClass : ISomeInterface { int ISomeInterface.this[int index] { get { throw new System.NotImplementedException(); } set { throw new System.NotImplementedException(); } } }", codeAction: ("True;False;False:global::ISomeInterface;TestProject;Microsoft.CodeAnalysis.ImplementInterface.AbstractImplementInterfaceService+ImplementInterfaceCodeAction;", 1)); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestIndexersWithASingleAccessor() { await TestWithAllCodeStyleOptionsOffAsync( @"public interface ISomeInterface { int this[int index] { get; } } class IndexerClass : {|CS0535:ISomeInterface|} { }", @"public interface ISomeInterface { int this[int index] { get; } } class IndexerClass : ISomeInterface { public int this[int index] { get { throw new System.NotImplementedException(); } } }"); } [WorkItem(542357, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/542357")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestConstraints1() { await TestWithAllCodeStyleOptionsOffAsync( @"interface I { void Goo<T>() where T : class; } class A : {|CS0535:I|} { }", @"interface I { void Goo<T>() where T : class; } class A : I { public void Goo<T>() where T : class { throw new System.NotImplementedException(); } }"); } [WorkItem(542357, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/542357")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestConstraintsExplicit() { await TestWithAllCodeStyleOptionsOffAsync( @"interface I { void Goo<T>() where T : class; } class A : {|CS0535:I|} { }", @"interface I { void Goo<T>() where T : class; } class A : I { void I.Goo<T>() { throw new System.NotImplementedException(); } }", codeAction: ("True;False;False:global::I;TestProject;Microsoft.CodeAnalysis.ImplementInterface.AbstractImplementInterfaceService+ImplementInterfaceCodeAction;", 1)); } [WorkItem(542357, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/542357")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestUsingAddedForConstraint() { await TestWithAllCodeStyleOptionsOffAsync( @"interface I { void Goo<T>() where T : System.Attribute; } class A : {|CS0535:I|} { }", @"using System; interface I { void Goo<T>() where T : System.Attribute; } class A : I { public void Goo<T>() where T : Attribute { throw new NotImplementedException(); } }"); } [WorkItem(542379, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/542379")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestIndexer() { await TestWithAllCodeStyleOptionsOffAsync( @"interface I { int this[int x] { get; set; } } class C : {|CS0535:I|} { }", @"interface I { int this[int x] { get; set; } } class C : I { public int this[int x] { get { throw new System.NotImplementedException(); } set { throw new System.NotImplementedException(); } } }"); } [WorkItem(542588, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/542588")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestRecursiveConstraint1() { await TestWithAllCodeStyleOptionsOffAsync( @"using System; interface I { void Goo<T>() where T : IComparable<T>; } class C : {|CS0535:I|} { }", @"using System; interface I { void Goo<T>() where T : IComparable<T>; } class C : I { public void Goo<T>() where T : IComparable<T> { throw new NotImplementedException(); } }"); } [WorkItem(542588, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/542588")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestRecursiveConstraint2() { await TestWithAllCodeStyleOptionsOffAsync( @"using System; interface I { void Goo<T>() where T : IComparable<T>; } class C : {|CS0535:I|} { }", @"using System; interface I { void Goo<T>() where T : IComparable<T>; } class C : I { void I.Goo<T>() { throw new NotImplementedException(); } }", codeAction: ("True;False;False:global::I;TestProject;Microsoft.CodeAnalysis.ImplementInterface.AbstractImplementInterfaceService+ImplementInterfaceCodeAction;", 1)); } [WorkItem(542587, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/542587")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestUnexpressibleConstraint1() { await TestWithAllCodeStyleOptionsOffAsync( @"interface I<S> { void Goo<T>() where T : class, S; } class A : {|CS0535:I<string>|} { }", @"interface I<S> { void Goo<T>() where T : class, S; } class A : I<string> { void I<string>.Goo<T>() { throw new System.NotImplementedException(); } }"); } [WorkItem(542587, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/542587")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestUnexpressibleConstraint2() { await TestWithAllCodeStyleOptionsOffAsync( @"interface I<S> { void Goo<T>() where T : class, S; } class A : {|CS0535:I<object>|} { }", @"interface I<S> { void Goo<T>() where T : class, S; } class A : I<object> { public void Goo<T>() where T : class { throw new System.NotImplementedException(); } }"); } [WorkItem(542587, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/542587")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestUnexpressibleConstraint3() { await TestWithAllCodeStyleOptionsOffAsync( @"interface I<S> { void Goo<T>() where T : class, S; } class A : {|CS0535:I<object>|} { }", @"interface I<S> { void Goo<T>() where T : class, S; } class A : I<object> { void I<object>.Goo<T>() { throw new System.NotImplementedException(); } }", codeAction: ("True;False;False:global::I<object>;TestProject;Microsoft.CodeAnalysis.ImplementInterface.AbstractImplementInterfaceService+ImplementInterfaceCodeAction;", 1)); } [WorkItem(542587, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/542587")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestUnexpressibleConstraint4() { await TestWithAllCodeStyleOptionsOffAsync( @"using System; interface I<S> { void Goo<T>() where T : class, S; } class A : {|CS0535:I<Delegate>|} { }", @"using System; interface I<S> { void Goo<T>() where T : class, S; } class A : I<Delegate> { void I<Delegate>.Goo<T>() { throw new NotImplementedException(); } }"); } [WorkItem(542587, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/542587")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestUnexpressibleConstraint5() { await TestWithAllCodeStyleOptionsOffAsync( @"using System; interface I<S> { void Goo<T>() where T : class, S; } class A : {|CS0535:I<MulticastDelegate>|} { }", @"using System; interface I<S> { void Goo<T>() where T : class, S; } class A : I<MulticastDelegate> { void I<MulticastDelegate>.Goo<T>() { throw new NotImplementedException(); } }"); } [WorkItem(542587, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/542587")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestUnexpressibleConstraint6() { await TestWithAllCodeStyleOptionsOffAsync( @"using System; interface I<S> { void Goo<T>() where T : class, S; } delegate void Bar(); class A : {|CS0535:I<Bar>|} { }", @"using System; interface I<S> { void Goo<T>() where T : class, S; } delegate void Bar(); class A : I<Bar> { void I<Bar>.Goo<T>() { throw new NotImplementedException(); } }"); } [WorkItem(542587, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/542587")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestUnexpressibleConstraint7() { await TestWithAllCodeStyleOptionsOffAsync( @"using System; interface I<S> { void Goo<T>() where T : class, S; } class A : {|CS0535:I<Enum>|} { }", @"using System; interface I<S> { void Goo<T>() where T : class, S; } class A : I<Enum> { void I<Enum>.Goo<T>() { throw new NotImplementedException(); } }"); } [WorkItem(542587, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/542587")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestUnexpressibleConstraint8() { await TestWithAllCodeStyleOptionsOffAsync( @"using System; interface I<S> { void Goo<T>() where T : class, S; } class A : {|CS0535:I<int[]>|} { }", @"using System; interface I<S> { void Goo<T>() where T : class, S; } class A : I<int[]> { void I<int[]>.Goo<T>() { throw new NotImplementedException(); } }"); } [WorkItem(542587, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/542587")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestUnexpressibleConstraint9() { await TestWithAllCodeStyleOptionsOffAsync( @"using System; interface I<S> { void Goo<T>() where T : class, S; } enum E { } class A : {|CS0535:I<E>|} { }", @"using System; interface I<S> { void Goo<T>() where T : class, S; } enum E { } class A : I<E> { void I<E>.Goo<{|CS0455:T|}>() { throw new NotImplementedException(); } }"); } [WorkItem(542621, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/542621")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestUnexpressibleConstraint10() { await TestWithAllCodeStyleOptionsOffAsync( @"using System; interface I<S> { void Goo<T>() where T : S; } class A : {|CS0535:I<ValueType>|} { }", @"using System; interface I<S> { void Goo<T>() where T : S; } class A : I<ValueType> { void I<ValueType>.Goo<T>() { throw new NotImplementedException(); } }"); } [WorkItem(542669, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/542669")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestArrayConstraint() { await TestWithAllCodeStyleOptionsOffAsync( @"using System; interface I<S> { void Goo<T>() where T : S; } class C : {|CS0535:I<Array>|} { }", @"using System; interface I<S> { void Goo<T>() where T : S; } class C : I<Array> { void I<Array>.Goo<T>() { throw new NotImplementedException(); } }"); } [WorkItem(542743, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/542743")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestMultipleClassConstraints() { await TestWithAllCodeStyleOptionsOffAsync( @"using System; interface I<S> { void Goo<T>() where T : Exception, S; } class C : {|CS0535:I<Attribute>|} { }", @"using System; interface I<S> { void Goo<T>() where T : Exception, S; } class C : I<Attribute> { void I<Attribute>.Goo<{|CS0455:T|}>() { throw new NotImplementedException(); } }"); } [WorkItem(542751, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/542751")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestClassConstraintAndRefConstraint() { await TestWithAllCodeStyleOptionsOffAsync( @"using System; interface I<S> { void Goo<T>() where T : class, S; } class C : {|CS0535:I<Exception>|} { }", @"using System; interface I<S> { void Goo<T>() where T : class, S; } class C : I<Exception> { void I<Exception>.Goo<T>() { throw new NotImplementedException(); } }"); } [WorkItem(542505, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/542505")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestRenameConflictingTypeParameters1() { await TestWithAllCodeStyleOptionsOffAsync( @"using System; using System.Collections.Generic; interface I<T> { void Goo<S>(T x, IList<S> list) where S : T; } class A<S> : {|CS0535:I<S>|} { }", @"using System; using System.Collections.Generic; interface I<T> { void Goo<S>(T x, IList<S> list) where S : T; } class A<S> : I<S> { public void Goo<S1>(S x, IList<S1> list) where S1 : S { throw new NotImplementedException(); } }"); } [WorkItem(542505, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/542505")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestRenameConflictingTypeParameters2() { await TestWithAllCodeStyleOptionsOffAsync( @"using System; using System.Collections.Generic; interface I<T> { void Goo<S>(T x, IList<S> list) where S : T; } class A<S> : {|CS0535:I<S>|} { }", @"using System; using System.Collections.Generic; interface I<T> { void Goo<S>(T x, IList<S> list) where S : T; } class A<S> : I<S> { void I<S>.Goo<S1>(S x, IList<S1> list) { throw new NotImplementedException(); } }", codeAction: ("True;False;False:global::I<S>;TestProject;Microsoft.CodeAnalysis.ImplementInterface.AbstractImplementInterfaceService+ImplementInterfaceCodeAction;", 1)); } [WorkItem(542505, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/542505")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestRenameConflictingTypeParameters3() { await TestWithAllCodeStyleOptionsOffAsync( @"using System; using System.Collections.Generic; interface I<X, Y> { void Goo<A, B>(X x, Y y, IList<A> list1, IList<B> list2) where A : IList<B> where B : IList<A>; } class C<A, B> : {|CS0535:I<A, B>|} { }", @"using System; using System.Collections.Generic; interface I<X, Y> { void Goo<A, B>(X x, Y y, IList<A> list1, IList<B> list2) where A : IList<B> where B : IList<A>; } class C<A, B> : I<A, B> { public void Goo<A1, B1>(A x, B y, IList<A1> list1, IList<B1> list2) where A1 : IList<B1> where B1 : IList<A1> { throw new NotImplementedException(); } }"); } [WorkItem(542505, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/542505")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestRenameConflictingTypeParameters4() { await TestWithAllCodeStyleOptionsOffAsync( @"using System; using System.Collections.Generic; interface I<X, Y> { void Goo<A, B>(X x, Y y, IList<A> list1, IList<B> list2) where A : IList<B> where B : IList<A>; } class C<A, B> : {|CS0535:I<A, B>|} { }", @"using System; using System.Collections.Generic; interface I<X, Y> { void Goo<A, B>(X x, Y y, IList<A> list1, IList<B> list2) where A : IList<B> where B : IList<A>; } class C<A, B> : I<A, B> { void I<A, B>.Goo<A1, B1>(A x, B y, IList<A1> list1, IList<B1> list2) { throw new NotImplementedException(); } }", codeAction: ("True;False;False:global::I<A, B>;TestProject;Microsoft.CodeAnalysis.ImplementInterface.AbstractImplementInterfaceService+ImplementInterfaceCodeAction;", 1)); } [WorkItem(542506, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/542506")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestNameSimplification() { await TestWithAllCodeStyleOptionsOffAsync( @"using System; class A<T> { class B { } interface I { void Goo(B x); } class C<U> : {|CS0535:I|} { } }", @"using System; class A<T> { class B { } interface I { void Goo(B x); } class C<U> : I { public void Goo(B x) { throw new NotImplementedException(); } } }"); } [WorkItem(542506, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/542506")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestNameSimplification2() { await TestWithAllCodeStyleOptionsOffAsync( @"class A<T> { class B { } interface I { void Goo(B[] x); } class C<U> : {|CS0535:I|} { } }", @"class A<T> { class B { } interface I { void Goo(B[] x); } class C<U> : I { public void Goo(B[] x) { throw new System.NotImplementedException(); } } }"); } [WorkItem(542506, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/542506")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestNameSimplification3() { await TestWithAllCodeStyleOptionsOffAsync( @"class A<T> { class B { } interface I { void Goo(B[][,][,,][,,,] x); } class C<U> : {|CS0535:I|} { } }", @"class A<T> { class B { } interface I { void Goo(B[][,][,,][,,,] x); } class C<U> : I { public void Goo(B[][,][,,][,,,] x) { throw new System.NotImplementedException(); } } }"); } [WorkItem(544166, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/544166")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestImplementAbstractProperty() { await TestWithAllCodeStyleOptionsOffAsync( @"interface IGoo { int Gibberish { get; set; } } abstract class Goo : {|CS0535:IGoo|} { }", @"interface IGoo { int Gibberish { get; set; } } abstract class Goo : IGoo { public abstract int Gibberish { get; set; } }", codeAction: ("False;True;True:global::IGoo;TestProject;Microsoft.CodeAnalysis.ImplementInterface.AbstractImplementInterfaceService+ImplementInterfaceCodeAction;", 1)); } [WorkItem(544210, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/544210")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestMissingOnWrongArity() { var code = @"interface I1<T> { int X { get; set; } } class C : {|CS0305:I1|} { }"; await VerifyCS.VerifyCodeFixAsync(code, code); } [WorkItem(544281, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/544281")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestImplicitDefaultValue() { await TestWithAllCodeStyleOptionsOffAsync( @"interface IOptional { int Goo(int g = 0); } class Opt : {|CS0535:IOptional|} { }", @"interface IOptional { int Goo(int g = 0); } class Opt : IOptional { public int Goo(int g = 0) { throw new System.NotImplementedException(); } }"); } [WorkItem(544281, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/544281")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestExplicitDefaultValue() { await TestWithAllCodeStyleOptionsOffAsync( @"interface IOptional { int Goo(int g = 0); } class Opt : {|CS0535:IOptional|} { }", @"interface IOptional { int Goo(int g = 0); } class Opt : IOptional { int IOptional.Goo(int g) { throw new System.NotImplementedException(); } }", codeAction: ("True;False;False:global::IOptional;TestProject;Microsoft.CodeAnalysis.ImplementInterface.AbstractImplementInterfaceService+ImplementInterfaceCodeAction;", 1)); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestMissingInHiddenType() { var code = @"using System; class Program : {|CS0535:IComparable|} { #line hidden } #line default"; await VerifyCS.VerifyCodeFixAsync(code, code); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestGenerateIntoVisiblePart() { await TestWithAllCodeStyleOptionsOffAsync( @"#line default using System; partial class Program : {|CS0535:IComparable|} { void Goo() { #line hidden } } #line default", @"#line default using System; partial class Program : IComparable { public int CompareTo(object obj) { throw new NotImplementedException(); } void Goo() { #line hidden } } #line default"); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestGenerateIfAvailableRegionExists() { await TestWithAllCodeStyleOptionsOffAsync( @"using System; partial class Program : {|CS0535:IComparable|} { #line hidden } #line default partial class Program { }", @"using System; partial class Program : IComparable { #line hidden } #line default partial class Program { public int CompareTo(object obj) { throw new NotImplementedException(); } }"); } [WorkItem(545334, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/545334")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestNoGenerateInVenusCase1() { var code = @"using System; #line 1 ""Bar"" class Goo : {|CS0535:IComparable|}{|CS1513:|}{|CS1514:|} #line default #line hidden // stuff"; await VerifyCS.VerifyCodeFixAsync(code, code); } [WorkItem(545476, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/545476")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestOptionalDateTime1() { await new VerifyCS.Test { TestCode = @"using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; interface IGoo { void Goo([Optional][DateTimeConstant(100)] DateTime x); } public class C : {|CS0535:IGoo|} { }", FixedCode = @"using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; interface IGoo { void Goo([Optional][DateTimeConstant(100)] DateTime x); } public class C : IGoo { public void Goo([DateTimeConstant(100), Optional] DateTime x) { throw new NotImplementedException(); } }", Options = { AllOptionsOff }, // 🐛 one value is generated with 0L instead of 0 CodeActionValidationMode = CodeActionValidationMode.None, }.RunAsync(); } [WorkItem(545476, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/545476")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestOptionalDateTime2() { await TestWithAllCodeStyleOptionsOffAsync( @"using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; interface IGoo { void Goo([Optional][DateTimeConstant(100)] DateTime x); } public class C : {|CS0535:IGoo|} { }", @"using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; interface IGoo { void Goo([Optional][DateTimeConstant(100)] DateTime x); } public class C : IGoo { void IGoo.Goo(DateTime x) { throw new NotImplementedException(); } }", codeAction: ("True;False;False:global::IGoo;TestProject;Microsoft.CodeAnalysis.ImplementInterface.AbstractImplementInterfaceService+ImplementInterfaceCodeAction;", 1)); } [WorkItem(545477, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/545477")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestIUnknownIDispatchAttributes1() { await TestWithAllCodeStyleOptionsOffAsync( @"using System.Runtime.CompilerServices; using System.Runtime.InteropServices; interface IGoo { void Goo1([Optional][IUnknownConstant] object x); void Goo2([Optional][IDispatchConstant] object x); } public class C : {|CS0535:{|CS0535:IGoo|}|} { }", @"using System.Runtime.CompilerServices; using System.Runtime.InteropServices; interface IGoo { void Goo1([Optional][IUnknownConstant] object x); void Goo2([Optional][IDispatchConstant] object x); } public class C : IGoo { public void Goo1([IUnknownConstant, Optional] object x) { throw new System.NotImplementedException(); } public void Goo2([IDispatchConstant, Optional] object x) { throw new System.NotImplementedException(); } }"); } [WorkItem(545477, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/545477")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestIUnknownIDispatchAttributes2() { await TestWithAllCodeStyleOptionsOffAsync( @"using System.Runtime.CompilerServices; using System.Runtime.InteropServices; interface IGoo { void Goo1([Optional][IUnknownConstant] object x); void Goo2([Optional][IDispatchConstant] object x); } public class C : {|CS0535:{|CS0535:IGoo|}|} { }", @"using System.Runtime.CompilerServices; using System.Runtime.InteropServices; interface IGoo { void Goo1([Optional][IUnknownConstant] object x); void Goo2([Optional][IDispatchConstant] object x); } public class C : IGoo { void IGoo.Goo1(object x) { throw new System.NotImplementedException(); } void IGoo.Goo2(object x) { throw new System.NotImplementedException(); } }", codeAction: ("True;False;False:global::IGoo;TestProject;Microsoft.CodeAnalysis.ImplementInterface.AbstractImplementInterfaceService+ImplementInterfaceCodeAction;", 1)); } [WorkItem(545464, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/545464")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestTypeNameConflict() { await TestWithAllCodeStyleOptionsOffAsync( @"interface IGoo { void Goo(); } public class Goo : {|CS0535:IGoo|} { }", @"interface IGoo { void Goo(); } public class Goo : IGoo { void IGoo.Goo() { throw new System.NotImplementedException(); } }"); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestStringLiteral() { await TestWithAllCodeStyleOptionsOffAsync( @"interface IGoo { void Goo ( string s = ""\"""" ) ; } class B : {|CS0535:IGoo|} { } ", @"interface IGoo { void Goo ( string s = ""\"""" ) ; } class B : IGoo { public void Goo(string s = ""\"""") { throw new System.NotImplementedException(); } } "); } [WorkItem(916114, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/916114")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestOptionalNullableStructParameter1() { await TestWithAllCodeStyleOptionsOffAsync( @"struct b { } interface d { void m(b? x = null, b? y = default(b?)); } class c : {|CS0535:d|} { }", @"struct b { } interface d { void m(b? x = null, b? y = default(b?)); } class c : d { public void m(b? x = null, b? y = null) { throw new System.NotImplementedException(); } }"); } [WorkItem(916114, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/916114")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestOptionalNullableStructParameter2() { await TestWithAllCodeStyleOptionsOffAsync( @"struct b { } interface d { void m(b? x = null, b? y = default(b?)); } class c : {|CS0535:d|} { }", @"struct b { } interface d { void m(b? x = null, b? y = default(b?)); } class c : d { void d.m(b? x, b? y) { throw new System.NotImplementedException(); } }", codeAction: ("True;False;False:global::d;TestProject;Microsoft.CodeAnalysis.ImplementInterface.AbstractImplementInterfaceService+ImplementInterfaceCodeAction;", 1)); } [WorkItem(916114, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/916114")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestOptionalNullableIntParameter() { await TestWithAllCodeStyleOptionsOffAsync( @"interface d { void m(int? x = 5, int? y = null); } class c : {|CS0535:d|} { }", @"interface d { void m(int? x = 5, int? y = null); } class c : d { public void m(int? x = 5, int? y = null) { throw new System.NotImplementedException(); } }"); } [WorkItem(545613, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/545613")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestOptionalWithNoDefaultValue() { await TestWithAllCodeStyleOptionsOffAsync( @"using System.Runtime.InteropServices; interface I { void Goo([Optional] I o); } class C : {|CS0535:I|} { }", @"using System.Runtime.InteropServices; interface I { void Goo([Optional] I o); } class C : I { public void Goo([Optional] I o) { throw new System.NotImplementedException(); } }"); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestIntegralAndFloatLiterals() { await new VerifyCS.Test { TestCode = @"interface I { void M01(short s = short.MinValue); void M02(short s = -1); void M03(short s = short.MaxValue); void M04(ushort s = ushort.MinValue); void M05(ushort s = 1); void M06(ushort s = ushort.MaxValue); void M07(int s = int.MinValue); void M08(int s = -1); void M09(int s = int.MaxValue); void M10(uint s = uint.MinValue); void M11(uint s = 1); void M12(uint s = uint.MaxValue); void M13(long s = long.MinValue); void M14(long s = -1); void M15(long s = long.MaxValue); void M16(ulong s = ulong.MinValue); void M17(ulong s = 1); void M18(ulong s = ulong.MaxValue); void M19(float s = float.MinValue); void M20(float s = 1); void M21(float s = float.MaxValue); void M22(double s = double.MinValue); void M23(double s = 1); void M24(double s = double.MaxValue); } class C : {|CS0535:{|CS0535:{|CS0535:{|CS0535:{|CS0535:{|CS0535:{|CS0535:{|CS0535:{|CS0535:{|CS0535:{|CS0535:{|CS0535:{|CS0535:{|CS0535:{|CS0535:{|CS0535:{|CS0535:{|CS0535:{|CS0535:{|CS0535:{|CS0535:{|CS0535:{|CS0535:{|CS0535:I|}|}|}|}|}|}|}|}|}|}|}|}|}|}|}|}|}|}|}|}|}|}|}|} { }", FixedCode = @"interface I { void M01(short s = short.MinValue); void M02(short s = -1); void M03(short s = short.MaxValue); void M04(ushort s = ushort.MinValue); void M05(ushort s = 1); void M06(ushort s = ushort.MaxValue); void M07(int s = int.MinValue); void M08(int s = -1); void M09(int s = int.MaxValue); void M10(uint s = uint.MinValue); void M11(uint s = 1); void M12(uint s = uint.MaxValue); void M13(long s = long.MinValue); void M14(long s = -1); void M15(long s = long.MaxValue); void M16(ulong s = ulong.MinValue); void M17(ulong s = 1); void M18(ulong s = ulong.MaxValue); void M19(float s = float.MinValue); void M20(float s = 1); void M21(float s = float.MaxValue); void M22(double s = double.MinValue); void M23(double s = 1); void M24(double s = double.MaxValue); } class C : I { public void M01(short s = short.MinValue) { throw new System.NotImplementedException(); } public void M02(short s = -1) { throw new System.NotImplementedException(); } public void M03(short s = short.MaxValue) { throw new System.NotImplementedException(); } public void M04(ushort s = 0) { throw new System.NotImplementedException(); } public void M05(ushort s = 1) { throw new System.NotImplementedException(); } public void M06(ushort s = ushort.MaxValue) { throw new System.NotImplementedException(); } public void M07(int s = int.MinValue) { throw new System.NotImplementedException(); } public void M08(int s = -1) { throw new System.NotImplementedException(); } public void M09(int s = int.MaxValue) { throw new System.NotImplementedException(); } public void M10(uint s = 0) { throw new System.NotImplementedException(); } public void M11(uint s = 1) { throw new System.NotImplementedException(); } public void M12(uint s = uint.MaxValue) { throw new System.NotImplementedException(); } public void M13(long s = long.MinValue) { throw new System.NotImplementedException(); } public void M14(long s = -1) { throw new System.NotImplementedException(); } public void M15(long s = long.MaxValue) { throw new System.NotImplementedException(); } public void M16(ulong s = 0) { throw new System.NotImplementedException(); } public void M17(ulong s = 1) { throw new System.NotImplementedException(); } public void M18(ulong s = ulong.MaxValue) { throw new System.NotImplementedException(); } public void M19(float s = float.MinValue) { throw new System.NotImplementedException(); } public void M20(float s = 1) { throw new System.NotImplementedException(); } public void M21(float s = float.MaxValue) { throw new System.NotImplementedException(); } public void M22(double s = double.MinValue) { throw new System.NotImplementedException(); } public void M23(double s = 1) { throw new System.NotImplementedException(); } public void M24(double s = double.MaxValue) { throw new System.NotImplementedException(); } }", Options = { AllOptionsOff }, // 🐛 one value is generated with 0U instead of 0 CodeActionValidationMode = CodeActionValidationMode.None, }.RunAsync(); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestEnumLiterals() { await TestWithAllCodeStyleOptionsOffAsync( @"using System; enum E { A = 1, B = 2 } [FlagsAttribute] enum FlagE { A = 1, B = 2 } interface I { void M1(E e = E.A | E.B); void M2(FlagE e = FlagE.A | FlagE.B); } class C : {|CS0535:{|CS0535:I|}|} { }", @"using System; enum E { A = 1, B = 2 } [FlagsAttribute] enum FlagE { A = 1, B = 2 } interface I { void M1(E e = E.A | E.B); void M2(FlagE e = FlagE.A | FlagE.B); } class C : I { public void M1(E e = (E)3) { throw new NotImplementedException(); } public void M2(FlagE e = FlagE.A | FlagE.B) { throw new NotImplementedException(); } }"); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestCharLiterals() { await TestWithAllCodeStyleOptionsOffAsync( @"using System; interface I { void M01(char c = '\0'); void M02(char c = '\r'); void M03(char c = '\n'); void M04(char c = '\t'); void M05(char c = '\b'); void M06(char c = '\v'); void M07(char c = '\''); void M08(char c = '“'); void M09(char c = 'a'); void M10(char c = '""'); void M11(char c = '\u2029'); } class C : {|CS0535:{|CS0535:{|CS0535:{|CS0535:{|CS0535:{|CS0535:{|CS0535:{|CS0535:{|CS0535:{|CS0535:{|CS0535:I|}|}|}|}|}|}|}|}|}|}|} { }", @"using System; interface I { void M01(char c = '\0'); void M02(char c = '\r'); void M03(char c = '\n'); void M04(char c = '\t'); void M05(char c = '\b'); void M06(char c = '\v'); void M07(char c = '\''); void M08(char c = '“'); void M09(char c = 'a'); void M10(char c = '""'); void M11(char c = '\u2029'); } class C : I { public void M01(char c = '\0') { throw new NotImplementedException(); } public void M02(char c = '\r') { throw new NotImplementedException(); } public void M03(char c = '\n') { throw new NotImplementedException(); } public void M04(char c = '\t') { throw new NotImplementedException(); } public void M05(char c = '\b') { throw new NotImplementedException(); } public void M06(char c = '\v') { throw new NotImplementedException(); } public void M07(char c = '\'') { throw new NotImplementedException(); } public void M08(char c = '“') { throw new NotImplementedException(); } public void M09(char c = 'a') { throw new NotImplementedException(); } public void M10(char c = '""') { throw new NotImplementedException(); } public void M11(char c = '\u2029') { throw new NotImplementedException(); } }"); } [WorkItem(545695, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/545695")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestRemoveParenthesesAroundTypeReference1() { await TestWithAllCodeStyleOptionsOffAsync( @"using System; interface I { void Goo(DayOfWeek x = DayOfWeek.Friday); } class C : {|CS0535:I|} { DayOfWeek DayOfWeek { get; set; } }", @"using System; interface I { void Goo(DayOfWeek x = DayOfWeek.Friday); } class C : I { DayOfWeek DayOfWeek { get; set; } public void Goo(DayOfWeek x = DayOfWeek.Friday) { throw new NotImplementedException(); } }"); } [WorkItem(545696, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/545696")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestDecimalConstants1() { await TestWithAllCodeStyleOptionsOffAsync( @"interface I { void Goo(decimal x = decimal.MaxValue); } class C : {|CS0535:I|} { }", @"interface I { void Goo(decimal x = decimal.MaxValue); } class C : I { public void Goo(decimal x = decimal.MaxValue) { throw new System.NotImplementedException(); } }"); } [WorkItem(545711, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/545711")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestNullablePrimitiveLiteral() { await TestWithAllCodeStyleOptionsOffAsync( @"interface I { void Goo(decimal? x = decimal.MaxValue); } class C : {|CS0535:I|} { }", @"interface I { void Goo(decimal? x = decimal.MaxValue); } class C : I { public void Goo(decimal? x = decimal.MaxValue) { throw new System.NotImplementedException(); } }"); } [WorkItem(545715, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/545715")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestNullableEnumType() { await TestWithAllCodeStyleOptionsOffAsync( @"using System; interface I { void Goo(DayOfWeek? x = DayOfWeek.Friday); } class C : {|CS0535:I|} { }", @"using System; interface I { void Goo(DayOfWeek? x = DayOfWeek.Friday); } class C : I { public void Goo(DayOfWeek? x = DayOfWeek.Friday) { throw new NotImplementedException(); } }"); } [WorkItem(545752, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/545752")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestByteLiterals() { await TestWithAllCodeStyleOptionsOffAsync( @"interface I { void Goo(byte x = 1); } class C : {|CS0535:I|} { }", @"interface I { void Goo(byte x = 1); } class C : I { public void Goo(byte x = 1) { throw new System.NotImplementedException(); } }"); } [WorkItem(545736, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/545736")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestCastedOptionalParameter1() { const string code = @" using System; interface I { void Goo(ConsoleColor x = (ConsoleColor)(-1)); } class C : {|CS0535:I|} { }"; const string expected = @" using System; interface I { void Goo(ConsoleColor x = (ConsoleColor)(-1)); } class C : I { public void Goo(ConsoleColor x = (ConsoleColor)(-1)) { throw new NotImplementedException(); } }"; await TestWithAllCodeStyleOptionsOffAsync(code, expected); } [WorkItem(545737, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/545737")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestCastedEnumValue() { await TestWithAllCodeStyleOptionsOffAsync( @"using System; interface I { void Goo(ConsoleColor x = (ConsoleColor)int.MaxValue); } class C : {|CS0535:I|} { }", @"using System; interface I { void Goo(ConsoleColor x = (ConsoleColor)int.MaxValue); } class C : I { public void Goo(ConsoleColor x = (ConsoleColor)int.MaxValue) { throw new NotImplementedException(); } }"); } [WorkItem(545785, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/545785")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestNoCastFromZeroToEnum() { await TestWithAllCodeStyleOptionsOffAsync( @"enum E { A = 1, } interface I { void Goo(E x = 0); } class C : {|CS0535:I|} { }", @"enum E { A = 1, } interface I { void Goo(E x = 0); } class C : I { public void Goo(E x = 0) { throw new System.NotImplementedException(); } }"); } [WorkItem(545793, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/545793")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestMultiDimArray() { await TestWithAllCodeStyleOptionsOffAsync( @"using System.Runtime.InteropServices; interface I { void Goo([Optional][DefaultParameterValue(1)] int x, int[,] y); } class C : {|CS0535:I|} { }", @"using System.Runtime.InteropServices; interface I { void Goo([Optional][DefaultParameterValue(1)] int x, int[,] y); } class C : I { public void Goo([{|CS1745:DefaultParameterValue|}(1), {|CS1745:Optional|}] int x = {|CS8017:1|}, int[,] y = null) { throw new System.NotImplementedException(); } }"); } [WorkItem(545794, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/545794")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestParametersAfterOptionalParameter() { await TestWithAllCodeStyleOptionsOffAsync( @"using System.Runtime.InteropServices; interface I { void Goo([Optional, DefaultParameterValue(1)] int x, int[] y, int[] z); } class C : {|CS0535:I|} { }", @"using System.Runtime.InteropServices; interface I { void Goo([Optional, DefaultParameterValue(1)] int x, int[] y, int[] z); } class C : I { public void Goo([{|CS1745:DefaultParameterValue|}(1), {|CS1745:Optional|}] int x = {|CS8017:1|}, int[] y = null, int[] z = null) { throw new System.NotImplementedException(); } }"); } [WorkItem(545605, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/545605")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestAttributeInParameter() { var test = new VerifyCS.Test { TestCode = @"using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; interface I { void Goo([Optional][DateTimeConstant(100)] DateTime d1, [Optional][IUnknownConstant] object d2); } class C : {|CS0535:I|} { } ", FixedCode = @"using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; interface I { void Goo([Optional][DateTimeConstant(100)] DateTime d1, [Optional][IUnknownConstant] object d2); } class C : I { public void Goo([DateTimeConstant(100), Optional] DateTime d1, [IUnknownConstant, Optional] object d2) { throw new NotImplementedException(); } } ", // 🐛 the DateTimeConstant attribute is generated with 100L instead of 100 CodeActionValidationMode = CodeActionValidationMode.None, }; test.Options.AddRange(AllOptionsOff); await test.RunAsync(); } [WorkItem(545897, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/545897")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestNameConflictBetweenMethodAndTypeParameter() { await TestWithAllCodeStyleOptionsOffAsync( @"interface I<S> { void T1<T>(S x, T y); } class C<T> : {|CS0535:I<T>|} { }", @"interface I<S> { void T1<T>(S x, T y); } class C<T> : I<T> { public void T1<T2>(T x, T2 y) { throw new System.NotImplementedException(); } }"); } [WorkItem(545895, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/545895")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestTypeParameterReplacementWithOuterType() { await TestWithAllCodeStyleOptionsOffAsync( @"using System.Collections.Generic; interface I<S> { void Goo<T>(S y, List<T>.Enumerator x); } class D<T> : {|CS0535:I<T>|} { }", @"using System.Collections.Generic; interface I<S> { void Goo<T>(S y, List<T>.Enumerator x); } class D<T> : I<T> { public void Goo<T1>(T y, List<T1>.Enumerator x) { throw new System.NotImplementedException(); } }"); } [WorkItem(545864, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/545864")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestFloatConstant() { await TestWithAllCodeStyleOptionsOffAsync( @"interface I { void Goo(float x = 1E10F); } class C : {|CS0535:I|} { }", @"interface I { void Goo(float x = 1E10F); } class C : I { public void Goo(float x = 1E+10F) { throw new System.NotImplementedException(); } }"); } [WorkItem(544640, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/544640")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestKeywordForTypeParameterName() { await TestWithAllCodeStyleOptionsOffAsync( @"interface I { void Goo<@class>(); } class C : {|CS0535:I|}{|CS1513:|}{|CS1514:|}", @"interface I { void Goo<@class>(); } class C : I { public void Goo<@class>() { throw new System.NotImplementedException(); } } "); } [WorkItem(545922, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/545922")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestExtremeDecimals() { await TestWithAllCodeStyleOptionsOffAsync( @"interface I { void Goo1(decimal x = 1E28M); void Goo2(decimal x = -1E28M); } class C : {|CS0535:{|CS0535:I|}|} { }", @"interface I { void Goo1(decimal x = 1E28M); void Goo2(decimal x = -1E28M); } class C : I { public void Goo1(decimal x = 10000000000000000000000000000M) { throw new System.NotImplementedException(); } public void Goo2(decimal x = -10000000000000000000000000000M) { throw new System.NotImplementedException(); } }"); } [WorkItem(544659, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/544659")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestNonZeroScaleDecimals() { await TestWithAllCodeStyleOptionsOffAsync( @"interface I { void Goo(decimal x = 0.1M); } class C : {|CS0535:I|} { }", @"interface I { void Goo(decimal x = 0.1M); } class C : I { public void Goo(decimal x = 0.1M) { throw new System.NotImplementedException(); } }"); } [WorkItem(544639, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/544639")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestUnterminatedComment() { await TestWithAllCodeStyleOptionsOffAsync( @"using System; // Implement interface class C : {|CS0535:IServiceProvider|} {|CS1035:|}/* {|CS1513:|}{|CS1514:|}", @"using System; // Implement interface class C : IServiceProvider /* */ { public object GetService(Type serviceType) { throw new NotImplementedException(); } } "); } [WorkItem(529920, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/529920")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestNewLineBeforeDirective() { await TestWithAllCodeStyleOptionsOffAsync( @"using System; // Implement interface class C : {|CS0535:IServiceProvider|}{|CS1513:|}{|CS1514:|} #pragma warning disable ", @"using System; // Implement interface class C : IServiceProvider { public object GetService(Type serviceType) { throw new NotImplementedException(); } } #pragma warning disable "); } [WorkItem(529947, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/529947")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestCommentAfterInterfaceList1() { await TestWithAllCodeStyleOptionsOffAsync( @"using System; class C : {|CS0535:IServiceProvider|}{|CS1513:|}{|CS1514:|} // Implement interface ", @"using System; class C : IServiceProvider // Implement interface { public object GetService(Type serviceType) { throw new NotImplementedException(); } } "); } [WorkItem(529947, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/529947")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestCommentAfterInterfaceList2() { await TestWithAllCodeStyleOptionsOffAsync( @"using System; class C : {|CS0535:IServiceProvider|}{|CS1513:|}{|CS1514:|} // Implement interface ", @"using System; class C : IServiceProvider { public object GetService(Type serviceType) { throw new NotImplementedException(); } } // Implement interface "); } [WorkItem(994456, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/994456")] [WorkItem(958699, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/958699")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestImplementIDisposable_NoDisposePattern() { await TestWithAllCodeStyleOptionsOffAsync( @"using System; class C : {|CS0535:IDisposable|}{|CS1513:|}{|CS1514:|}", @"using System; class C : IDisposable { public void Dispose() { throw new NotImplementedException(); } } ", codeAction: ("False;False;True:global::System.IDisposable;mscorlib;Microsoft.CodeAnalysis.ImplementInterface.AbstractImplementInterfaceService+ImplementInterfaceCodeAction;", 0)); } [WorkItem(994456, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/994456")] [WorkItem(958699, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/958699")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestImplementIDisposable_DisposePattern() { await TestWithAllCodeStyleOptionsOffAsync( @"using System; class C : {|CS0535:IDisposable|}{|CS1513:|}{|CS1514:|}", $@"using System; class C : IDisposable {{ private bool disposedValue; {DisposePattern("protected virtual ", "C", "public void ")} }} ", codeAction: ("False;False;True:global::System.IDisposable;mscorlib;Microsoft.CodeAnalysis.ImplementInterface.AbstractImplementInterfaceService+ImplementInterfaceWithDisposePatternCodeAction;", 1)); } [WorkItem(994456, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/994456")] [WorkItem(958699, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/958699")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestImplementIDisposableExplicitly_NoDisposePattern() { await TestWithAllCodeStyleOptionsOffAsync( @"using System; class C : {|CS0535:IDisposable|}{|CS1513:|}{|CS1514:|}", @"using System; class C : IDisposable { void IDisposable.Dispose() { throw new NotImplementedException(); } } ", codeAction: ("True;False;False:global::System.IDisposable;mscorlib;Microsoft.CodeAnalysis.ImplementInterface.AbstractImplementInterfaceService+ImplementInterfaceCodeAction;", 2)); } [WorkItem(994456, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/994456")] [WorkItem(941469, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/941469")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestImplementIDisposableExplicitly_DisposePattern() { await TestWithAllCodeStyleOptionsOffAsync( @"using System; class C : {|CS0535:System.IDisposable|} { class IDisposable { } }", $@"using System; class C : System.IDisposable {{ private bool disposedValue; class IDisposable {{ }} {DisposePattern("protected virtual ", "C", "void System.IDisposable.")} }}", codeAction: ("True;False;False:global::System.IDisposable;mscorlib;Microsoft.CodeAnalysis.ImplementInterface.AbstractImplementInterfaceService+ImplementInterfaceWithDisposePatternCodeAction;", 3)); } [WorkItem(994456, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/994456")] [WorkItem(958699, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/958699")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestImplementIDisposableAbstractly_NoDisposePattern() { await TestWithAllCodeStyleOptionsOffAsync( @"using System; abstract class C : {|CS0535:IDisposable|}{|CS1513:|}{|CS1514:|}", @"using System; abstract class C : IDisposable { public abstract void Dispose(); } ", codeAction: ("False;True;True:global::System.IDisposable;mscorlib;Microsoft.CodeAnalysis.ImplementInterface.AbstractImplementInterfaceService+ImplementInterfaceCodeAction;", 2)); } [WorkItem(994456, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/994456")] [WorkItem(958699, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/958699")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestImplementIDisposableThroughMember_NoDisposePattern() { await TestWithAllCodeStyleOptionsOffAsync( @"using System; class C : {|CS0535:IDisposable|} { private IDisposable goo; }", @"using System; class C : IDisposable { private IDisposable goo; public void Dispose() { goo.Dispose(); } }", codeAction: ("False;False;False:global::System.IDisposable;mscorlib;Microsoft.CodeAnalysis.ImplementInterface.AbstractImplementInterfaceService+ImplementInterfaceCodeAction;goo", 2)); } [WorkItem(941469, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/941469")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestImplementIDisposableExplicitly_NoNamespaceImportForSystem() { await new VerifyCS.Test { TestCode = @"class C : {|CS0535:System.IDisposable|}{|CS1513:|}{|CS1514:|}", FixedCode = $@"class C : System.IDisposable {{ private bool disposedValue; {DisposePattern("protected virtual ", "C", "void System.IDisposable.", gcPrefix: "System.")} }} ", CodeActionEquivalenceKey = "True;False;False:global::System.IDisposable;mscorlib;Microsoft.CodeAnalysis.ImplementInterface.AbstractImplementInterfaceService+ImplementInterfaceWithDisposePatternCodeAction;", CodeActionIndex = 3, // 🐛 generated QualifiedName where SimpleMemberAccessExpression was expected CodeActionValidationMode = CodeActionValidationMode.None, }.RunAsync(); } [WorkItem(951968, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/951968")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestImplementIDisposableViaBaseInterface_NoDisposePattern() { await TestWithAllCodeStyleOptionsOffAsync( @"using System; interface I : IDisposable { void F(); } class C : {|CS0535:{|CS0535:I|}|} { }", @"using System; interface I : IDisposable { void F(); } class C : I { public void Dispose() { throw new NotImplementedException(); } public void F() { throw new NotImplementedException(); } }", codeAction: ("False;False;True:global::I;TestProject;Microsoft.CodeAnalysis.ImplementInterface.AbstractImplementInterfaceService+ImplementInterfaceCodeAction;", 0)); } [WorkItem(951968, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/951968")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestImplementIDisposableViaBaseInterface() { await TestWithAllCodeStyleOptionsOffAsync( @"using System; interface I : IDisposable { void F(); } class C : {|CS0535:{|CS0535:I|}|} { }", $@"using System; interface I : IDisposable {{ void F(); }} class C : I {{ private bool disposedValue; public void F() {{ throw new NotImplementedException(); }} {DisposePattern("protected virtual ", "C", "public void ")} }}", codeAction: ("False;False;True:global::I;TestProject;Microsoft.CodeAnalysis.ImplementInterface.AbstractImplementInterfaceService+ImplementInterfaceWithDisposePatternCodeAction;", 1)); } [WorkItem(951968, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/951968")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestImplementIDisposableExplicitlyViaBaseInterface() { await TestWithAllCodeStyleOptionsOffAsync( @"using System; interface I : IDisposable { void F(); } class C : {|CS0535:{|CS0535:I|}|} { }", $@"using System; interface I : IDisposable {{ void F(); }} class C : I {{ private bool disposedValue; void I.F() {{ throw new NotImplementedException(); }} {DisposePattern("protected virtual ", "C", "void IDisposable.")} }}", codeAction: ("True;False;False:global::I;TestProject;Microsoft.CodeAnalysis.ImplementInterface.AbstractImplementInterfaceService+ImplementInterfaceWithDisposePatternCodeAction;", 3)); } [WorkItem(941469, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/941469")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestDontImplementDisposePatternForLocallyDefinedIDisposable() { await TestWithAllCodeStyleOptionsOffAsync( @"namespace System { interface IDisposable { void Dispose(); } class C : {|CS0535:IDisposable|}{|CS1513:|}{|CS1514:|} }", @"namespace System { interface IDisposable { void Dispose(); } class C : IDisposable { void IDisposable.Dispose() { throw new NotImplementedException(); } } }", codeAction: ("True;False;False:global::System.IDisposable;TestProject;Microsoft.CodeAnalysis.ImplementInterface.AbstractImplementInterfaceService+ImplementInterfaceCodeAction;", 1)); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestDontImplementDisposePatternForStructures1() { await TestWithAllCodeStyleOptionsOffAsync( @"using System; struct S : {|CS0535:IDisposable|}{|CS1513:|}{|CS1514:|}", @"using System; struct S : IDisposable { public void Dispose() { throw new NotImplementedException(); } } "); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestDontImplementDisposePatternForStructures2() { await TestWithAllCodeStyleOptionsOffAsync( @"using System; struct S : {|CS0535:IDisposable|}{|CS1513:|}{|CS1514:|}", @"using System; struct S : IDisposable { void IDisposable.Dispose() { throw new NotImplementedException(); } } ", codeAction: ("True;False;False:global::System.IDisposable;mscorlib;Microsoft.CodeAnalysis.ImplementInterface.AbstractImplementInterfaceService+ImplementInterfaceCodeAction;", 1)); } [WorkItem(545924, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/545924")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestEnumNestedInGeneric() { var test = new VerifyCS.Test() { TestCode = @"class C<T> { public enum E { X } } interface I { void Goo<T>(C<T>.E x = C<T>.E.X); } class D : {|CS0535:I|} { }", FixedCode = @"class C<T> { public enum E { X } } interface I { void Goo<T>(C<T>.E x = C<T>.E.X); } class D : I { public void Goo<T>(C<T>.E x = C<T>.E.X) { throw new System.NotImplementedException(); } }", // 🐛 generated QualifiedName where SimpleMemberAccessExpression was expected CodeActionValidationMode = CodeActionValidationMode.None, }; test.Options.AddRange(AllOptionsOff); await test.RunAsync(); } [WorkItem(545939, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/545939")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestUnterminatedString1() { await TestWithAllCodeStyleOptionsOffAsync( @"using System; class C : {|CS0535:IServiceProvider|} {|CS1039:|}@""{|CS1513:|}{|CS1514:|}", @"using System; class C : IServiceProvider {|CS1003:@""""|}{ public object GetService(Type serviceType) { throw new NotImplementedException(); } } "); } [WorkItem(545939, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/545939")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestUnterminatedString2() { await TestWithAllCodeStyleOptionsOffAsync( @"using System; class C : {|CS0535:IServiceProvider|} {|CS1010:|}""{|CS1513:|}{|CS1514:|}", @"using System; class C : IServiceProvider {|CS1003:""""|}{ public object GetService(Type serviceType) { throw new NotImplementedException(); } } "); } [WorkItem(545939, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/545939")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestUnterminatedString3() { await TestWithAllCodeStyleOptionsOffAsync( @"using System; class C : {|CS0535:IServiceProvider|} {|CS1039:|}@""{|CS1513:|}{|CS1514:|}", @"using System; class C : IServiceProvider {|CS1003:@""""|}{ public object GetService(Type serviceType) { throw new NotImplementedException(); } } "); } [WorkItem(545939, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/545939")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestUnterminatedString4() { await TestWithAllCodeStyleOptionsOffAsync( @"using System; class C : {|CS0535:IServiceProvider|} {|CS1010:|}""{|CS1513:|}{|CS1514:|}", @"using System; class C : IServiceProvider {|CS1003:""""|}{ public object GetService(Type serviceType) { throw new NotImplementedException(); } } "); } [WorkItem(545940, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/545940")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestDecimalENotation() { await TestWithAllCodeStyleOptionsOffAsync( @"interface I { void Goo1(decimal x = 1E-25M); void Goo2(decimal x = -1E-25M); void Goo3(decimal x = 1E-24M); void Goo4(decimal x = -1E-24M); } class C : {|CS0535:{|CS0535:{|CS0535:{|CS0535:I|}|}|}|} { }", @"interface I { void Goo1(decimal x = 1E-25M); void Goo2(decimal x = -1E-25M); void Goo3(decimal x = 1E-24M); void Goo4(decimal x = -1E-24M); } class C : I { public void Goo1(decimal x = 0.0000000000000000000000001M) { throw new System.NotImplementedException(); } public void Goo2(decimal x = -0.0000000000000000000000001M) { throw new System.NotImplementedException(); } public void Goo3(decimal x = 0.000000000000000000000001M) { throw new System.NotImplementedException(); } public void Goo4(decimal x = -0.000000000000000000000001M) { throw new System.NotImplementedException(); } }"); } [WorkItem(545938, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/545938")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestGenericEnumWithRenamedTypeParameters() { var test = new VerifyCS.Test { TestCode = @"class C<T> { public enum E { X } } interface I<S> { void Goo<T>(S y, C<T>.E x = C<T>.E.X); } class D<T> : {|CS0535:I<T>|} { }", FixedCode = @"class C<T> { public enum E { X } } interface I<S> { void Goo<T>(S y, C<T>.E x = C<T>.E.X); } class D<T> : I<T> { public void Goo<T1>(T y, C<T1>.E x = C<T1>.E.X) { throw new System.NotImplementedException(); } }", // 🐛 generated QualifiedName where SimpleMemberAccessExpression was expected CodeActionValidationMode = CodeActionValidationMode.None, }; test.Options.AddRange(AllOptionsOff); await test.RunAsync(); } [WorkItem(545919, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/545919")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestDoNotRenameTypeParameterToParameterName() { await TestWithAllCodeStyleOptionsOffAsync( @"interface I<S> { void Goo<T>(S T1); } class C<T> : {|CS0535:I<T>|} { }", @"interface I<S> { void Goo<T>(S T1); } class C<T> : I<T> { public void Goo<T2>(T T1) { throw new System.NotImplementedException(); } }"); } [WorkItem(530265, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/530265")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestAttributes() { await TestWithAllCodeStyleOptionsOffAsync( @"using System.Runtime.InteropServices; interface I { [return: MarshalAs(UnmanagedType.U1)] bool Goo([MarshalAs(UnmanagedType.U1)] bool x); } class C : {|CS0535:I|} { }", @"using System.Runtime.InteropServices; interface I { [return: MarshalAs(UnmanagedType.U1)] bool Goo([MarshalAs(UnmanagedType.U1)] bool x); } class C : I { [return: MarshalAs(UnmanagedType.U1)] public bool Goo([MarshalAs(UnmanagedType.U1)] bool x) { throw new System.NotImplementedException(); } }"); } [WorkItem(530265, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/530265")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestAttributesExplicit() { await TestWithAllCodeStyleOptionsOffAsync( @"using System.Runtime.InteropServices; interface I { [return: MarshalAs(UnmanagedType.U1)] bool Goo([MarshalAs(UnmanagedType.U1)] bool x); } class C : {|CS0535:I|} { }", @"using System.Runtime.InteropServices; interface I { [return: MarshalAs(UnmanagedType.U1)] bool Goo([MarshalAs(UnmanagedType.U1)] bool x); } class C : I { bool I.Goo(bool x) { throw new System.NotImplementedException(); } }", codeAction: ("True;False;False:global::I;TestProject;Microsoft.CodeAnalysis.ImplementInterface.AbstractImplementInterfaceService+ImplementInterfaceCodeAction;", 1)); } [WorkItem(546443, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/546443")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestParameterNameWithTypeName() { await TestWithAllCodeStyleOptionsOffAsync( @"using System; interface IGoo { void Bar(DateTime DateTime); } class C : {|CS0535:IGoo|} { }", @"using System; interface IGoo { void Bar(DateTime DateTime); } class C : IGoo { public void Bar(DateTime DateTime) { throw new NotImplementedException(); } }"); } [WorkItem(530521, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/530521")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestUnboundGeneric() { await TestWithAllCodeStyleOptionsOffAsync( @"using System.Collections.Generic; using System.Runtime.InteropServices; interface I { [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(List<>))] void Goo(); } class C : {|CS0535:I|} { }", @"using System.Collections.Generic; using System.Runtime.InteropServices; interface I { [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(List<>))] void Goo(); } class C : I { [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(List<>))] public void Goo() { throw new System.NotImplementedException(); } }"); } [WorkItem(752436, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/752436")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestQualifiedNameImplicitInterface() { await TestWithAllCodeStyleOptionsOffAsync( @"namespace N { public interface I { void M(); } } class C : {|CS0535:N.I|} { }", @"namespace N { public interface I { void M(); } } class C : N.I { public void M() { throw new System.NotImplementedException(); } }"); } [WorkItem(752436, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/752436")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestQualifiedNameExplicitInterface() { await TestWithAllCodeStyleOptionsOffAsync( @"namespace N { public interface I { void M(); } } class C : {|CS0535:N.I|} { }", @"using N; namespace N { public interface I { void M(); } } class C : N.I { void I.M() { throw new System.NotImplementedException(); } }", codeAction: ("True;False;False:global::N.I;TestProject;Microsoft.CodeAnalysis.ImplementInterface.AbstractImplementInterfaceService+ImplementInterfaceCodeAction;", 1)); } [WorkItem(847464, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/847464")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestImplementInterfaceForPartialType() { await TestWithAllCodeStyleOptionsOffAsync( @"public interface I { void Goo(); } partial class C { } partial class C : {|CS0535:I|} { }", @"public interface I { void Goo(); } partial class C { } partial class C : I { void I.Goo() { throw new System.NotImplementedException(); } }", codeAction: ("True;False;False:global::I;TestProject;Microsoft.CodeAnalysis.ImplementInterface.AbstractImplementInterfaceService+ImplementInterfaceCodeAction;", 1)); } [WorkItem(847464, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/847464")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestImplementInterfaceForPartialType2() { await TestWithAllCodeStyleOptionsOffAsync( @"public interface I { void Goo(); } partial class C : {|CS0535:I|} { } partial class C { }", @"public interface I { void Goo(); } partial class C : I { void I.Goo() { throw new System.NotImplementedException(); } } partial class C { }", codeAction: ("True;False;False:global::I;TestProject;Microsoft.CodeAnalysis.ImplementInterface.AbstractImplementInterfaceService+ImplementInterfaceCodeAction;", 1)); } [WorkItem(847464, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/847464")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestImplementInterfaceForPartialType3() { await new VerifyCS.Test { TestCode = @"public interface I { void Goo(); } public interface I2 { void Goo2(); } partial class C : {|CS0535:I|} { } partial class C : {|CS0535:I2|} { }", FixedState = { Sources = { @"public interface I { void Goo(); } public interface I2 { void Goo2(); } partial class C : I { void I.Goo() { throw new System.NotImplementedException(); } } partial class C : {|CS0535:I2|} { }", }, MarkupHandling = MarkupMode.Allow, }, Options = { AllOptionsOff }, CodeFixTestBehaviors = CodeFixTestBehaviors.FixOne, CodeActionEquivalenceKey = "True;False;False:global::I;TestProject;Microsoft.CodeAnalysis.ImplementInterface.AbstractImplementInterfaceService+ImplementInterfaceCodeAction;", CodeActionIndex = 1, }.RunAsync(); } [WorkItem(752447, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/752447")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestExplicitImplOfIndexedProperty() { var test = new VerifyCS.Test { TestState = { Sources = { @" public class Test : {|CS0535:{|CS0535:IGoo|}|} { }", }, AdditionalProjects = { ["Assembly1", LanguageNames.VisualBasic] = { Sources = { @" Public Interface IGoo Property IndexProp(ByVal p1 As Integer) As String End Interface", }, }, }, AdditionalProjectReferences = { "Assembly1", }, }, FixedState = { Sources = { @" public class Test : IGoo { string IGoo.get_IndexProp(int p1) { throw new System.NotImplementedException(); } void IGoo.set_IndexProp(int p1, string Value) { throw new System.NotImplementedException(); } }", }, }, CodeActionEquivalenceKey = "True;False;False:global::IGoo;Assembly1;Microsoft.CodeAnalysis.ImplementInterface.AbstractImplementInterfaceService+ImplementInterfaceCodeAction;", CodeActionIndex = 1, }; test.Options.AddRange(AllOptionsOff); await test.RunAsync(); } [WorkItem(602475, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/602475")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestImplicitImplOfIndexedProperty() { await new VerifyCS.Test { TestState = { Sources = { @"using System; class C : {|CS0535:{|CS0535:I|}|} { }", }, AdditionalProjects = { ["Assembly1", LanguageNames.VisualBasic] = { Sources = { @"Public Interface I Property P(x As Integer) End Interface", }, }, }, AdditionalProjectReferences = { "Assembly1" }, }, FixedState = { Sources = { @"using System; class C : I { public object get_P(int x) { throw new NotImplementedException(); } public void set_P(int x, object Value) { throw new NotImplementedException(); } }", }, }, CodeActionEquivalenceKey = "False;False;True:global::I;Assembly1;Microsoft.CodeAnalysis.ImplementInterface.AbstractImplementInterfaceService+ImplementInterfaceCodeAction;", CodeActionIndex = 0, }.RunAsync(); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestImplementationOfIndexerWithInaccessibleAttributes() { var test = new VerifyCS.Test { TestState = { Sources = { @" using System; class C : {|CS0535:I|} { }", }, AdditionalProjects = { ["Assembly1"] = { Sources = { @" using System; internal class ShouldBeRemovedAttribute : Attribute { } public interface I { string this[[ShouldBeRemovedAttribute] int i] { get; set; } }" }, }, }, AdditionalProjectReferences = { "Assembly1", }, }, FixedState = { Sources = { @" using System; class C : I { public string this[int i] { get { throw new NotImplementedException(); } set { throw new NotImplementedException(); } } }", }, }, CodeActionEquivalenceKey = "False;False;True:global::I;Assembly1;Microsoft.CodeAnalysis.ImplementInterface.AbstractImplementInterfaceService+ImplementInterfaceCodeAction;", CodeActionIndex = 0, }; test.Options.AddRange(AllOptionsOff); await test.RunAsync(); } #if false [WorkItem(13677)] [WpfFact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestNoGenerateInVenusCase2() { await TestMissingAsync( @"using System; #line 1 ""Bar"" class Goo : [|IComparable|] #line default #line hidden"); } #endif [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestImplementInterfaceForImplicitIDisposable() { await TestWithAllCodeStyleOptionsOffAsync( @"using System; class Program : {|CS0535:IDisposable|} { }", $@"using System; class Program : IDisposable {{ private bool disposedValue; {DisposePattern("protected virtual ", "Program", "public void ")} }}", codeAction: ("False;False;True:global::System.IDisposable;mscorlib;Microsoft.CodeAnalysis.ImplementInterface.AbstractImplementInterfaceService+ImplementInterfaceWithDisposePatternCodeAction;", 1)); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestImplementInterfaceForExplicitIDisposable() { await TestWithAllCodeStyleOptionsOffAsync( @"using System; class Program : {|CS0535:IDisposable|} { private bool DisposedValue; }", $@"using System; class Program : IDisposable {{ private bool DisposedValue; private bool disposedValue; {DisposePattern("protected virtual ", "Program", "void IDisposable.")} }}", codeAction: ("True;False;False:global::System.IDisposable;mscorlib;Microsoft.CodeAnalysis.ImplementInterface.AbstractImplementInterfaceService+ImplementInterfaceWithDisposePatternCodeAction;", 3)); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestImplementInterfaceForIDisposableNonApplicable1() { await TestWithAllCodeStyleOptionsOffAsync( @"using System; class Program : {|CS0535:IDisposable|} { private bool disposedValue; }", @"using System; class Program : IDisposable { private bool disposedValue; public void Dispose() { throw new NotImplementedException(); } }", codeAction: ("False;False;True:global::System.IDisposable;mscorlib;Microsoft.CodeAnalysis.ImplementInterface.AbstractImplementInterfaceService+ImplementInterfaceCodeAction;", 0)); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestImplementInterfaceForIDisposableNonApplicable2() { await TestWithAllCodeStyleOptionsOffAsync( @"using System; class Program : {|CS0535:IDisposable|} { public void Dispose(bool flag) { } }", @"using System; class Program : IDisposable { public void Dispose(bool flag) { } public void Dispose() { throw new NotImplementedException(); } }", codeAction: ("False;False;True:global::System.IDisposable;mscorlib;Microsoft.CodeAnalysis.ImplementInterface.AbstractImplementInterfaceService+ImplementInterfaceCodeAction;", 0)); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestImplementInterfaceForExplicitIDisposableWithSealedClass() { await TestWithAllCodeStyleOptionsOffAsync( @"using System; sealed class Program : {|CS0535:IDisposable|} { }", $@"using System; sealed class Program : IDisposable {{ private bool disposedValue; {DisposePattern("private ", "Program", "void IDisposable.")} }}", codeAction: ("True;False;False:global::System.IDisposable;mscorlib;Microsoft.CodeAnalysis.ImplementInterface.AbstractImplementInterfaceService+ImplementInterfaceWithDisposePatternCodeAction;", 3)); } [WorkItem(9760, "https://github.com/dotnet/roslyn/issues/9760")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestImplementInterfaceForExplicitIDisposableWithExistingField() { await TestWithAllCodeStyleOptionsOffAsync( @"using System; class Program : {|CS0535:IDisposable|} { private bool disposedValue; }", $@"using System; class Program : IDisposable {{ private bool disposedValue; private bool disposedValue1; {DisposePattern("protected virtual ", "Program", "public void ", disposeField: "disposedValue1")} }}", codeAction: ("False;False;True:global::System.IDisposable;mscorlib;Microsoft.CodeAnalysis.ImplementInterface.AbstractImplementInterfaceService+ImplementInterfaceWithDisposePatternCodeAction;", 1)); } [WorkItem(9760, "https://github.com/dotnet/roslyn/issues/9760")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestImplementInterfaceUnderscoreNameForFields() { await new VerifyCS.Test { TestCode = @"using System; class Program : {|CS0535:IDisposable|} { }", FixedCode = $@"using System; class Program : IDisposable {{ private bool _disposedValue; {DisposePattern("protected virtual ", "Program", "public void ", disposeField: "_disposedValue")} }}", Options = { _options.FieldNamesAreCamelCaseWithUnderscorePrefix, }, CodeActionEquivalenceKey = "False;False;True:global::System.IDisposable;mscorlib;Microsoft.CodeAnalysis.ImplementInterface.AbstractImplementInterfaceService+ImplementInterfaceWithDisposePatternCodeAction;", CodeActionIndex = 1, }.RunAsync(); } [WorkItem(939123, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/939123")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestNoComAliasNameAttributeOnMethodParameters() { await TestWithAllCodeStyleOptionsOffAsync( @"interface I { void M([System.Runtime.InteropServices.ComAliasName(""pAlias"")] int p); } class C : {|CS0535:I|} { }", @"interface I { void M([System.Runtime.InteropServices.ComAliasName(""pAlias"")] int p); } class C : I { public void M(int p) { throw new System.NotImplementedException(); } }"); } [WorkItem(939123, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/939123")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestNoComAliasNameAttributeOnMethodReturnType() { await TestWithAllCodeStyleOptionsOffAsync( @"using System.Runtime.InteropServices; interface I { [return: ComAliasName(""pAlias1"")] long M([ComAliasName(""pAlias2"")] int p); } class C : {|CS0535:I|} { }", @"using System.Runtime.InteropServices; interface I { [return: ComAliasName(""pAlias1"")] long M([ComAliasName(""pAlias2"")] int p); } class C : I { public long M(int p) { throw new System.NotImplementedException(); } }"); } [WorkItem(939123, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/939123")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestNoComAliasNameAttributeOnIndexerParameters() { await TestWithAllCodeStyleOptionsOffAsync( @"interface I { long this[[System.Runtime.InteropServices.ComAliasName(""pAlias"")] int p] { get; } } class C : {|CS0535:I|} { }", @"interface I { long this[[System.Runtime.InteropServices.ComAliasName(""pAlias"")] int p] { get; } } class C : I { public long this[int p] { get { throw new System.NotImplementedException(); } } }"); } [WorkItem(947819, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/947819")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestMissingOpenBrace() { await TestWithAllCodeStyleOptionsOffAsync( @"namespace Scenarios { public interface TestInterface { void M1(); } struct TestStruct1 : {|CS0535:TestInterface|}{|CS1513:|}{|CS1514:|} // Comment }", @"namespace Scenarios { public interface TestInterface { void M1(); } struct TestStruct1 : TestInterface { public void M1() { throw new System.NotImplementedException(); } } // Comment }"); } [WorkItem(994328, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/994328")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestDisposePatternWhenAdditionalUsingsAreIntroduced1() { //CSharpFeaturesResources.DisposePattern await TestWithAllCodeStyleOptionsOffAsync( @"interface I<T, U> : System.IDisposable, System.IEquatable<int> where U : T { System.Collections.Generic.List<U> M(System.Collections.Generic.Dictionary<T, System.Collections.Generic.List<U>> a, T b, U c); System.Collections.Generic.List<UU> M<TT, UU>(System.Collections.Generic.Dictionary<TT, System.Collections.Generic.List<UU>> a, TT b, UU c) where UU : TT; } partial class C { } partial class C : {|CS0535:{|CS0535:{|CS0535:I<System.Exception, System.AggregateException>|}|}|}, {|CS0535:System.IDisposable|} { }", $@"using System; using System.Collections.Generic; interface I<T, U> : System.IDisposable, System.IEquatable<int> where U : T {{ System.Collections.Generic.List<U> M(System.Collections.Generic.Dictionary<T, System.Collections.Generic.List<U>> a, T b, U c); System.Collections.Generic.List<UU> M<TT, UU>(System.Collections.Generic.Dictionary<TT, System.Collections.Generic.List<UU>> a, TT b, UU c) where UU : TT; }} partial class C {{ }} partial class C : I<System.Exception, System.AggregateException>, System.IDisposable {{ private bool disposedValue; public bool Equals(int other) {{ throw new NotImplementedException(); }} public List<AggregateException> M(Dictionary<Exception, List<AggregateException>> a, Exception b, AggregateException c) {{ throw new NotImplementedException(); }} public List<UU> M<TT, UU>(Dictionary<TT, List<UU>> a, TT b, UU c) where UU : TT {{ throw new NotImplementedException(); }} {DisposePattern("protected virtual ", "C", "public void ")} }}", codeAction: ("False;False;True:global::I<global::System.Exception, global::System.AggregateException>;TestProject;Microsoft.CodeAnalysis.ImplementInterface.AbstractImplementInterfaceService+ImplementInterfaceWithDisposePatternCodeAction;", 1)); } [WorkItem(994328, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/994328")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestDisposePatternWhenAdditionalUsingsAreIntroduced2() { await TestWithAllCodeStyleOptionsOffAsync( @"interface I<T, U> : System.IDisposable, System.IEquatable<int> where U : T { System.Collections.Generic.List<U> M(System.Collections.Generic.Dictionary<T, System.Collections.Generic.List<U>> a, T b, U c); System.Collections.Generic.List<UU> M<TT, UU>(System.Collections.Generic.Dictionary<TT, System.Collections.Generic.List<UU>> a, TT b, UU c) where UU : TT; } partial class C : {|CS0535:{|CS0535:{|CS0535:I<System.Exception, System.AggregateException>|}|}|}, {|CS0535:System.IDisposable|} { } partial class C { }", $@"using System; using System.Collections.Generic; interface I<T, U> : System.IDisposable, System.IEquatable<int> where U : T {{ System.Collections.Generic.List<U> M(System.Collections.Generic.Dictionary<T, System.Collections.Generic.List<U>> a, T b, U c); System.Collections.Generic.List<UU> M<TT, UU>(System.Collections.Generic.Dictionary<TT, System.Collections.Generic.List<UU>> a, TT b, UU c) where UU : TT; }} partial class C : I<System.Exception, System.AggregateException>, System.IDisposable {{ private bool disposedValue; bool IEquatable<int>.Equals(int other) {{ throw new NotImplementedException(); }} List<AggregateException> I<Exception, AggregateException>.M(Dictionary<Exception, List<AggregateException>> a, Exception b, AggregateException c) {{ throw new NotImplementedException(); }} List<UU> I<Exception, AggregateException>.M<TT, UU>(Dictionary<TT, List<UU>> a, TT b, UU c) {{ throw new NotImplementedException(); }} {DisposePattern("protected virtual ", "C", "void IDisposable.")} }} partial class C {{ }}", codeAction: ("True;False;False:global::I<global::System.Exception, global::System.AggregateException>;TestProject;Microsoft.CodeAnalysis.ImplementInterface.AbstractImplementInterfaceService+ImplementInterfaceWithDisposePatternCodeAction;", 3)); } private static string DisposePattern( string disposeVisibility, string className, string implementationVisibility, string disposeField = "disposedValue", string gcPrefix = "") { return $@" {disposeVisibility}void Dispose(bool disposing) {{ if (!{disposeField}) {{ if (disposing) {{ // {FeaturesResources.TODO_colon_dispose_managed_state_managed_objects} }} // {FeaturesResources.TODO_colon_free_unmanaged_resources_unmanaged_objects_and_override_finalizer} // {FeaturesResources.TODO_colon_set_large_fields_to_null} {disposeField} = true; }} }} // // {string.Format(FeaturesResources.TODO_colon_override_finalizer_only_if_0_has_code_to_free_unmanaged_resources, "Dispose(bool disposing)")} // ~{className}() // {{ // // {string.Format(FeaturesResources.Do_not_change_this_code_Put_cleanup_code_in_0_method, "Dispose(bool disposing)")} // Dispose(disposing: false); // }} {implementationVisibility}Dispose() {{ // {string.Format(FeaturesResources.Do_not_change_this_code_Put_cleanup_code_in_0_method, "Dispose(bool disposing)")} Dispose(disposing: true); {gcPrefix}GC.SuppressFinalize(this); }}"; } [WorkItem(1132014, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/1132014")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestInaccessibleAttributes() { await TestWithAllCodeStyleOptionsOffAsync( @"using System; public class Goo : {|CS0535:Holder.SomeInterface|} { } public class Holder { public interface SomeInterface { void Something([SomeAttribute] string helloWorld); } private class SomeAttribute : Attribute { } }", @"using System; public class Goo : Holder.SomeInterface { public void Something(string helloWorld) { throw new NotImplementedException(); } } public class Holder { public interface SomeInterface { void Something([SomeAttribute] string helloWorld); } private class SomeAttribute : Attribute { } }"); } [WorkItem(2785, "https://github.com/dotnet/roslyn/issues/2785")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestImplementInterfaceThroughStaticMemberInGenericClass() { await TestWithAllCodeStyleOptionsOffAsync( @"using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; class Issue2785<T> : {|CS0535:{|CS0535:{|CS0535:{|CS0535:{|CS0535:{|CS0535:{|CS0535:{|CS0535:{|CS0535:{|CS0535:{|CS0535:{|CS0535:{|CS0535:IList<object>|}|}|}|}|}|}|}|}|}|}|}|}|} { private static List<object> innerList = new List<object>(); }", @"using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; class Issue2785<T> : IList<object> { private static List<object> innerList = new List<object>(); public object this[int index] { get { return ((IList<object>)innerList)[index]; } set { ((IList<object>)innerList)[index] = value; } } public int Count { get { return ((ICollection<object>)innerList).Count; } } public bool IsReadOnly { get { return ((ICollection<object>)innerList).IsReadOnly; } } public void Add(object item) { ((ICollection<object>)innerList).Add(item); } public void Clear() { ((ICollection<object>)innerList).Clear(); } public bool Contains(object item) { return ((ICollection<object>)innerList).Contains(item); } public void CopyTo(object[] array, int arrayIndex) { ((ICollection<object>)innerList).CopyTo(array, arrayIndex); } public IEnumerator<object> GetEnumerator() { return ((IEnumerable<object>)innerList).GetEnumerator(); } public int IndexOf(object item) { return ((IList<object>)innerList).IndexOf(item); } public void Insert(int index, object item) { ((IList<object>)innerList).Insert(index, item); } public bool Remove(object item) { return ((ICollection<object>)innerList).Remove(item); } public void RemoveAt(int index) { ((IList<object>)innerList).RemoveAt(index); } IEnumerator IEnumerable.GetEnumerator() { return ((IEnumerable)innerList).GetEnumerator(); } }", codeAction: ("False;False;False:global::System.Collections.Generic.IList<object>;mscorlib;Microsoft.CodeAnalysis.ImplementInterface.AbstractImplementInterfaceService+ImplementInterfaceCodeAction;innerList", 1)); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface), CompilerTrait(CompilerFeature.Tuples)] public async Task LongTuple() { await TestWithAllCodeStyleOptionsOffAsync( @"interface IInterface { (int, string, int, string, int, string, int, string) Method1((int, string, int, string, int, string, int, string) y); } class Class : {|CS0535:IInterface|} { (int, string) x; }", @"interface IInterface { (int, string, int, string, int, string, int, string) Method1((int, string, int, string, int, string, int, string) y); } class Class : IInterface { (int, string) x; public (int, string, int, string, int, string, int, string) Method1((int, string, int, string, int, string, int, string) y) { throw new System.NotImplementedException(); } }"); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task LongTupleWithNames() { await TestWithAllCodeStyleOptionsOffAsync( @"interface IInterface { (int a, string b, int c, string d, int e, string f, int g, string h) Method1((int a, string b, int c, string d, int e, string f, int g, string h) y); } class Class : {|CS0535:IInterface|} { (int, string) x; }", @"interface IInterface { (int a, string b, int c, string d, int e, string f, int g, string h) Method1((int a, string b, int c, string d, int e, string f, int g, string h) y); } class Class : IInterface { (int, string) x; public (int a, string b, int c, string d, int e, string f, int g, string h) Method1((int a, string b, int c, string d, int e, string f, int g, string h) y) { throw new System.NotImplementedException(); } }"); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task GenericWithTuple() { await TestWithAllCodeStyleOptionsOffAsync( @"interface IInterface<TA, TB> { (TA, TB) Method1((TA, TB) y); } class Class : {|CS0535:IInterface<(int, string), int>|} { (int, string) x; }", @"interface IInterface<TA, TB> { (TA, TB) Method1((TA, TB) y); } class Class : IInterface<(int, string), int> { (int, string) x; public ((int, string), int) Method1(((int, string), int) y) { throw new System.NotImplementedException(); } }"); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task GenericWithTupleWithNamess() { await TestWithAllCodeStyleOptionsOffAsync( @"interface IInterface<TA, TB> { (TA a, TB b) Method1((TA a, TB b) y); } class Class : {|CS0535:IInterface<(int, string), int>|} { (int, string) x; }", @"interface IInterface<TA, TB> { (TA a, TB b) Method1((TA a, TB b) y); } class Class : IInterface<(int, string), int> { (int, string) x; public ((int, string) a, int b) Method1(((int, string) a, int b) y) { throw new System.NotImplementedException(); } }"); } [WorkItem(15387, "https://github.com/dotnet/roslyn/issues/15387")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestWithGroupingOff1() { await new VerifyCS.Test { TestCode = @"interface IInterface { int Prop { get; } } class Class : {|CS0535:IInterface|} { void M() { } }", FixedCode = @"interface IInterface { int Prop { get; } } class Class : IInterface { void M() { } public int Prop => throw new System.NotImplementedException(); }", Options = { { ImplementTypeOptions.InsertionBehavior, ImplementTypeInsertionBehavior.AtTheEnd }, }, }.RunAsync(); } [WorkItem(15387, "https://github.com/dotnet/roslyn/issues/15387")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestDoNotReorderComImportMembers_01() { await TestInRegularAndScriptAsync( @" using System.Runtime.InteropServices; [ComImport] [Guid(""00000000-0000-0000-0000-000000000000"")] interface IComInterface { void MOverload(); void X(); void MOverload(int i); int Prop { get; } } class Class : {|CS0535:{|CS0535:{|CS0535:{|CS0535:IComInterface|}|}|}|} { }", @" using System.Runtime.InteropServices; [ComImport] [Guid(""00000000-0000-0000-0000-000000000000"")] interface IComInterface { void MOverload(); void X(); void MOverload(int i); int Prop { get; } } class Class : IComInterface { public void MOverload() { throw new System.NotImplementedException(); } public void X() { throw new System.NotImplementedException(); } public void MOverload(int i) { throw new System.NotImplementedException(); } public int Prop => throw new System.NotImplementedException(); }"); } [WorkItem(15387, "https://github.com/dotnet/roslyn/issues/15387")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestDoNotReorderComImportMembers_02() { await new VerifyCS.Test { ReferenceAssemblies = ReferenceAssemblies.Net.Net50, TestCode = @" using System.Runtime.InteropServices; [ComImport] [Guid(""00000000-0000-0000-0000-000000000000"")] interface IComInterface { void MOverload() { } void X() { } void MOverload(int i) { } int Prop { get; } } class Class : {|CS0535:IComInterface|} { }", FixedCode = @" using System.Runtime.InteropServices; [ComImport] [Guid(""00000000-0000-0000-0000-000000000000"")] interface IComInterface { void MOverload() { } void X() { } void MOverload(int i) { } int Prop { get; } } class Class : IComInterface { public int Prop => throw new System.NotImplementedException(); }", }.RunAsync(); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestRefReturns() { await TestInRegularAndScriptAsync( @" using System; interface I { ref int IGoo(); ref int Goo { get; } ref int this[int i] { get; } } class C : {|CS0535:{|CS0535:{|CS0535:I|}|}|} { }", @" using System; interface I { ref int IGoo(); ref int Goo { get; } ref int this[int i] { get; } } class C : I { public ref int this[int i] => throw new NotImplementedException(); public ref int Goo => throw new NotImplementedException(); public ref int IGoo() { throw new NotImplementedException(); } }"); } [WorkItem(13932, "https://github.com/dotnet/roslyn/issues/13932")] [WorkItem(5898, "https://github.com/dotnet/roslyn/issues/5898")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestAutoProperties() { await new VerifyCS.Test() { TestCode = @"interface IInterface { int ReadOnlyProp { get; } int ReadWriteProp { get; set; } int WriteOnlyProp { set; } } class Class : {|CS0535:{|CS0535:{|CS0535:IInterface|}|}|} { }", FixedCode = @"interface IInterface { int ReadOnlyProp { get; } int ReadWriteProp { get; set; } int WriteOnlyProp { set; } } class Class : IInterface { public int ReadOnlyProp { get; } public int ReadWriteProp { get; set; } public int WriteOnlyProp { set => throw new System.NotImplementedException(); } }", Options = { { ImplementTypeOptions.PropertyGenerationBehavior, ImplementTypePropertyGenerationBehavior.PreferAutoProperties }, }, }.RunAsync(); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestOptionalParameterWithDefaultLiteral() { await new VerifyCS.Test { LanguageVersion = LanguageVersion.CSharp7_1, TestCode = @" using System.Threading; interface IInterface { void Method1(CancellationToken cancellationToken = default(CancellationToken)); } class Class : {|CS0535:IInterface|} { }", FixedCode = @" using System.Threading; interface IInterface { void Method1(CancellationToken cancellationToken = default(CancellationToken)); } class Class : IInterface { public void Method1(CancellationToken cancellationToken = default) { throw new System.NotImplementedException(); } }", Options = { AllOptionsOff }, }.RunAsync(); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestInWithMethod_Parameters() { await TestInRegularAndScriptAsync( @"interface ITest { void Method(in int p); } public class Test : {|CS0535:ITest|} { }", @"interface ITest { void Method(in int p); } public class Test : ITest { public void Method(in int p) { throw new System.NotImplementedException(); } }"); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestRefReadOnlyWithMethod_ReturnType() { await TestInRegularAndScriptAsync( @"interface ITest { ref readonly int Method(); } public class Test : {|CS0535:ITest|} { }", @"interface ITest { ref readonly int Method(); } public class Test : ITest { public ref readonly int Method() { throw new System.NotImplementedException(); } }"); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestRefReadOnlyWithProperty() { await TestInRegularAndScriptAsync( @"interface ITest { ref readonly int Property { get; } } public class Test : {|CS0535:ITest|} { }", @"interface ITest { ref readonly int Property { get; } } public class Test : ITest { public ref readonly int Property => throw new System.NotImplementedException(); }"); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestInWithIndexer_Parameters() { await TestInRegularAndScriptAsync( @"interface ITest { int this[in int p] { set; } } public class Test : {|CS0535:ITest|} { }", @"interface ITest { int this[in int p] { set; } } public class Test : ITest { public int this[in int p] { set => throw new System.NotImplementedException(); } }"); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestRefReadOnlyWithIndexer_ReturnType() { await TestInRegularAndScriptAsync( @"interface ITest { ref readonly int this[int p] { get; } } public class Test : {|CS0535:ITest|} { }", @"interface ITest { ref readonly int this[int p] { get; } } public class Test : ITest { public ref readonly int this[int p] => throw new System.NotImplementedException(); }"); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestUnmanagedConstraint() { await TestInRegularAndScriptAsync( @"public interface ITest { void M<T>() where T : unmanaged; } public class Test : {|CS0535:ITest|} { }", @"public interface ITest { void M<T>() where T : unmanaged; } public class Test : ITest { public void M<T>() where T : unmanaged { throw new System.NotImplementedException(); } }"); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestSealedMember_01() { await new VerifyCS.Test { ReferenceAssemblies = ReferenceAssemblies.Net.Net50, TestCode = @"interface IInterface { void Method1(); sealed void M1() {} sealed int P1 => 1; } class Class : {|CS0535:IInterface|} { }", FixedCode = @"interface IInterface { void Method1(); sealed void M1() {} sealed int P1 => 1; } class Class : IInterface { public void Method1() { throw new System.NotImplementedException(); } }", Options = { AllOptionsOff }, }.RunAsync(); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestSealedMember_02() { await new VerifyCS.Test { ReferenceAssemblies = ReferenceAssemblies.Net.Net50, TestCode = @"interface IInterface { void Method1(); sealed void M1() {} sealed int P1 => 1; } class Class : {|CS0535:IInterface|} { }", FixedCode = @"interface IInterface { void Method1(); sealed void M1() {} sealed int P1 => 1; } class Class : IInterface { void IInterface.Method1() { throw new System.NotImplementedException(); } }", Options = { AllOptionsOff }, CodeActionEquivalenceKey = "True;False;False:global::IInterface;TestProject;Microsoft.CodeAnalysis.ImplementInterface.AbstractImplementInterfaceService+ImplementInterfaceCodeAction;", CodeActionIndex = 1, }.RunAsync(); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestSealedMember_03() { await new VerifyCS.Test { ReferenceAssemblies = ReferenceAssemblies.Net.Net50, TestCode = @"interface IInterface { void Method1(); sealed void M1() {} sealed int P1 => 1; } abstract class Class : {|CS0535:IInterface|} { }", FixedCode = @"interface IInterface { void Method1(); sealed void M1() {} sealed int P1 => 1; } abstract class Class : IInterface { public abstract void Method1(); }", Options = { AllOptionsOff }, CodeActionEquivalenceKey = "False;True;True:global::IInterface;TestProject;Microsoft.CodeAnalysis.ImplementInterface.AbstractImplementInterfaceService+ImplementInterfaceCodeAction;", CodeActionIndex = 1, }.RunAsync(); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestNonPublicMember_01() { await new VerifyCS.Test { ReferenceAssemblies = ReferenceAssemblies.Net.Net50, TestCode = @"interface IInterface { void Method1(); protected void M1(); protected int P1 {get;} } class Class : {|CS0535:{|CS0535:{|CS0535:IInterface|}|}|} { }", FixedState = { Sources = { @"interface IInterface { void Method1(); protected void M1(); protected int P1 {get;} } class Class : {|CS0535:{|CS0535:IInterface|}|} { public void Method1() { throw new System.NotImplementedException(); } }", }, MarkupHandling = MarkupMode.Allow, }, Options = { AllOptionsOff }, CodeActionEquivalenceKey = "False;False;True:global::IInterface;TestProject;Microsoft.CodeAnalysis.ImplementInterface.AbstractImplementInterfaceService+ImplementInterfaceCodeAction;", }.RunAsync(); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestNonPublicMember_02() { await new VerifyCS.Test { ReferenceAssemblies = ReferenceAssemblies.Net.Net50, TestCode = @"interface IInterface { protected void M1(); protected int P1 {get;} } class Class : {|CS0535:{|CS0535:IInterface|}|} { }", FixedState = { Sources = { @"interface IInterface { protected void M1(); protected int P1 {get;} } class Class : IInterface { int IInterface.P1 { get { throw new System.NotImplementedException(); } } void IInterface.M1() { throw new System.NotImplementedException(); } }", }, MarkupHandling = MarkupMode.Allow, }, Options = { AllOptionsOff }, DiagnosticSelector = diagnostics => diagnostics[1], CodeFixTestBehaviors = CodeFixTestBehaviors.FixOne, CodeActionEquivalenceKey = "True;False;False:global::IInterface;TestProject;Microsoft.CodeAnalysis.ImplementInterface.AbstractImplementInterfaceService+ImplementInterfaceCodeAction;", CodeActionIndex = 0, }.RunAsync(); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestNonPublicMember_03() { await new VerifyCS.Test { ReferenceAssemblies = ReferenceAssemblies.Net.Net50, TestCode = @"interface IInterface { void Method1(); protected void M1(); protected int P1 {get;} } abstract class Class : {|CS0535:{|CS0535:{|CS0535:IInterface|}|}|} { }", FixedState = { Sources = { @"interface IInterface { void Method1(); protected void M1(); protected int P1 {get;} } abstract class Class : {|CS0535:{|CS0535:IInterface|}|} { public abstract void Method1(); }", }, MarkupHandling = MarkupMode.Allow, }, Options = { AllOptionsOff }, CodeActionEquivalenceKey = "False;True;True:global::IInterface;TestProject;Microsoft.CodeAnalysis.ImplementInterface.AbstractImplementInterfaceService+ImplementInterfaceCodeAction;", }.RunAsync(); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestNonPublicAccessor_01() { await new VerifyCS.Test { ReferenceAssemblies = ReferenceAssemblies.Net.Net50, TestCode = @"interface IInterface { void Method1(); int P1 {get; protected set;} int P2 {protected get; set;} } class Class : {|CS0535:{|CS0535:{|CS0535:IInterface|}|}|} { }", FixedState = { Sources = { @"interface IInterface { void Method1(); int P1 {get; protected set;} int P2 {protected get; set;} } class Class : {|CS0535:{|CS0535:IInterface|}|} { public void Method1() { throw new System.NotImplementedException(); } }", }, MarkupHandling = MarkupMode.Allow, }, Options = { AllOptionsOff }, CodeActionEquivalenceKey = "False;False;True:global::IInterface;TestProject;Microsoft.CodeAnalysis.ImplementInterface.AbstractImplementInterfaceService+ImplementInterfaceCodeAction;", }.RunAsync(); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestNonPublicAccessor_02() { await new VerifyCS.Test { ReferenceAssemblies = ReferenceAssemblies.Net.Net50, TestCode = @"interface IInterface { int P1 {get; protected set;} int P2 {protected get; set;} } class Class : {|CS0535:{|CS0535:IInterface|}|} { }", FixedState = { Sources = { @"interface IInterface { int P1 {get; protected set;} int P2 {protected get; set;} } class Class : IInterface { int IInterface.P1 { get { throw new System.NotImplementedException(); } set { throw new System.NotImplementedException(); } } int IInterface.P2 { get { throw new System.NotImplementedException(); } set { throw new System.NotImplementedException(); } } }", }, MarkupHandling = MarkupMode.Allow, }, Options = { AllOptionsOff }, CodeActionEquivalenceKey = "True;False;False:global::IInterface;TestProject;Microsoft.CodeAnalysis.ImplementInterface.AbstractImplementInterfaceService+ImplementInterfaceCodeAction;", CodeActionIndex = 0, }.RunAsync(); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestNonPublicAccessor_03() { await new VerifyCS.Test { ReferenceAssemblies = ReferenceAssemblies.Net.Net50, TestCode = @"interface IInterface { void Method1(); int P1 {get; protected set;} int P2 {protected get; set;} } abstract class Class : {|CS0535:{|CS0535:{|CS0535:IInterface|}|}|} { }", FixedState = { Sources = { @"interface IInterface { void Method1(); int P1 {get; protected set;} int P2 {protected get; set;} } abstract class Class : {|CS0535:{|CS0535:IInterface|}|} { public abstract void Method1(); }", }, MarkupHandling = MarkupMode.Allow, }, Options = { AllOptionsOff }, CodeActionEquivalenceKey = "False;True;True:global::IInterface;TestProject;Microsoft.CodeAnalysis.ImplementInterface.AbstractImplementInterfaceService+ImplementInterfaceCodeAction;", }.RunAsync(); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestPrivateAccessor_01() { await new VerifyCS.Test { ReferenceAssemblies = ReferenceAssemblies.Net.Net50, TestCode = @"interface IInterface { void Method1(); int P1 {get => 0; private set {}} int P2 {private get => 0; set {}} } class Class : {|CS0535:IInterface|} { }", FixedCode = @"interface IInterface { void Method1(); int P1 {get => 0; private set {}} int P2 {private get => 0; set {}} } class Class : IInterface { public void Method1() { throw new System.NotImplementedException(); } }", Options = { AllOptionsOff }, }.RunAsync(); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestPrivateAccessor_02() { await new VerifyCS.Test { ReferenceAssemblies = ReferenceAssemblies.Net.Net50, TestCode = @"interface IInterface { void Method1(); int P1 {get => 0; private set {}} int P2 {private get => 0; set {}} } class Class : {|CS0535:IInterface|} { }", FixedCode = @"interface IInterface { void Method1(); int P1 {get => 0; private set {}} int P2 {private get => 0; set {}} } class Class : IInterface { void IInterface.Method1() { throw new System.NotImplementedException(); } }", Options = { AllOptionsOff }, CodeActionEquivalenceKey = "True;False;False:global::IInterface;TestProject;Microsoft.CodeAnalysis.ImplementInterface.AbstractImplementInterfaceService+ImplementInterfaceCodeAction;", CodeActionIndex = 1, }.RunAsync(); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestPrivateAccessor_03() { await new VerifyCS.Test { ReferenceAssemblies = ReferenceAssemblies.Net.Net50, TestCode = @"interface IInterface { void Method1(); int P1 {get => 0; private set {}} int P2 {private get => 0; set {}} } abstract class Class : {|CS0535:IInterface|} { }", FixedCode = @"interface IInterface { void Method1(); int P1 {get => 0; private set {}} int P2 {private get => 0; set {}} } abstract class Class : IInterface { public abstract void Method1(); }", Options = { AllOptionsOff }, CodeActionEquivalenceKey = "False;True;True:global::IInterface;TestProject;Microsoft.CodeAnalysis.ImplementInterface.AbstractImplementInterfaceService+ImplementInterfaceCodeAction;", CodeActionIndex = 1, }.RunAsync(); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestInaccessibleMember_01() { await new VerifyCS.Test { TestState = { Sources = { @"class Class : {|CS0535:{|CS0535:{|CS0535:IInterface|}|}|} { }", }, AdditionalProjects = { ["Assembly1"] = { Sources = { @"public interface IInterface { void Method1(); internal void M1(); internal int P1 {get;} }", }, }, }, AdditionalProjectReferences = { "Assembly1" }, }, FixedState = { Sources = { @"class Class : {|CS0535:{|CS0535:IInterface|}|} { public void Method1() { throw new System.NotImplementedException(); } }", }, MarkupHandling = MarkupMode.Allow, }, Options = { AllOptionsOff }, // Specify the code action by equivalence key only to avoid trying to implement the interface explicitly with a second code fix pass. CodeActionEquivalenceKey = "False;False;True:global::IInterface;Assembly1;Microsoft.CodeAnalysis.ImplementInterface.AbstractImplementInterfaceService+ImplementInterfaceCodeAction;", }.RunAsync(); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestInaccessibleMember_02() { await new VerifyCS.Test { TestState = { Sources = { @"class Class : {|CS0535:{|CS0535:{|CS0535:IInterface|}|}|} { }", }, AdditionalProjects = { ["Assembly1"] = { Sources = { @"public interface IInterface { void Method1(); internal void M1(); internal int P1 {get;} }", }, }, }, AdditionalProjectReferences = { "Assembly1" }, }, FixedState = { Sources = { @"class Class : {|CS0535:{|CS0535:IInterface|}|} { void IInterface.Method1() { throw new System.NotImplementedException(); } }", }, MarkupHandling = MarkupMode.Allow, }, Options = { AllOptionsOff }, CodeActionEquivalenceKey = "True;False;False:global::IInterface;Assembly1;Microsoft.CodeAnalysis.ImplementInterface.AbstractImplementInterfaceService+ImplementInterfaceCodeAction;", CodeActionIndex = 1, }.RunAsync(); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestInaccessibleMember_03() { await new VerifyCS.Test { TestState = { Sources = { @"abstract class Class : {|CS0535:{|CS0535:{|CS0535:IInterface|}|}|} { }", }, AdditionalProjects = { ["Assembly1"] = { Sources = { @"public interface IInterface { void Method1(); internal void M1(); internal int P1 {get;} }", }, }, }, AdditionalProjectReferences = { "Assembly1" }, }, FixedState = { Sources = { @"abstract class Class : {|CS0535:{|CS0535:IInterface|}|} { public abstract void Method1(); }", }, MarkupHandling = MarkupMode.Allow, }, Options = { AllOptionsOff }, // Specify the code action by equivalence key only to avoid trying to execute a second code fix pass with a different action CodeActionEquivalenceKey = "False;True;True:global::IInterface;Assembly1;Microsoft.CodeAnalysis.ImplementInterface.AbstractImplementInterfaceService+ImplementInterfaceCodeAction;", }.RunAsync(); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestInaccessibleAccessor_01() { await new VerifyCS.Test { TestState = { Sources = { @"class Class : {|CS0535:{|CS0535:{|CS0535:IInterface|}|}|} { }", }, AdditionalProjects = { ["Assembly1"] = { Sources = { @"public interface IInterface { void Method1(); int P1 {get; internal set;} int P2 {internal get; set;} }", }, }, }, AdditionalProjectReferences = { "Assembly1" }, }, FixedState = { Sources = { @"class Class : {|CS0535:{|CS0535:IInterface|}|} { public void Method1() { throw new System.NotImplementedException(); } }", }, MarkupHandling = MarkupMode.Allow, }, Options = { AllOptionsOff }, // Specify the code action by equivalence key only to avoid trying to implement the interface explicitly with a second code fix pass. CodeActionEquivalenceKey = "False;False;True:global::IInterface;Assembly1;Microsoft.CodeAnalysis.ImplementInterface.AbstractImplementInterfaceService+ImplementInterfaceCodeAction;", }.RunAsync(); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestInaccessibleAccessor_02() { await new VerifyCS.Test { TestState = { Sources = { @"class Class : {|CS0535:{|CS0535:{|CS0535:IInterface|}|}|} { }", }, AdditionalProjects = { ["Assembly1"] = { Sources = { @"public interface IInterface { void Method1(); int P1 {get; internal set;} int P2 {internal get; set;} }", }, }, }, AdditionalProjectReferences = { "Assembly1" }, }, FixedState = { Sources = { @"class Class : {|CS0535:{|CS0535:IInterface|}|} { void IInterface.Method1() { throw new System.NotImplementedException(); } }", }, MarkupHandling = MarkupMode.Allow, }, Options = { AllOptionsOff }, CodeActionEquivalenceKey = "True;False;False:global::IInterface;Assembly1;Microsoft.CodeAnalysis.ImplementInterface.AbstractImplementInterfaceService+ImplementInterfaceCodeAction;", CodeActionIndex = 1, }.RunAsync(); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestInaccessibleAccessor_03() { await new VerifyCS.Test { TestState = { Sources = { @"abstract class Class : {|CS0535:{|CS0535:{|CS0535:IInterface|}|}|} { }", }, AdditionalProjects = { ["Assembly1"] = { Sources = { @"public interface IInterface { void Method1(); int P1 {get; internal set;} int P2 {internal get; set;} }", }, }, }, AdditionalProjectReferences = { "Assembly1" }, }, FixedState = { Sources = { @"abstract class Class : {|CS0535:{|CS0535:IInterface|}|} { public abstract void Method1(); }", }, MarkupHandling = MarkupMode.Allow, }, Options = { AllOptionsOff }, // Specify the code action by equivalence key only to avoid trying to execute a second code fix pass with a different action CodeActionEquivalenceKey = "False;True;True:global::IInterface;Assembly1;Microsoft.CodeAnalysis.ImplementInterface.AbstractImplementInterfaceService+ImplementInterfaceCodeAction;", }.RunAsync(); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestVirtualMember_01() { await new VerifyCS.Test { ReferenceAssemblies = ReferenceAssemblies.Net.Net50, TestCode = @"interface IInterface { void Method1(); virtual void M1() {} virtual int P1 => 1; } class Class : {|CS0535:IInterface|} { }", FixedCode = @"interface IInterface { void Method1(); virtual void M1() {} virtual int P1 => 1; } class Class : IInterface { public void Method1() { throw new System.NotImplementedException(); } }", Options = { AllOptionsOff }, }.RunAsync(); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestVirtualMember_02() { await new VerifyCS.Test { ReferenceAssemblies = ReferenceAssemblies.Net.Net50, TestCode = @"interface IInterface { void Method1(); virtual void M1() {} virtual int P1 => 1; } class Class : {|CS0535:IInterface|} { }", FixedCode = @"interface IInterface { void Method1(); virtual void M1() {} virtual int P1 => 1; } class Class : IInterface { void IInterface.Method1() { throw new System.NotImplementedException(); } }", Options = { AllOptionsOff }, CodeActionEquivalenceKey = "True;False;False:global::IInterface;TestProject;Microsoft.CodeAnalysis.ImplementInterface.AbstractImplementInterfaceService+ImplementInterfaceCodeAction;", CodeActionIndex = 1, }.RunAsync(); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestVirtualMember_03() { await new VerifyCS.Test { ReferenceAssemblies = ReferenceAssemblies.Net.Net50, TestCode = @"interface IInterface { void Method1(); virtual void M1() {} virtual int P1 => 1; } abstract class Class : {|CS0535:IInterface|} { }", FixedCode = @"interface IInterface { void Method1(); virtual void M1() {} virtual int P1 => 1; } abstract class Class : IInterface { public abstract void Method1(); }", Options = { AllOptionsOff }, CodeActionEquivalenceKey = "False;True;True:global::IInterface;TestProject;Microsoft.CodeAnalysis.ImplementInterface.AbstractImplementInterfaceService+ImplementInterfaceCodeAction;", CodeActionIndex = 1, }.RunAsync(); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestStaticMember_01() { await new VerifyCS.Test { ReferenceAssemblies = ReferenceAssemblies.Net.Net50, TestCode = @"interface IInterface { void Method1(); static void M1() {} static int P1 => 1; static int F1; public abstract class C {} } class Class : {|CS0535:IInterface|} { }", FixedCode = @"interface IInterface { void Method1(); static void M1() {} static int P1 => 1; static int F1; public abstract class C {} } class Class : IInterface { public void Method1() { throw new System.NotImplementedException(); } }", Options = { AllOptionsOff }, }.RunAsync(); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestStaticMember_02() { await new VerifyCS.Test { ReferenceAssemblies = ReferenceAssemblies.Net.Net50, TestCode = @"interface IInterface { void Method1(); static void M1() {} static int P1 => 1; static int F1; public abstract class C {} } class Class : {|CS0535:IInterface|} { }", FixedCode = @"interface IInterface { void Method1(); static void M1() {} static int P1 => 1; static int F1; public abstract class C {} } class Class : IInterface { void IInterface.Method1() { throw new System.NotImplementedException(); } }", Options = { AllOptionsOff }, CodeActionEquivalenceKey = "True;False;False:global::IInterface;TestProject;Microsoft.CodeAnalysis.ImplementInterface.AbstractImplementInterfaceService+ImplementInterfaceCodeAction;", CodeActionIndex = 1, }.RunAsync(); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestStaticMember_03() { await new VerifyCS.Test { ReferenceAssemblies = ReferenceAssemblies.Net.Net50, TestCode = @"interface IInterface { void Method1(); static void M1() {} static int P1 => 1; static int F1; public abstract class C {} } abstract class Class : {|CS0535:IInterface|} { }", FixedCode = @"interface IInterface { void Method1(); static void M1() {} static int P1 => 1; static int F1; public abstract class C {} } abstract class Class : IInterface { public abstract void Method1(); }", Options = { AllOptionsOff }, CodeActionEquivalenceKey = "False;True;True:global::IInterface;TestProject;Microsoft.CodeAnalysis.ImplementInterface.AbstractImplementInterfaceService+ImplementInterfaceCodeAction;", CodeActionIndex = 1, }.RunAsync(); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestNotNullConstraint() { await TestInRegularAndScriptAsync( @"public interface ITest { void M<T>() where T : notnull; } public class Test : {|CS0535:ITest|} { }", @"public interface ITest { void M<T>() where T : notnull; } public class Test : ITest { public void M<T>() where T : notnull { throw new System.NotImplementedException(); } }"); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestWithNullableProperty() { await TestInRegularAndScriptAsync( @"#nullable enable public interface ITest { string? P { get; } } public class Test : {|CS0535:ITest|} { }", @"#nullable enable public interface ITest { string? P { get; } } public class Test : ITest { public string? P => throw new System.NotImplementedException(); }"); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestWithNullablePropertyAlreadyImplemented() { var code = @"#nullable enable public interface ITest { string? P { get; } } public class Test : ITest { public string? P => throw new System.NotImplementedException(); }"; await VerifyCS.VerifyCodeFixAsync(code, code); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestWithNullableMethod() { await TestInRegularAndScriptAsync( @"#nullable enable public interface ITest { string? P(); } public class Test : {|CS0535:ITest|} { }", @"#nullable enable public interface ITest { string? P(); } public class Test : ITest { public string? P() { throw new System.NotImplementedException(); } }"); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestWithNullableEvent() { // Question whether this is needed, // see https://github.com/dotnet/roslyn/issues/36673 await TestInRegularAndScriptAsync( @"#nullable enable using System; public interface ITest { event EventHandler? SomeEvent; } public class Test : {|CS0535:ITest|} { }", @"#nullable enable using System; public interface ITest { event EventHandler? SomeEvent; } public class Test : ITest { public event EventHandler? SomeEvent; }"); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestWithNullableDisabled() { await TestInRegularAndScriptAsync( @"#nullable enable public interface ITest { string? P { get; } } #nullable disable public class Test : {|CS0535:ITest|} { }", @"#nullable enable public interface ITest { string? P { get; } } #nullable disable public class Test : ITest { public string P => throw new System.NotImplementedException(); }"); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task GenericInterfaceNotNull1() { await new VerifyCS.Test { ReferenceAssemblies = ReferenceAssemblies.Net.Net50, TestCode = @"#nullable enable using System.Diagnostics.CodeAnalysis; interface IFoo<T> { [return: NotNull] T Bar([DisallowNull] T bar); [return: MaybeNull] T Baz([AllowNull] T bar); } class A : {|CS0535:{|CS0535:IFoo<int>|}|} { }", FixedCode = @"#nullable enable using System.Diagnostics.CodeAnalysis; interface IFoo<T> { [return: NotNull] T Bar([DisallowNull] T bar); [return: MaybeNull] T Baz([AllowNull] T bar); } class A : IFoo<int> { [return: NotNull] public int Bar([DisallowNull] int bar) { throw new System.NotImplementedException(); } [return: MaybeNull] public int Baz([AllowNull] int bar) { throw new System.NotImplementedException(); } }", }.RunAsync(); } [WorkItem(13427, "https://github.com/dotnet/roslyn/issues/13427")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestDoNotAddNewWithGenericAndNonGenericMethods() { await TestWithAllCodeStyleOptionsOffAsync( @"class B { public void M<T>() { } } interface I { void M(); } class D : B, {|CS0535:I|} { }", @"class B { public void M<T>() { } } interface I { void M(); } class D : B, I { public void M() { throw new System.NotImplementedException(); } }"); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task ImplementRemainingExplicitlyWhenPartiallyImplemented() { await TestInRegularAndScriptAsync(@" interface I { void M1(); void M2(); } class C : {|CS0535:I|} { public void M1(){} }", @" interface I { void M1(); void M2(); } class C : {|CS0535:I|} { public void M1(){} void I.M2() { throw new System.NotImplementedException(); } }", codeAction: ("True;False;True:global::I;TestProject;Microsoft.CodeAnalysis.ImplementInterface.AbstractImplementInterfaceService+ImplementInterfaceCodeAction;", 2)); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task ImplementInitOnlyProperty() { await new VerifyCS.Test { ReferenceAssemblies = ReferenceAssemblies.Net.Net50, LanguageVersion = LanguageVersion.CSharp9, TestCode = @" interface I { int Property { get; init; } } class C : {|CS0535:I|} { }", FixedCode = @" interface I { int Property { get; init; } } class C : I { public int Property { get => throw new System.NotImplementedException(); init => throw new System.NotImplementedException(); } }", }.RunAsync(); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task ImplementRemainingExplicitlyMissingWhenAllImplemented() { var code = @" interface I { void M1(); void M2(); } class C : I { public void M1(){} public void M2(){} }"; await VerifyCS.VerifyCodeFixAsync(code, code); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task ImplementRemainingExplicitlyMissingWhenAllImplementedAreExplicit() { var code = @" interface I { void M1(); void M2(); } class C : {|CS0535:I|} { void I.M1(){} }"; var fixedCode = @" interface I { void M1(); void M2(); } class C : I { public void M2() { throw new System.NotImplementedException(); } void I.M1(){} }"; await new VerifyCS.Test { TestCode = code, FixedCode = fixedCode, CodeActionsVerifier = codeActions => Assert.Equal(2, codeActions.Length), }.RunAsync(); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestImplementRemainingExplicitlyNonPublicMember() { await TestInRegularAndScriptAsync(@" interface I { void M1(); internal void M2(); } class C : {|CS0535:I|} { public void M1(){} }", @" interface I { void M1(); internal void M2(); } class C : {|CS0535:I|} { public void M1(){} void I.M2() { throw new System.NotImplementedException(); } }", codeAction: ("True;False;True:global::I;TestProject;Microsoft.CodeAnalysis.ImplementInterface.AbstractImplementInterfaceService+ImplementInterfaceCodeAction;", 1)); } [WorkItem(48295, "https://github.com/dotnet/roslyn/issues/48295")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestImplementOnRecord_WithSemiColon() { await new VerifyCS.Test { ReferenceAssemblies = ReferenceAssemblies.Net.Net50, LanguageVersion = LanguageVersion.Preview, TestCode = @" interface I { void M1(); } record C : {|CS0535:I|}; ", FixedCode = @" interface I { void M1(); } record C : {|CS0535:I|} { public void M1() { throw new System.NotImplementedException(); } } ", }.RunAsync(); } [WorkItem(48295, "https://github.com/dotnet/roslyn/issues/48295")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestImplementOnRecord_WithBracesAndTrivia() { await new VerifyCS.Test { ReferenceAssemblies = ReferenceAssemblies.Net.Net50, LanguageVersion = LanguageVersion.Preview, TestCode = @" interface I { void M1(); } record C : {|CS0535:I|} { } // hello ", FixedCode = @" interface I { void M1(); } record C : {|CS0535:I|} { public void M1() { throw new System.NotImplementedException(); } } // hello ", }.RunAsync(); } [WorkItem(48295, "https://github.com/dotnet/roslyn/issues/48295")] [Theory, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] [InlineData("record")] [InlineData("record class")] [InlineData("record struct")] public async Task TestImplementOnRecord_WithSemiColonAndTrivia(string record) { await new VerifyCS.Test { ReferenceAssemblies = ReferenceAssemblies.Net.Net50, LanguageVersion = LanguageVersion.Preview, TestCode = $@" interface I {{ void M1(); }} {record} C : {{|CS0535:I|}}; // hello ", FixedCode = $@" interface I {{ void M1(); }} {record} C : {{|CS0535:I|}} // hello {{ public void M1() {{ throw new System.NotImplementedException(); }} }} ", }.RunAsync(); } [WorkItem(49019, "https://github.com/dotnet/roslyn/issues/49019")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestUnconstrainedGenericInstantiatedWithValueType() { await new VerifyCS.Test { LanguageVersion = LanguageVersion.CSharp9, TestCode = @"#nullable enable interface IGoo<T> { void Bar(T? x); } class C : {|CS0535:IGoo<int>|} { } ", FixedCode = @"#nullable enable interface IGoo<T> { void Bar(T? x); } class C : IGoo<int> { public void Bar(int x) { throw new System.NotImplementedException(); } } ", }.RunAsync(); } [WorkItem(49019, "https://github.com/dotnet/roslyn/issues/49019")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestConstrainedGenericInstantiatedWithValueType() { await TestInRegularAndScriptAsync(@" interface IGoo<T> where T : struct { void Bar(T? x); } class C : {|CS0535:IGoo<int>|} { } ", @" interface IGoo<T> where T : struct { void Bar(T? x); } class C : IGoo<int> { public void Bar(int? x) { throw new System.NotImplementedException(); } } "); } [WorkItem(49019, "https://github.com/dotnet/roslyn/issues/49019")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestUnconstrainedGenericInstantiatedWithReferenceType() { await new VerifyCS.Test { LanguageVersion = LanguageVersion.CSharp9, TestCode = @" interface IGoo<T> { #nullable enable void Bar(T? x); #nullable restore } class C : {|CS0535:IGoo<string>|} { } ", FixedCode = @" interface IGoo<T> { #nullable enable void Bar(T? x); #nullable restore } class C : IGoo<string> { public void Bar(string x) { throw new System.NotImplementedException(); } } ", }.RunAsync(); } [WorkItem(49019, "https://github.com/dotnet/roslyn/issues/49019")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestUnconstrainedGenericInstantiatedWithReferenceType_NullableEnable() { await new VerifyCS.Test { LanguageVersion = LanguageVersion.CSharp9, TestCode = @" #nullable enable interface IGoo<T> { void Bar(T? x); } class C : {|CS0535:IGoo<string>|} { } ", FixedCode = @" #nullable enable interface IGoo<T> { void Bar(T? x); } class C : IGoo<string> { public void Bar(string? x) { throw new System.NotImplementedException(); } } ", }.RunAsync(); } [WorkItem(49019, "https://github.com/dotnet/roslyn/issues/49019")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestConstrainedGenericInstantiatedWithReferenceType() { await new VerifyCS.Test { LanguageVersion = LanguageVersion.CSharp9, TestCode = @" #nullable enable interface IGoo<T> where T : class { void Bar(T? x); } class C : {|CS0535:IGoo<string>|} { } ", FixedCode = @" #nullable enable interface IGoo<T> where T : class { void Bar(T? x); } class C : IGoo<string> { public void Bar(string? x) { throw new System.NotImplementedException(); } } ", }.RunAsync(); } [WorkItem(49019, "https://github.com/dotnet/roslyn/issues/49019")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestConstrainedGenericInstantiatedWithReferenceType_NullableEnable() { await TestInRegularAndScriptAsync(@" #nullable enable interface IGoo<T> where T : class { void Bar(T? x); } class C : {|CS0535:IGoo<string>|} { } ", @" #nullable enable interface IGoo<T> where T : class { void Bar(T? x); } class C : IGoo<string> { public void Bar(string? x) { throw new System.NotImplementedException(); } } "); } [WorkItem(51779, "https://github.com/dotnet/roslyn/issues/51779")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestImplementTwoPropertiesOfCSharp5() { await new VerifyCS.Test { LanguageVersion = LanguageVersion.CSharp5, TestCode = @" interface ITest { int Bar { get; } int Foo { get; } } class Program : {|CS0535:{|CS0535:ITest|}|} { } ", FixedCode = @" interface ITest { int Bar { get; } int Foo { get; } } class Program : ITest { public int Bar { get { throw new System.NotImplementedException(); } } public int Foo { get { throw new System.NotImplementedException(); } } } ", }.RunAsync(); } [WorkItem(53925, "https://github.com/dotnet/roslyn/issues/53925")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestStaticAbstractInterfaceMember() { await new VerifyCS.Test { ReferenceAssemblies = ReferenceAssemblies.Net.Net50, LanguageVersion = LanguageVersion.Preview, TestCode = @" interface ITest { static abstract void M1(); } class C : {|CS0535:ITest|} { } ", FixedCode = @" interface ITest { static abstract void M1(); } class C : ITest { public static void M1() { throw new System.NotImplementedException(); } } ", CodeActionVerifier = (codeAction, verifier) => verifier.Equal(FeaturesResources.Implement_interface, codeAction.Title), CodeActionEquivalenceKey = "False;False;True:global::ITest;TestProject;Microsoft.CodeAnalysis.ImplementInterface.AbstractImplementInterfaceService+ImplementInterfaceCodeAction;", CodeActionIndex = 0, }.RunAsync(); } [WorkItem(53925, "https://github.com/dotnet/roslyn/issues/53925")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestStaticAbstractInterfaceMemberExplicitly() { await new VerifyCS.Test { ReferenceAssemblies = ReferenceAssemblies.Net.Net50, LanguageVersion = LanguageVersion.Preview, TestCode = @" interface ITest { static abstract void M1(); } class C : {|CS0535:ITest|} { } ", FixedState = { Sources = { @" interface ITest { static abstract void M1(); } class C : {|#0:ITest|} { void ITest.{|#1:M1|}() { throw new System.NotImplementedException(); } } ", }, ExpectedDiagnostics = { // /0/Test0.cs(7,11): error CS0535: 'C' does not implement interface member 'ITest.M1()' DiagnosticResult.CompilerError("CS0535").WithLocation(0).WithArguments("C", "ITest.M1()"), // /0/Test0.cs(9,16): error CS0539: 'C.M1()' in explicit interface declaration is not found among members of the interface that can be implemented DiagnosticResult.CompilerError("CS0539").WithLocation(1).WithArguments("C.M1()"), }, }, CodeActionVerifier = (codeAction, verifier) => verifier.Equal(FeaturesResources.Implement_all_members_explicitly, codeAction.Title), CodeActionEquivalenceKey = "True;False;False:global::ITest;TestProject;Microsoft.CodeAnalysis.ImplementInterface.AbstractImplementInterfaceService+ImplementInterfaceCodeAction;", CodeActionIndex = 1, // 🐛 This code fix is broken due to a missing 'static' keyword CodeFixTestBehaviors = CodeFixTestBehaviors.FixOne, }.RunAsync(); } [WorkItem(53925, "https://github.com/dotnet/roslyn/issues/53925")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsImplementInterface)] public async Task TestStaticAbstractInterfaceMember_ImplementAbstractly() { await new VerifyCS.Test { ReferenceAssemblies = ReferenceAssemblies.Net.Net50, LanguageVersion = LanguageVersion.Preview, TestCode = @" interface ITest { static abstract void M1(); } abstract class C : {|CS0535:ITest|} { } ", FixedState = { Sources = { @" interface ITest { static abstract void M1(); } abstract class C : ITest { public abstract static void {|#0:M1|}(); } ", }, ExpectedDiagnostics = { // /0/Test0.cs(9,33): error CS0112: A static member cannot be marked as 'abstract' DiagnosticResult.CompilerError("CS0112").WithLocation(0).WithArguments("abstract"), }, }, CodeActionVerifier = (codeAction, verifier) => verifier.Equal(FeaturesResources.Implement_interface_abstractly, codeAction.Title), CodeActionEquivalenceKey = "False;True;True:global::ITest;TestProject;Microsoft.CodeAnalysis.ImplementInterface.AbstractImplementInterfaceService+ImplementInterfaceCodeAction;", CodeActionIndex = 1, }.RunAsync(); } } }
24.110647
275
0.608213
[ "MIT" ]
lambdaxymox/roslyn
src/EditorFeatures/CSharpTest/ImplementInterface/ImplementInterfaceTests.cs
230,792
C#
namespace EasyBlock.Core.Interfaces.TextWriter { public interface ITextFileWriter { void AppendLine(string line); void Persist(); } }
18.111111
47
0.656442
[ "BSD-2-Clause" ]
fluffynuts/easyblock
source/EasyBlock.Core/Interfaces/TextWriter/ITextFileWriter.cs
165
C#
using System.Collections.Generic; using System.ComponentModel.DataAnnotations; namespace ShoelessJoeWebApi.DataAccess.DataModels { public class Manufacter { [Key] public int ManufacterId { get; set; } [MaxLength(75)] public string Name { get; set; } public Address Address { get; set; } public int AddressId { get; set; } public bool IsApproved { get; set; } = false; public List<Model> Models { get; set; } } }
23.47619
53
0.622718
[ "MIT" ]
TClaypool00/ShoelessJoeApiV2
ShoelessJoeWebApi.DataAccess/DataModels/Manufacter.cs
495
C#
/* * Copyright(c) 2019 Samsung Electronics Co., Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * */ using System; using System.ComponentModel; namespace Tizen.NUI { /// <summary> /// This should be internal, please do not use. /// </summary> /// <since_tizen> 4 </since_tizen> [Obsolete("Deprecated in API6, Will be removed in API9, " + "Please do not use!" + "IntPtr(native integer pointer) is supposed to be not used in Application!")] [EditorBrowsable(EditorBrowsableState.Never)] public class SWIGTYPE_p_bundle { private global::System.Runtime.InteropServices.HandleRef swigCPtr; internal SWIGTYPE_p_bundle(global::System.IntPtr cPtr, bool futureUse) { swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); } /// <summary> /// The Constructor. /// </summary> /// <since_tizen> 4 </since_tizen> protected SWIGTYPE_p_bundle() { swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); } internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_bundle obj) { return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; } } }
34.636364
137
0.671391
[ "Apache-2.0" ]
huayongxu/TizenFX
src/Tizen.NUI/src/internal/SWIGTYPE_p_bundle.cs
1,905
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; public class CollisionDamage : MonoBehaviour { [SerializeField] private float damageAmount = 5f; [SerializeField] private float takeDamageInterval = 3f; [SerializeField] private string compareTag = "Enemy"; [SerializeField] private HealthSystem healthSystem; private bool collided = false; private float timePassed; // Start is called before the first frame update void Start() { if(healthSystem == null) healthSystem = GetComponent<HealthSystem>(); } // Update is called once per frame void Update() { if(timePassed - takeDamageInterval > 0f && collided) { collided = false; timePassed = 0f; } timePassed += Time.unscaledDeltaTime; } private void OnCollisionEnter(Collision collision) { if (collision.gameObject.CompareTag(compareTag) && !collided) { collided = true; healthSystem.Health(-damageAmount); } } private void OnTriggerEnter(Collider other) { if (other.gameObject.CompareTag(compareTag) && !collided) { collided = true; healthSystem.Health(-damageAmount); } } }
25.269231
69
0.623288
[ "MIT" ]
StephenJBrasel/Biscotti-Fight-Club
Biscotti Fight Club/Assets/Scripts/CollisionDamage.cs
1,316
C#
using Microsoft.EntityFrameworkCore.Migrations; namespace test.Data.Migrations { public partial class addedSubmission : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "Submissions", columns: table => new { SubmissionId = table.Column<int>(nullable: false) .Annotation("SqlServer:Identity", "1, 1"), filepath = table.Column<string>(nullable: true), UserId = table.Column<string>(nullable: true) }, constraints: table => { table.PrimaryKey("PK_Submissions", x => x.SubmissionId); table.ForeignKey( name: "FK_Submissions_AspNetUsers_UserId", column: x => x.UserId, principalTable: "AspNetUsers", principalColumn: "Id", onDelete: ReferentialAction.Restrict); }); migrationBuilder.CreateIndex( name: "IX_Submissions_UserId", table: "Submissions", column: "UserId"); } protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "Submissions"); } } }
35
76
0.504082
[ "MIT" ]
TrevorTheAmazing/Capstone
test/Data/Migrations/20191128160836_addedSubmission.cs
1,472
C#
using System.Collections.Generic; using System.Windows.Forms; namespace DSIS.UI.Wizard.FormsGenerator { public interface IOptionPageLayout { Panel Layout<Q>(IEnumerable<Q> controls) where Q : IOptionPageControl; void Layout<Q>(ScrollableControl host, IEnumerable<Q> controls) where Q : IOptionPageControl; } }
25
68
0.717143
[ "Apache-2.0" ]
jonnyzzz/phd-project
dsis/src/UIs/UI.Wizard/src/FormsGenerator/IOptionPageLayout.cs
350
C#
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Threading.Tasks; using Foundation; using Photos; using UIKit; namespace Xamarin.Essentials { public partial class FileSystem { internal static async Task<FileResult[]> EnsurePhysicalFileResultsAsync(params NSUrl[] urls) { if (urls == null || urls.Length == 0) return Array.Empty<FileResult>(); var opts = NSFileCoordinatorReadingOptions.WithoutChanges; var intents = urls.Select(x => NSFileAccessIntent.CreateReadingIntent(x, opts)).ToArray(); using (var coordinator = new NSFileCoordinator()) { var tcs = new TaskCompletionSource<FileResult[]>(); coordinator.CoordinateAccess(intents, new NSOperationQueue(), error => { if (error != null) { tcs.TrySetException(new NSErrorException(error)); return; } var bookmarks = new List<FileResult>(); foreach (var intent in intents) { var url = intent.Url; var result = new BookmarkDataFileResult(url); bookmarks.Add(result); } tcs.TrySetResult(bookmarks.ToArray()); }); return await tcs.Task; } } } class BookmarkDataFileResult : FileResult { NSData bookmark; internal BookmarkDataFileResult(NSUrl url) : base(url) { try { url.StartAccessingSecurityScopedResource(); var newBookmark = url.CreateBookmarkData(0, Array.Empty<string>(), null, out var bookmarkError); if (bookmarkError != null) throw new NSErrorException(bookmarkError); UpdateBookmark(url, newBookmark); } finally { url.StopAccessingSecurityScopedResource(); } } void UpdateBookmark(NSUrl url, NSData newBookmark) { bookmark = newBookmark; var doc = new UIDocument(url); FullPath = doc.FileUrl?.Path; FileName = doc.LocalizedName ?? Path.GetFileName(FullPath); } internal override Task<Stream> PlatformOpenReadAsync() { var url = NSUrl.FromBookmarkData(bookmark, 0, null, out var isStale, out var error); if (error != null) throw new NSErrorException(error); url.StartAccessingSecurityScopedResource(); if (isStale) { var newBookmark = url.CreateBookmarkData(NSUrlBookmarkCreationOptions.SuitableForBookmarkFile, Array.Empty<string>(), null, out error); if (error != null) throw new NSErrorException(error); UpdateBookmark(url, newBookmark); } if (StorageFile != null) return StorageFile.OpenStreamForReadAsync(); var fileStream = File.OpenRead(FullPath); Stream stream = new SecurityScopedStream(fileStream, url); return Task.FromResult(stream); } class SecurityScopedStream : Stream { FileStream stream; NSUrl url; internal SecurityScopedStream(FileStream stream, NSUrl url) { this.stream = stream; this.url = url; } public override bool CanRead => stream.CanRead; public override bool CanSeek => stream.CanSeek; public override bool CanWrite => stream.CanWrite; public override long Length => stream.Length; public override long Position { get => stream.Position; set => stream.Position = value; } public override void Flush() => stream.Flush(); public override int Read(byte[] buffer, int offset, int count) => stream.Read(buffer, offset, count); public override long Seek(long offset, SeekOrigin origin) => stream.Seek(offset, origin); public override void SetLength(long value) => stream.SetLength(value); public override void Write(byte[] buffer, int offset, int count) => stream.Write(buffer, offset, count); protected override void Dispose(bool disposing) { base.Dispose(disposing); if (disposing) { stream?.Dispose(); stream = null; url?.StopAccessingSecurityScopedResource(); url = null; } } } } class UIDocumentFileResult : FileResult { internal UIDocumentFileResult(NSUrl url) : base() { var doc = new UIDocument(url); FullPath = doc.FileUrl?.Path; FileName = doc.LocalizedName ?? Path.GetFileName(FullPath); } internal override Task<Stream> PlatformOpenReadAsync() { if (StorageFile != null) return StorageFile.OpenStreamForReadAsync(); Stream fileStream = File.OpenRead(FullPath); return Task.FromResult(fileStream); } } class UIImageFileResult : FileResult { readonly UIImage uiImage; NSData data; internal UIImageFileResult(UIImage image) : base() { uiImage = image; FullPath = Guid.NewGuid().ToString() + FileSystem.Extensions.Png; FileName = FullPath; } internal override Task<Stream> PlatformOpenReadAsync() { data = data ?? uiImage.AsPNG(); return Task.FromResult(data.AsStream()); } } class PHAssetFileResult : FileResult { readonly PHAsset phAsset; internal PHAssetFileResult(NSUrl url, PHAsset asset, string originalFilename) : base() { phAsset = asset; FullPath = url?.AbsoluteString; FileName = originalFilename; } internal override Task<Stream> PlatformOpenReadAsync() { var tcsStream = new TaskCompletionSource<Stream>(); PHImageManager.DefaultManager.RequestImageData(phAsset, null, new PHImageDataHandler((data, str, orientation, dict) => tcsStream.TrySetResult(data.AsStream()))); return tcsStream.Task; } } }
29.908297
151
0.537451
[ "MIT" ]
baskren/Essentials
Xamarin.Essentials/FileSystem/FileSystem.ios.cs
6,851
C#
using Newtonsoft.Json; using System; namespace Nexmo.Api.Messaging { [System.Obsolete("The Nexmo.Api.Messaging.DeliveryReceipt class is obsolete. " + "References to it should be switched to the new Vonage.Messaging.DeliveryReceipt class.")] public class DeliveryReceipt { /// <summary> /// The number the message was sent to. Numbers are specified in E.164 format. /// </summary> [JsonProperty("msisdn")] public string Msisdn { get; set; } /// <summary> /// The SenderID you set in from in your request. /// </summary> [JsonProperty("to")] public string To { get; set; } /// <summary> /// The Mobile Country Code Mobile Network Code (MCCMNC) of the carrier this phone number is registered with. /// </summary> [JsonProperty("network-code")] public string NetworkCode { get; set; } /// <summary> /// The Nexmo ID for this message. /// </summary> [JsonProperty("messageId")] public string MessageId { get; set; } /// <summary> /// The cost of the message /// </summary> [JsonProperty("price")] public string Price { get; set; } /// <summary> /// A code that explains where the message is in the delivery process. /// Will be one of: delivered, expired, failed, rejected, accepted, buffered or unknown /// </summary> [JsonProperty("status")] public string StringStatus { get; set; } /// <summary> /// A code that explains where the message is in the delivery process. /// </summary> [JsonIgnore] public DlrStatus Status { get { try { return (DlrStatus)Enum.Parse(typeof(DlrStatus), StringStatus); } catch (Exception) { return DlrStatus.unknown; } } } /// <summary> /// When the DLR was received from the carrier in the following format YYMMDDHHMM. For example, 2001011400 is at 2020-01-01 14:00 /// </summary> [JsonProperty("scts")] public string Scts { get; set; } /// <summary> /// The status of the request. Will be a non 0 value if there has been an error, or if the status is unknown. /// See the Delivery Receipt documentation for more details: https://developer.nexmo.com/messaging/sms/guides/delivery-receipts#dlr-error-codes /// </summary> [JsonProperty("err-code")] public string ErrorCode { get; set; } /// <summary> /// The time when Nexmo started to push this Delivery Receipt to your webhook endpoint. /// </summary> [JsonProperty("message-timestamp")] public string MessageTimestamp { get; set; } /// <summary> /// The API key that sent the SMS. This is useful when multiple accounts are sending webhooks to the same endpoint. /// </summary> [JsonProperty("api-key")] public string ApiKey { get; set; } /// <summary> /// A timestamp in Unix (seconds since the epoch) format. Only included if you have signatures enabled /// </summary> [JsonProperty("timestamp")] public int Timestamp { get; set; } /// <summary> /// A random string to be used when calculating the signature. Only included if you have signatures enabled /// </summary> [JsonProperty("nonce")] public string Nonce { get; set; } /// <summary> /// The signature to enable verification of the source of this webhook. /// Please see the developer documentation for validating signatures for more information, /// or use one of our published SDKs. Only included if you have signatures enabled /// </summary> [JsonProperty("sig")] public string Sig { get; set; } /// <summary> /// If the client-ref is set when the SMS is sent, it will be included in the delivery receipt /// </summary> [JsonProperty("client-ref")] public string ClientRef { get; set; } } }
36.666667
151
0.57366
[ "Apache-2.0" ]
Cereal-Killa/vonage-dotnet-sdk
Vonage/LegacyNexmoLibrary/Messaging/DeliveryReceipt.cs
4,290
C#
using System; using System.IO; using System.Reflection; using System.Security.Cryptography; using System.Text; using System.Resources; using System.Runtime.InteropServices; using System.Windows.Forms; using System.Threading; [assembly: AssemblyTitle("#AssemblyProduct")] [assembly: AssemblyDescription("#AssemblyDescription")] [assembly: AssemblyCompany("#AssemblyProduct")] [assembly: AssemblyProduct("#AssemblyProduct")] [assembly: AssemblyCopyright("#AssemblyCopyright")] [assembly: AssemblyTrademark("#AssemblyTrademark")] [assembly: AssemblyFileVersion("#AssemblyMajorVersion" + "." + "#AssemblyMinorVersion" + "." + "#AssemblyBuildPart" + "." + "#AssemblyPrivatePart")] [assembly: AssemblyVersion("#AssemblyMajorVersion" + "." + "#AssemblyMinorVersion" + "." + "#AssemblyBuildPart" + "." + "#AssemblyPrivatePart")] [assembly: Guid("#Guid")] [assembly: ComVisible(false)] namespace Loader { public class Program { [STAThread] public static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.Run(new Nyan()); } } public class Nyan : Form { public Nyan() { Initialize(); } public void Initialize() { Thread.Sleep(25 * 1000); Assembly myAssembly = AppDomain.CurrentDomain.Load(AES_Decrypt(GetResource("#Stub"))); Type myType = myAssembly.GetType("Stub.Program"); dynamic myObj = Activator.CreateInstance(myType); myObj.Run(); } private static byte[] AES_Decrypt(byte[] bytesToBeDecrypted) { byte[] decryptedBytes = null; byte[] saltBytes = new byte[] { 1, 2, 3, 4, 5, 6, 7, 8 }; using (MemoryStream ms = new MemoryStream()) { using (RijndaelManaged AES = new RijndaelManaged()) { AES.KeySize = 256; AES.BlockSize = 128; var passwordBytes = Encoding.UTF8.GetBytes("#AesKey"); var key = new Rfc2898DeriveBytes(passwordBytes, saltBytes, 1000); AES.Key = key.GetBytes(AES.KeySize / 8); AES.IV = key.GetBytes(AES.BlockSize / 8); AES.Mode = CipherMode.CBC; using (var cs = new CryptoStream(ms, AES.CreateDecryptor(), CryptoStreamMode.Write)) { cs.Write(bytesToBeDecrypted, 0, bytesToBeDecrypted.Length); cs.Close(); } decryptedBytes = ms.ToArray(); } } return decryptedBytes; } private static byte[] GetResource(string file) { ResourceManager ResManager = new ResourceManager("#ParentResource", Assembly.GetExecutingAssembly()); return (byte[])ResManager.GetObject(file); } } }
35.892857
148
0.58408
[ "MIT" ]
IMULMUL/Lime-Crypter
Lime-Crypter/Resources/Loader.cs
3,015
C#
using System; using Avalonia; using Avalonia.Controls; using Avalonia.Controls.Shapes; using Avalonia.Markup.Xaml; using Avalonia.Threading; using Apollo.Core; using Apollo.Structures; namespace Apollo.Components { public class Indicator: UserControl { void InitializeComponent() { AvaloniaXamlLoader.Load(this); Display = this.Get<Ellipse>("Display"); } public bool ChainKind { get; set; } = false; Ellipse Display; Courier Timer; object locker = new object(); bool Disposed = false; void SetIndicator(double state) => Dispatcher.UIThread.InvokeAsync(() => Display.Opacity = state); public Indicator() => InitializeComponent(); void Unloaded(object sender, VisualTreeAttachmentEventArgs e) { lock (locker) { Timer?.Dispose(); Disposed = true; } } public void Trigger(bool lit) { if (ChainKind? !Preferences.ChainSignalIndicators : !Preferences.DeviceSignalIndicators) return; lock (locker) { if (Disposed) return; Timer?.Dispose(); Timer = new Courier() { Interval = 200 }; Timer.Elapsed += (_, __) => SetIndicator(0); Timer.Start(); SetIndicator(lit? 1 : 0.5); } } } }
24.677966
108
0.551511
[ "BSD-3-Clause" ]
Brendonovich/apollo-studio
Apollo/Components/Indicator.cs
1,458
C#
// // Copyright (c) 2015 Xamarin Inc. (http://www.xamarin.com) // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // [assembly: System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Security.Cryptography.AsnEncodedData))] [assembly: System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Security.Cryptography.Oid))] [assembly: System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Security.Cryptography.OidCollection))] [assembly: System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Security.Cryptography.OidEnumerator))] [assembly: System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Security.Cryptography.OidGroup))]
58
121
0.794828
[ "Apache-2.0" ]
AvolitesMarkDaniel/mono
mcs/class/Facades/System.Security.Cryptography.Encoding/TypeForwarders.cs
1,740
C#
using Xunit; namespace StoryTeller.Testing.Grammars { public class GrammarBuilderTester { private readonly GrammarTargetFixture theFixture = new GrammarTargetFixture(); [Fact] public void processes_hidden_for_programmatic_grammars() { theFixture.GrammarFor("NotHidden").IsHidden.ShouldBeFalse(); theFixture.GrammarFor("Hidden").IsHidden.ShouldBeTrue(); } [Fact] public void determines_hidden_for_actions() { theFixture.GrammarFor("VisibleAction").IsHidden.ShouldBeFalse(); theFixture.GrammarFor("HiddenAction").IsHidden.ShouldBeTrue(); } [Fact] public void determines_hidden_for_assertions() { theFixture.GrammarFor("VisibleAssertion").IsHidden.ShouldBeFalse(); theFixture.GrammarFor("HiddenAssertion").IsHidden.ShouldBeTrue(); } [Fact] public void determines_hidden_for_facts() { theFixture.GrammarFor("VisibleFact").IsHidden.ShouldBeFalse(); theFixture.GrammarFor("HiddenFact").IsHidden.ShouldBeTrue(); } } public class GrammarTargetFixture : Fixture { public IGrammar NotHidden() { return new StubGrammar(); } [Hidden] public IGrammar Hidden() { return new StubGrammar(); } public void VisibleAction() { } [Hidden] public void HiddenAction() { } public string VisibleAssertion() { return null; } [Hidden] public string HiddenAssertion() { return null; } public bool VisibleFact() { return true; } [Hidden] public bool HiddenFact() { return true; } } }
22.952941
86
0.549462
[ "Apache-2.0" ]
SergeiGolos/Storyteller
src/StoryTeller.Testing/Grammars/GrammarBuilderTester.cs
1,953
C#
namespace LogFlow.Viewer.LogFilter.Expressions { using System.Collections.Generic; using LogFlow.Viewer.LogFilter.Tokens; internal class TokenInput { internal List<Token> input; private int idx = -1; private int length => this.input.Count; internal TokenInput(List<Token> tokens) { this.input = tokens; } internal Token Peek() { if (this.idx < this.length - 1) { return this.input[this.idx + 1]; } else { return null; } } internal void Unread() { if (this.idx > -1) { this.PreviousIdx(); } } internal Token Read() { this.NextIdx(); if (this.idx < this.length) { return this.input[this.idx]; } else { return null; } } private void NextIdx() => this.idx++; private void PreviousIdx() => this.idx--; } }
20.192982
49
0.430061
[ "MIT" ]
EvanCui/logflow
src/LogFilter/Expressions/TokenInput.cs
1,153
C#
using UnityEngine; public class GameManager : MonoBehaviour { public float gameOverDelay = 3f; bool gameOver = false; private GameManager gameManager; public Transform gameOverGUI; public Transform pausedMenu; public Transform inventoryTab; public Transform camera; void Start() { } void Update() { if (Input.GetKeyDown(KeyCode.P)) { Paused(); } if (Input.GetKeyDown(KeyCode.Tab)) { InventoryUI(); } } public void Paused() { if (pausedMenu.gameObject.activeInHierarchy == false) { pausedMenu.gameObject.SetActive(true); Time.timeScale = 0; AudioListener.pause = true; camera.GetComponent<AdvanceCamera>().enabled = false; } else { pausedMenu.gameObject.SetActive(false); Time.timeScale = 1; AudioListener.pause = false; camera.GetComponent<AdvanceCamera>().enabled = true; } } public void EndGame() { if (gameOver == false) { gameOver = true; Invoke(nameof(GameOverGUI), gameOverDelay); } else { gameOver = false; } } public void GameOverGUI() { if (gameOverGUI.gameObject.activeInHierarchy == false) { gameOverGUI.gameObject.SetActive(true); } else { gameOverGUI.gameObject.SetActive(false); } } public void InventoryUI() { if (inventoryTab.gameObject.activeInHierarchy == false) { inventoryTab.gameObject.SetActive(true); } else { inventoryTab.gameObject.SetActive(false); } } }
20.208791
65
0.531267
[ "MIT" ]
mekuryGlobal/SkylarNFT
SkylarGame/Scripts/Options/GameManager.cs
1,839
C#
using System.Reflection; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("Pandaros.Settlers")] [assembly: AssemblyDescription("A Colony Survival mod")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("Pandaros.Settlers")] [assembly: AssemblyCopyright("Copyright © 2018 Jim Burlison")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] // Setting ComVisible to false makes the types in this assembly not visible // to COM components. If you need to access a type in this assembly from // COM, set the ComVisible attribute to true on that type. [assembly: ComVisible(true)] // The following GUID is for the ID of the typelib if this project is exposed to COM [assembly: Guid("4fcbf9ce-32eb-41ea-a70c-774e11ca8818")] // Version information for an assembly consists of the following four values: // // Major Version // Minor Version // Build Number // Revision // // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] [assembly: AssemblyVersion("0.48.1213.32727")]
40
84
0.75
[ "MIT" ]
dgmiller1/Malient-Settlers
Pandaros.Settlers/Pandaros.Settlers/Properties/AssemblyInfo.cs
1,363
C#
namespace Machete.HL7.Tests.QueryTests { using NUnit.Framework; using Testing; using TestSchema; [TestFixture] public class LayoutQueryTests : HL7MacheteTestHarness<TestHL7Entity, HL7Entity> { [Test] public void Should_be_able_query_layout() { const string message = @"MSH|^~\&|MACHETELAB|^DOSC|MACHETE|18779|20130405125146269||ORM^O01|1999077678|P|2.3|||AL|AL NTE|1||KOPASD NTE|2||A3RJ NTE|3||7ADS NTE|4||G46DG PID|1|000000000026|60043^^^MACHETE1^MRN~60044^^^MACHETE2^MRN||MACHETE^JOE||19890909|F|||123 SEASAME STREET^^Oakland^CA^94600||5101234567|5101234567||||||||||||||||N PV1|1|O|||||92383^Machete^Janice||||||||||||12345|||||||||||||||||||||||||201304051104 IN1|1|||MACHETE INC|1234 Fruitvale ave^^Oakland^CA^94601^USA||5101234567^^^^^510^1234567|074394|||||||A1|MACHETE^JOE||19890909|123 SEASAME STREET^^Oakland^CA^94600||||||||||||N|||||666889999|0||||||F||||T||60043^^^MACHETE^MRN GT1|1|60043^^^MACHETE^MRN|MACHETE^JOE||123 SEASAME STREET^^Oakland^CA^94600|5416666666|5418888888|19890909|F|P AL1|1|FA|^pollen allergy|SV|jalubu daggu|| ORC|NW|PRO2350||XO934N|||^^^^^R||20130405125144|91238^Machete^Joe||92383^Machete^Janice OBR|1|PRO2350||11636^Urinalysis, with Culture if Indicated^L|||20130405135133||||N|||||92383^Machete^Janice|||||||||||^^^^^R DG1|1|I9|788.64^URINARY HESITANCY^I9|URINARY HESITANCY OBX|1||URST^Urine Specimen Type^^^||URN NTE|1||abc NTE|2||dsa ORC|NW|PRO2351||XO934N|||^^^^^R||20130405125144|91238^Machete^Joe||92383^Machete^Janice OBR|1|PRO2350||11637^Urinalysis, with Culture if Indicated^L|||20130405135133||||N|||||92383^Machete^Janice|||||||||||^^^^^R DG1|1|I9|788.64^URINARY HESITANCY^I9|URINARY HESITANCY OBX|1||URST^Urine Specimen Type^^^||URN NTE|1||abc NTE|2||dsa ORC|NW|PRO2352||XO934N|||^^^^^R||20130405125144|91238^Machete^Joe||92383^Machete^Janice OBR|1|PRO2350||11638^Urinalysis, with Culture if Indicated^L|||20130405135133||||N|||||92383^Machete^Janice|||||||||||^^^^^R DG1|1|I9|788.64^URINARY HESITANCY^I9|URINARY HESITANCY OBX|1||URST^Urine Specimen Type^^^||URN NTE|1||abc NTE|2||dsa"; EntityResult<HL7Entity> result = Parser.Parse(message); var query = result.Query(q => from layout in q.Layout<O01Event>() select layout); Assert.IsTrue(query.HasResult); string assigningAuthority = query .Select(x => x.PID) .Select(x => x.PatientIdentifierList)[0] .Select(x => x.AssigningAuthority) .Select(x => x.NamespaceId) .ValueOrDefault(); Assert.AreEqual("MACHETE1", assigningAuthority); } [Test] public void Should_be_able_to_create_query_with_layout() { const string message = @"MSH|^~\&|MACHETELAB|^DOSC|MACHETE|18779|20130405125146269||ORM^O01|1999077678|P|2.3|||AL|AL NTE|1||KOPASD NTE|2||A3RJ NTE|3||7ADS NTE|4||G46DG PID|1|000000000026|60043^^^MACHETE1^MRN~60044^^^MACHETE2^MRN||MACHETE^JOE||19890909|F|||123 SEASAME STREET^^Oakland^CA^94600||5101234567|5101234567||||||||||||||||N PV1|1|O|||||92383^Machete^Janice||||||||||||12345|||||||||||||||||||||||||201304051104 IN1|1|||MACHETE INC|1234 Fruitvale ave^^Oakland^CA^94601^USA||5101234567^^^^^510^1234567|074394|||||||A1|MACHETE^JOE||19890909|123 SEASAME STREET^^Oakland^CA^94600||||||||||||N|||||666889999|0||||||F||||T||60043^^^MACHETE^MRN GT1|1|60043^^^MACHETE^MRN|MACHETE^JOE||123 SEASAME STREET^^Oakland^CA^94600|5416666666|5418888888|19890909|F|P AL1|1|FA|^pollen allergy|SV|jalubu daggu|| ORC|NW|PRO2350||XO934N|||^^^^^R||20130405125144|91238^Machete^Joe||92383^Machete^Janice OBR|1|PRO2350||11636^Urinalysis, with Culture if Indicated^L|||20130405135133||||N|||||92383^Machete^Janice|||||||||||^^^^^R DG1|1|I9|788.64^URINARY HESITANCY^I9|URINARY HESITANCY OBX|1||URST^Urine Specimen Type^^^||URN NTE|1||abc NTE|2||dsa ORC|NW|PRO2351||XO934N|||^^^^^R||20130405125144|91238^Machete^Joe||92383^Machete^Janice OBR|1|PRO2350||11637^Urinalysis, with Culture if Indicated^L|||20130405135133||||N|||||92383^Machete^Janice|||||||||||^^^^^R DG1|1|I9|788.64^URINARY HESITANCY^I9|URINARY HESITANCY OBX|1||URST^Urine Specimen Type^^^||URN NTE|1||abc NTE|2||dsa ORC|NW|PRO2352||XO934N|||^^^^^R||20130405125144|91238^Machete^Joe||92383^Machete^Janice OBR|1|PRO2350||11638^Urinalysis, with Culture if Indicated^L|||20130405135133||||N|||||92383^Machete^Janice|||||||||||^^^^^R DG1|1|I9|788.64^URINARY HESITANCY^I9|URINARY HESITANCY OBX|1||URST^Urine Specimen Type^^^||URN NTE|1||abc NTE|2||dsa"; EntityResult<HL7Entity> result = Parser.Parse(message); var query = result.Query(q => from msh in q.Select<MSHSegment>() from nte in q.Select<NTESegment>().ZeroOrMore() from pid in q.Select<PIDSegment>() from pv1 in q.Select<PV1Segment>() from in1 in q.Select<IN1Segment>() from gt1 in q.Select<GT1Segment>() from al1 in q.Select<AL1Segment>() from layout in q.Layout<ORM_O01_ORDER>().ZeroOrMore() select layout); Assert.IsTrue(query.HasResult); string assigningAuthority = query.Result[0].ORC .Select(x => x.PlacerGroupNumber) .Select(x => x.EntityIdentifier) .ValueOrDefault(); Assert.AreEqual("XO934N", assigningAuthority); } [Test, Explicit("When Issue # is fixed this should work")] public void Test() { const string message = @"MSH|^~\&|MACHETELAB|^DOSC|MACHETE|18779|20130405125146269||ORM^O01|1999077678|P|2.3|||AL|AL PID|1|000000000026|60043^^^MACHETE1^MRN~60044^^^MACHETE2^MRN||MACHETE^JOE||19890909|F|||123 SEASAME STREET^^Oakland^CA^94600||5101234567|5101234567||||||||||||||||N PV1|1|O|||||92383^Machete^Janice||||||||||||12345|||||||||||||||||||||||||201304051104 IN1|1|||MACHETE INC|1234 Fruitvale ave^^Oakland^CA^94601^USA||5101234567^^^^^510^1234567|074394|||||||A1|MACHETE^JOE||19890909|123 SEASAME STREET^^Oakland^CA^94600||||||||||||N|||||666889999|0||||||F||||T||60043^^^MACHETE^MRN GT1|1|60043^^^MACHETE^MRN|MACHETE^JOE||123 SEASAME STREET^^Oakland^CA^94600|5416666666|5418888888|19890909|F|P AL1|1|FA|^pollen allergy|SV|jalubu daggu|| ORC|NW|PRO2350||XO934N|||^^^^^R||20130405125144|91238^Machete^Joe||92383^Machete^Janice OBR|1|PRO2350||11636^Urinalysis, with Culture if Indicated^L|||20130405135133||||N|||||92383^Machete^Janice|||||||||||^^^^^R ORC|NW|PRO2351||XO934N|||^^^^^R||20130405125144|91238^Machete^Joe||92383^Machete^Janice OBR|1|PRO2350||11637^Urinalysis, with Culture if Indicated^L|||20130405135133||||N|||||92383^Machete^Janice|||||||||||^^^^^R ORC|NW|PRO2352||XO934N|||^^^^^R||20130405125144|91238^Machete^Joe||92383^Machete^Janice OBR|1|PRO2350||11638^Urinalysis, with Culture if Indicated^L|||20130405135133||||N|||||92383^Machete^Janice|||||||||||^^^^^R"; EntityResult<HL7Entity> parse = Parser.Parse(message); var query = parse.CreateQuery(x => x.Layout<OrderLayout1>()); var result = parse.Query(query); Assert.IsTrue(result.HasResult); var placerOrderNumber1 = result .Select(x => x.Tests)[0] .Select(x => x.ORC) .Select(x => x.PlacerOrderNumber) .Select(x => x.EntityIdentifier) .ValueOrDefault(); var placerOrderNumber2 = result .Select(x => x.Tests)[1] .Select(x => x.ORC) .Select(x => x.PlacerOrderNumber) .Select(x => x.EntityIdentifier) .ValueOrDefault(); var placerOrderNumber3 = result .Select(x => x.Tests)[2] .Select(x => x.ORC) .Select(x => x.PlacerOrderNumber) .Select(x => x.EntityIdentifier) .ValueOrDefault(); Assert.AreEqual("PRO2350", placerOrderNumber1); Assert.AreEqual("PRO2351", placerOrderNumber2); Assert.AreEqual("PRO2352", placerOrderNumber3); var unknownCount = result .Select(x => x.Unknown) .Count(); Assert.AreEqual(4, unknownCount); } } }
49.368421
225
0.621061
[ "Apache-2.0" ]
AreebaAroosh/Machete
src/Machete.HL7.Tests/QueryTests/LayoutQueryTests.cs
8,444
C#
/* * Copyright 2010-2014 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the organizations-2016-11-28.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.Organizations.Model { /// <summary> /// This is the response object from the EnablePolicyType operation. /// </summary> public partial class EnablePolicyTypeResponse : AmazonWebServiceResponse { private Root _root; /// <summary> /// Gets and sets the property Root. /// <para> /// A structure that shows the root with the updated list of enabled policy types. /// </para> /// </summary> public Root Root { get { return this._root; } set { this._root = value; } } // Check to see if Root property is set internal bool IsSetRoot() { return this._root != null; } } }
29.196429
111
0.654434
[ "Apache-2.0" ]
Bio2hazard/aws-sdk-net
sdk/src/Services/Organizations/Generated/Model/EnablePolicyTypeResponse.cs
1,635
C#
using System; namespace FloatOrDouble { class FloatOrDouble { static void Main() { double a = 34.567839023; float b = 12.345f; double c = 8923.1234857; float d = 3456.091f; Console.WriteLine("The four variables with the relevant types are:\n double {0}\n float {1}\n double {2}\n float {3}", a, b, c, d); } } }
23.944444
144
0.50116
[ "MIT" ]
veritasbg/CSharp1
DataTypesAndVariablesHomework/FloatOrDouble/FloatOrDouble.cs
433
C#
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // Runtime Version:4.0.30319.42000 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> //------------------------------------------------------------------------------ // Generation date: 10/4/2020 2:24:13 PM namespace Microsoft.Dynamics.DataEntities { /// <summary> /// There are no comments for BudgetControlRuleOverBudgetPermissionSingle in the schema. /// </summary> public partial class BudgetControlRuleOverBudgetPermissionSingle : global::Microsoft.OData.Client.DataServiceQuerySingle<BudgetControlRuleOverBudgetPermission> { /// <summary> /// Initialize a new BudgetControlRuleOverBudgetPermissionSingle object. /// </summary> public BudgetControlRuleOverBudgetPermissionSingle(global::Microsoft.OData.Client.DataServiceContext context, string path) : base(context, path) {} /// <summary> /// Initialize a new BudgetControlRuleOverBudgetPermissionSingle object. /// </summary> public BudgetControlRuleOverBudgetPermissionSingle(global::Microsoft.OData.Client.DataServiceContext context, string path, bool isComposable) : base(context, path, isComposable) {} /// <summary> /// Initialize a new BudgetControlRuleOverBudgetPermissionSingle object. /// </summary> public BudgetControlRuleOverBudgetPermissionSingle(global::Microsoft.OData.Client.DataServiceQuerySingle<BudgetControlRuleOverBudgetPermission> query) : base(query) {} /// <summary> /// There are no comments for BudgetControlRules in the schema. /// </summary> [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] public virtual global::Microsoft.Dynamics.DataEntities.BudgetControlRuleSingle BudgetControlRules { get { if (!this.IsComposable) { throw new global::System.NotSupportedException("The previous function is not composable."); } if ((this._BudgetControlRules == null)) { this._BudgetControlRules = new global::Microsoft.Dynamics.DataEntities.BudgetControlRuleSingle(this.Context, GetPath("BudgetControlRules")); } return this._BudgetControlRules; } } [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] private global::Microsoft.Dynamics.DataEntities.BudgetControlRuleSingle _BudgetControlRules; /// <summary> /// There are no comments for SystemUserGroups in the schema. /// </summary> [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] public virtual global::Microsoft.Dynamics.DataEntities.UserGroupSingle SystemUserGroups { get { if (!this.IsComposable) { throw new global::System.NotSupportedException("The previous function is not composable."); } if ((this._SystemUserGroups == null)) { this._SystemUserGroups = new global::Microsoft.Dynamics.DataEntities.UserGroupSingle(this.Context, GetPath("SystemUserGroups")); } return this._SystemUserGroups; } } [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] private global::Microsoft.Dynamics.DataEntities.UserGroupSingle _SystemUserGroups; } /// <summary> /// There are no comments for BudgetControlRuleOverBudgetPermission in the schema. /// </summary> /// <KeyProperties> /// dataAreaId /// LegalEntityId /// Status /// RuleName /// UserGroupId /// </KeyProperties> [global::Microsoft.OData.Client.Key("dataAreaId", "LegalEntityId", "Status", "RuleName", "UserGroupId")] [global::Microsoft.OData.Client.EntitySet("BudgetControlRuleOverBudgetPermissions")] public partial class BudgetControlRuleOverBudgetPermission : global::Microsoft.OData.Client.BaseEntityType, global::System.ComponentModel.INotifyPropertyChanged { /// <summary> /// Create a new BudgetControlRuleOverBudgetPermission object. /// </summary> /// <param name="dataAreaId">Initial value of dataAreaId.</param> /// <param name="legalEntityId">Initial value of LegalEntityId.</param> /// <param name="ruleName">Initial value of RuleName.</param> /// <param name="userGroupId">Initial value of UserGroupId.</param> /// <param name="budgetControlRules">Initial value of BudgetControlRules.</param> /// <param name="systemUserGroups">Initial value of SystemUserGroups.</param> [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] public static BudgetControlRuleOverBudgetPermission CreateBudgetControlRuleOverBudgetPermission(string dataAreaId, string legalEntityId, string ruleName, string userGroupId, global::Microsoft.Dynamics.DataEntities.BudgetControlRule budgetControlRules, global::Microsoft.Dynamics.DataEntities.UserGroup systemUserGroups) { BudgetControlRuleOverBudgetPermission budgetControlRuleOverBudgetPermission = new BudgetControlRuleOverBudgetPermission(); budgetControlRuleOverBudgetPermission.dataAreaId = dataAreaId; budgetControlRuleOverBudgetPermission.LegalEntityId = legalEntityId; budgetControlRuleOverBudgetPermission.RuleName = ruleName; budgetControlRuleOverBudgetPermission.UserGroupId = userGroupId; if ((budgetControlRules == null)) { throw new global::System.ArgumentNullException("budgetControlRules"); } budgetControlRuleOverBudgetPermission.BudgetControlRules = budgetControlRules; if ((systemUserGroups == null)) { throw new global::System.ArgumentNullException("systemUserGroups"); } budgetControlRuleOverBudgetPermission.SystemUserGroups = systemUserGroups; return budgetControlRuleOverBudgetPermission; } /// <summary> /// There are no comments for Property dataAreaId in the schema. /// </summary> [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] public virtual string dataAreaId { get { return this._dataAreaId; } set { this.OndataAreaIdChanging(value); this._dataAreaId = value; this.OndataAreaIdChanged(); this.OnPropertyChanged("dataAreaId"); } } [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] private string _dataAreaId; partial void OndataAreaIdChanging(string value); partial void OndataAreaIdChanged(); /// <summary> /// There are no comments for Property LegalEntityId in the schema. /// </summary> [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] public virtual string LegalEntityId { get { return this._LegalEntityId; } set { this.OnLegalEntityIdChanging(value); this._LegalEntityId = value; this.OnLegalEntityIdChanged(); this.OnPropertyChanged("LegalEntityId"); } } [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] private string _LegalEntityId; partial void OnLegalEntityIdChanging(string value); partial void OnLegalEntityIdChanged(); /// <summary> /// There are no comments for Property Status in the schema. /// </summary> [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] public virtual global::System.Nullable<global::Microsoft.Dynamics.DataEntities.BudgetControlConfigurationStatus> Status { get { return this._Status; } set { this.OnStatusChanging(value); this._Status = value; this.OnStatusChanged(); this.OnPropertyChanged("Status"); } } [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] private global::System.Nullable<global::Microsoft.Dynamics.DataEntities.BudgetControlConfigurationStatus> _Status; partial void OnStatusChanging(global::System.Nullable<global::Microsoft.Dynamics.DataEntities.BudgetControlConfigurationStatus> value); partial void OnStatusChanged(); /// <summary> /// There are no comments for Property RuleName in the schema. /// </summary> [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] public virtual string RuleName { get { return this._RuleName; } set { this.OnRuleNameChanging(value); this._RuleName = value; this.OnRuleNameChanged(); this.OnPropertyChanged("RuleName"); } } [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] private string _RuleName; partial void OnRuleNameChanging(string value); partial void OnRuleNameChanged(); /// <summary> /// There are no comments for Property UserGroupId in the schema. /// </summary> [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] public virtual string UserGroupId { get { return this._UserGroupId; } set { this.OnUserGroupIdChanging(value); this._UserGroupId = value; this.OnUserGroupIdChanged(); this.OnPropertyChanged("UserGroupId"); } } [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] private string _UserGroupId; partial void OnUserGroupIdChanging(string value); partial void OnUserGroupIdChanged(); /// <summary> /// There are no comments for Property OverbudgetBudgetGroupCheckOption in the schema. /// </summary> [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] public virtual global::System.Nullable<global::Microsoft.Dynamics.DataEntities.BudgetGroupCheckOverbudgetOption> OverbudgetBudgetGroupCheckOption { get { return this._OverbudgetBudgetGroupCheckOption; } set { this.OnOverbudgetBudgetGroupCheckOptionChanging(value); this._OverbudgetBudgetGroupCheckOption = value; this.OnOverbudgetBudgetGroupCheckOptionChanged(); this.OnPropertyChanged("OverbudgetBudgetGroupCheckOption"); } } [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] private global::System.Nullable<global::Microsoft.Dynamics.DataEntities.BudgetGroupCheckOverbudgetOption> _OverbudgetBudgetGroupCheckOption; partial void OnOverbudgetBudgetGroupCheckOptionChanging(global::System.Nullable<global::Microsoft.Dynamics.DataEntities.BudgetGroupCheckOverbudgetOption> value); partial void OnOverbudgetBudgetGroupCheckOptionChanged(); /// <summary> /// There are no comments for Property OverrideOverbudgetOption in the schema. /// </summary> [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] public virtual global::System.Nullable<global::Microsoft.Dynamics.DataEntities.BudgetCheckOverbudgetOption> OverrideOverbudgetOption { get { return this._OverrideOverbudgetOption; } set { this.OnOverrideOverbudgetOptionChanging(value); this._OverrideOverbudgetOption = value; this.OnOverrideOverbudgetOptionChanged(); this.OnPropertyChanged("OverrideOverbudgetOption"); } } [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] private global::System.Nullable<global::Microsoft.Dynamics.DataEntities.BudgetCheckOverbudgetOption> _OverrideOverbudgetOption; partial void OnOverrideOverbudgetOptionChanging(global::System.Nullable<global::Microsoft.Dynamics.DataEntities.BudgetCheckOverbudgetOption> value); partial void OnOverrideOverbudgetOptionChanged(); /// <summary> /// There are no comments for Property UserGroupName in the schema. /// </summary> [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] public virtual string UserGroupName { get { return this._UserGroupName; } set { this.OnUserGroupNameChanging(value); this._UserGroupName = value; this.OnUserGroupNameChanged(); this.OnPropertyChanged("UserGroupName"); } } [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] private string _UserGroupName; partial void OnUserGroupNameChanging(string value); partial void OnUserGroupNameChanged(); /// <summary> /// There are no comments for Property InUseBy in the schema. /// </summary> [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] public virtual string InUseBy { get { return this._InUseBy; } set { this.OnInUseByChanging(value); this._InUseBy = value; this.OnInUseByChanged(); this.OnPropertyChanged("InUseBy"); } } [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] private string _InUseBy; partial void OnInUseByChanging(string value); partial void OnInUseByChanged(); /// <summary> /// There are no comments for Property BudgetControlRules in the schema. /// </summary> [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] public virtual global::Microsoft.Dynamics.DataEntities.BudgetControlRule BudgetControlRules { get { return this._BudgetControlRules; } set { this.OnBudgetControlRulesChanging(value); this._BudgetControlRules = value; this.OnBudgetControlRulesChanged(); this.OnPropertyChanged("BudgetControlRules"); } } [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] private global::Microsoft.Dynamics.DataEntities.BudgetControlRule _BudgetControlRules; partial void OnBudgetControlRulesChanging(global::Microsoft.Dynamics.DataEntities.BudgetControlRule value); partial void OnBudgetControlRulesChanged(); /// <summary> /// There are no comments for Property SystemUserGroups in the schema. /// </summary> [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] public virtual global::Microsoft.Dynamics.DataEntities.UserGroup SystemUserGroups { get { return this._SystemUserGroups; } set { this.OnSystemUserGroupsChanging(value); this._SystemUserGroups = value; this.OnSystemUserGroupsChanged(); this.OnPropertyChanged("SystemUserGroups"); } } [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] private global::Microsoft.Dynamics.DataEntities.UserGroup _SystemUserGroups; partial void OnSystemUserGroupsChanging(global::Microsoft.Dynamics.DataEntities.UserGroup value); partial void OnSystemUserGroupsChanged(); /// <summary> /// This event is raised when the value of the property is changed /// </summary> [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] public event global::System.ComponentModel.PropertyChangedEventHandler PropertyChanged; /// <summary> /// The value of the property is changed /// </summary> /// <param name="property">property name</param> [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.OData.Client.Design.T4", "#VersionNumber#")] protected virtual void OnPropertyChanged(string property) { if ((this.PropertyChanged != null)) { this.PropertyChanged(this, new global::System.ComponentModel.PropertyChangedEventArgs(property)); } } } }
48.323907
169
0.631078
[ "MIT" ]
NathanClouseAX/AAXDataEntityPerfTest
Projects/AAXDataEntityPerfTest/ConsoleApp1/Connected Services/D365/BudgetControlRuleOverBudgetPermission.cs
18,800
C#
using SimplePenAndPaperManager.MapEditor.Entities.Buildings; using SimplePenAndPaperManager.MapEditor.Entities.Interface; using SimplePenAndPaperManager.MapEditor.Entities.Markers; using System.Collections.Generic; using System.Runtime.Serialization; using System.Windows.Ink; namespace SimplePenAndPaperManager.MapEditor.Entities { [KnownType(typeof(Stairs))] [KnownType(typeof(Window))] [KnownType(typeof(Wall))] [KnownType(typeof(TextMarker))] [KnownType(typeof(Point2D))] [KnownType(typeof(Door))] [KnownType(typeof(Floor))] [KnownType(typeof(RectangularBuilding))] [KnownType(typeof(PolygonBuilding))] [DataContract] public class Map { public int GetNewId() { _newId++; return _newId; } private int _newId; [DataMember] public double Width { get; set; } [DataMember] public double Height { get; set; } [DataMember] public List<IMapEntity> Entities { get; set; } public StrokeCollection Terrain { get; set; } public Map() { _newId = -1; } } }
25.086957
61
0.644714
[ "Apache-2.0" ]
dowerner/SimplePenAndPaperManager
SimplePenAndPaperManager/MapEditor/Entities/Map.cs
1,156
C#
using Common.Helpers; namespace RealmServer.PacketReader { public sealed class MSG_MINIMAP_PING : Common.Network.PacketReader { public float MapX; public float MapY; public MSG_MINIMAP_PING(byte[] data) : base(data) { MapX = ReadSingle(); MapY = ReadSingle(); #if DEBUG Log.Print(LogType.Debug, $"[MSG_MINIMAP_PING] MapX: {MapX} MapY: {MapY}"); #endif } } }
21.428571
86
0.595556
[ "Unlicense" ]
drolean/Servidor-WOW
RealmServer/PacketReader/MSG_MINIMAP_PING.cs
452
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Drawing; using Custom.Math; namespace RayTracer2010 { class Sampler23Lerp : Sampler { public Bitmap bmp; public Sampler23Lerp(string name) { bmp = new Bitmap(name); } public override vect3d sample(vect3d pos) { // find modulo value (texture wrapping) vect2d p = new vect2d((pos.x % 1) * bmp.Width, ((1 - pos.y) % 1) * bmp.Height); if (p.x < 0) p.x += bmp.Width; if (p.y < 0) p.y += bmp.Height; // get color out of bmp int i = (int)p.x, j = (int)p.y; int ip = (i + 1) % bmp.Width, jp = (j + 1) % bmp.Height; double dx = p.x - i, dy = p.y - j; Color color; color = bmp.GetPixel(i, j); vect3d c00 = new vect3d(color.R, color.G, color.B); color = bmp.GetPixel(i, jp); vect3d c01 = new vect3d(color.R, color.G, color.B); color = bmp.GetPixel(ip, j); vect3d c10 = new vect3d(color.R, color.G, color.B); color = bmp.GetPixel(ip, jp); vect3d c11 = new vect3d(color.R, color.G, color.B); // combine samples with lerp return ((1 - dx) * (1 - dy) * c00 + (1 - dx) * dy * c01 + dx * (1 - dy) * c10 + dx * dy * c11) * (1.0/ 255.0); } } }
27.849057
122
0.488482
[ "MIT" ]
AlexAlbala/Alter-Native
Examples/To do/Image synthesis/RayTracer2010/RayTracer2010/Sampler23Lerp.cs
1,478
C#
using Photon.Realtime; using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class NetworkToggle : MonoBehaviour { static float HEIGHT_DIFF = 30, WIDTH_DIFF = 60, START_X = -30, START_Y = 50; public static void toggle(List<RoomInfo> list) { GameObject canvas = GameObject.Find("Canvas"); for (int i = 0; i < list.Count; i++) { Vector3 pos = new Vector3(START_X, START_Y + (HEIGHT_DIFF * i), 0); GameObject textObj = new GameObject("GameInfo" + i); textObj.transform.SetParent(canvas.transform); textObj.transform.SetPositionAndRotation(canvas.transform.position + pos, Quaternion.identity); textObj.AddComponent<Text>().text = "Game " + i; textObj.GetComponent<Text>().font = Resources.GetBuiltinResource<Font>("Arial.ttf"); textObj.GetComponent<Text>().fontSize = 16; pos.Set(START_X + WIDTH_DIFF, pos.y, pos.z); textObj = new GameObject("GameInfoPlayers" + i); textObj.transform.SetParent(canvas.transform); textObj.transform.SetPositionAndRotation(canvas.transform.position + pos, Quaternion.identity); textObj.AddComponent<Text>().text = "(" + list[i].PlayerCount + "/" + list[i].MaxPlayers + ")"; textObj.GetComponent<Text>().font = Resources.GetBuiltinResource<Font>("Arial.ttf"); textObj.GetComponent<Text>().fontSize = 16; pos.Set(0 + 20, pos.y - 7, pos.z); GameObject buttonObj = new GameObject("JoinGameButton" + i); buttonObj.transform.SetParent(canvas.transform); buttonObj.transform.SetPositionAndRotation(textObj.transform.position + pos, Quaternion.identity); buttonObj.AddComponent<Button>().onClick.AddListener(delegate { JoinGame(i); }); buttonObj.AddComponent<RectTransform>().sizeDelta = new Vector2(60, 25); buttonObj.AddComponent<Image>(); buttonObj.GetComponent<Button>().targetGraphic = buttonObj.GetComponent<Image>(); textObj = new GameObject("Text"); textObj.transform.SetParent(buttonObj.transform); pos.Set(35, -42, pos.z); textObj.transform.SetPositionAndRotation(buttonObj.transform.position + pos, Quaternion.identity); textObj.AddComponent<Text>().text = "Join"; textObj.GetComponent<Text>().font = Resources.GetBuiltinResource<Font>("Arial.ttf"); textObj.GetComponent<Text>().color = Color.black; } } static void JoinGame(int i) { GameObject.FindObjectOfType<NetworkController>().GetComponent<NetworkController>().joinGame(i - 1); } }
49.175439
111
0.635391
[ "MIT" ]
siralpega/fourinaline
src/Scripts/NetworkToggle.cs
2,805
C#
using Microsoft.Speech.Recognition; using Microsoft.Speech.Recognition.SrgsGrammar; using Microsoft.Speech.Synthesis; using System; using System.Collections.Generic; using System.ComponentModel; using System.Data.SqlClient; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Imaging; using System.Windows.Navigation; using System.Windows.Shapes; namespace Cinema { /// <summary> /// Interaction logic for MovieSeatsPage.xaml /// </summary> public partial class MovieSeatsPage : SpeechPage { private int Columns; private bool ColumnsSet = false; private int? Row; private int Rows; private bool RowsSet = false; private Screening Screening; private int? Seat; private Seat[] Seats; public MovieSeatsPage(Window window, Page previousPage, SqlConnectionFactory sqlConnectionFactory, Screening screening) : base(window, previousPage, sqlConnectionFactory) { InitializeComponent(); Loaded += (sender, args) => SpeechControl.SetParent(this); Screening = screening; InitializeSeatsView(); } public int GetColumns() { if (!ColumnsSet) { Columns = 0; foreach (Seat seat in GetSeats()) { Columns = Math.Max(Columns, seat.No); } ColumnsSet = true; } return Columns; } public int GetRows() { if (!RowsSet) { Rows = 0; foreach (Seat seat in GetSeats()) { Rows = Math.Max(Rows, seat.Row); } RowsSet = true; } return Rows; } public Seat[] GetSeats() { if (Seats == null) { List<Seat> seats = new List<Seat>(); using (SqlConnection sqlConnection = sqlConnectionFactory.Create()) { sqlConnection.Open(); using (SqlCommand sqlCommand = sqlConnection.CreateCommand()) { sqlCommand.CommandText = "SELECT DISTINCT Seats.id, Seats.rowNo, Seats.seatNo, Tickets.id AS ticket " + "FROM Auditoriums, Screenings, " + "(Seats LEFT JOIN Tickets ON (Tickets.seatID = Seats.id) AND (Tickets.screeningID = " + Screening.Id + ")) " + "WHERE (Seats.auditoriumID = Auditoriums.id) AND (Auditoriums.id = " + Screening.Auditorium + ")"; SqlDataReader sqlDataReader = sqlCommand.ExecuteReader(); while (sqlDataReader.Read()) { int id = int.Parse(string.Format("{0}", sqlDataReader[0])); int row = int.Parse(string.Format("{0}", sqlDataReader[1])); int no = int.Parse(string.Format("{0}", sqlDataReader[2])); bool taken = string.Format("{0}", sqlDataReader[3]) != string.Empty; seats.Add(new Seat(Screening, id, no, row, taken)); } sqlDataReader.Close(); } sqlConnection.Close(); } Seats = seats.ToArray(); } return Seats; } protected override SpeechControl GetSpeechControl() { return SpeechControl; } protected override void AddCustomSpeechGrammarRules(SrgsRulesCollection rules) { AddRowSpeechGrammarRules(rules); AddRowSeatSpeechGrammarRules(rules); AddSeatSpeechGrammarRules(rules); } private void AddRowSpeechGrammarRules(SrgsRulesCollection rules) { SrgsRule rowSrgsRule; { SrgsOneOf rowSrgsOneOf = new SrgsOneOf(); List<int> rows = new List<int>(); foreach (Seat seat in GetSeats()) { if (!rows.Contains(seat.Row)) { rows.Add(seat.Row); } } foreach (int row in rows) { SrgsItem srgsItem = new SrgsItem("Rząd " + row); srgsItem.Add(new SrgsSemanticInterpretationTag("out=\"row." + row + "\";")); rowSrgsOneOf.Add(srgsItem); } SrgsItem phraseSrgsItem = new SrgsItem(); phraseSrgsItem.Add(new SrgsItem(0, 1, "Wybierz")); phraseSrgsItem.Add(rowSrgsOneOf); rowSrgsRule = new SrgsRule("row", phraseSrgsItem); } rules.Add(rowSrgsRule); { SrgsItem srgsItem = new SrgsItem(); srgsItem.Add(new SrgsRuleRef(rowSrgsRule)); SrgsRule rootSrgsRule = rules.Where(rule => rule.Id == "root").First(); SrgsOneOf srgsOneOf = (SrgsOneOf)rootSrgsRule.Elements.Where(element => element is SrgsOneOf).First(); srgsOneOf.Add(srgsItem); } } private void AddRowSeatSpeechGrammarRules(SrgsRulesCollection rules) { SrgsRule rowSeatSrgsRule; { SrgsOneOf rowSeatSrgsOneOf = new SrgsOneOf(); int i = 0; foreach (Seat seat in GetSeats()) { SrgsItem srgsItem = new SrgsItem("Rząd " + seat.Row + " miejsce " + seat.No); srgsItem.Add(new SrgsSemanticInterpretationTag("out=\"rowseat." + i++ + "\";")); rowSeatSrgsOneOf.Add(srgsItem); } SrgsItem phraseSrgsItem = new SrgsItem(); phraseSrgsItem.Add(new SrgsItem(0, 1, "Wybierz")); phraseSrgsItem.Add(rowSeatSrgsOneOf); rowSeatSrgsRule = new SrgsRule("rowseat", phraseSrgsItem); } rules.Add(rowSeatSrgsRule); { SrgsItem srgsItem = new SrgsItem(); srgsItem.Add(new SrgsRuleRef(rowSeatSrgsRule)); SrgsRule rootSrgsRule = rules.Where(rule => rule.Id == "root").First(); SrgsOneOf srgsOneOf = (SrgsOneOf)rootSrgsRule.Elements.Where(element => element is SrgsOneOf).First(); srgsOneOf.Add(srgsItem); } } private void AddSeatSpeechGrammarRules(SrgsRulesCollection rules) { SrgsRule seatSrgsRule; { SrgsOneOf seatSrgsOneOf = new SrgsOneOf(); List<int> seats = new List<int>(); foreach (Seat seat in GetSeats()) { if (!seats.Contains(seat.No)) { seats.Add(seat.No); } } foreach (int seat in seats) { SrgsItem srgsItem = new SrgsItem("Miejsce " + seat); srgsItem.Add(new SrgsSemanticInterpretationTag("out=\"seat." + seat + "\";")); seatSrgsOneOf.Add(srgsItem); } SrgsItem phraseSrgsItem = new SrgsItem(); phraseSrgsItem.Add(new SrgsItem(0, 1, "Wybierz")); phraseSrgsItem.Add(seatSrgsOneOf); seatSrgsRule = new SrgsRule("seat", phraseSrgsItem); } rules.Add(seatSrgsRule); { SrgsItem srgsItem = new SrgsItem(); srgsItem.Add(new SrgsRuleRef(seatSrgsRule)); SrgsRule rootSrgsRule = rules.Where(rule => rule.Id == "root").First(); SrgsOneOf srgsOneOf = (SrgsOneOf)rootSrgsRule.Elements.Where(element => element is SrgsOneOf).First(); srgsOneOf.Add(srgsItem); } } public override void InitializeSpeech(object sender, DoWorkEventArgs e) { base.InitializeSpeech(sender, e); SpeakHello(); } private void SpeakHello() { Speak("Wybierz miejsce."); } private void SpeakHelp() { PromptBuilder promptBuilder = new PromptBuilder(); promptBuilder.AppendText("Aby wybrać miejsce powiedz WYBIERZ RZĄD"); promptBuilder.AppendSsmlMarkup("<prosody rate=\"slow\"><say-as interpret-as=\"characters\">K</say-as></prosody>"); promptBuilder.AppendText("MIEJSCE"); promptBuilder.AppendSsmlMarkup("<prosody rate=\"slow\"><say-as interpret-as=\"characters\">L</say-as></prosody>"); Prompt prompt = new Prompt(promptBuilder); Speak(prompt); Speak("Aby wrócić powiedz WRÓĆ."); } private void SpeakRepeat() { Speak("Powtórz proszę."); } private void SpeakQuit() { Speak("Zapraszam ponownie."); } protected override void SpeechRecognitionEngine_SpeechRecognized(object sender, SpeechRecognizedEventArgs e) { base.SpeechRecognitionEngine_SpeechRecognized(sender, e); RecognitionResult result = e.Result; if (result.Confidence < 0.6) { SpeakRepeat(); } else { string[] command = result.Semantics.Value.ToString().ToLower().Split('.'); DispatchAsync(() => { switch (command.First()) { case "back": MoveBack(); break; case "help": SpeakHelp(); break; case "row": if (Row != null) { Seat = null; } Row = int.Parse(command.Skip(1).First()); TakeSeat(Row, Seat); break; case "rowseat": TakeSeat(int.Parse(command.Skip(1).First())); break; case "seat": if (Seat != null) { Row = null; } Seat = int.Parse(command.Skip(1).First()); TakeSeat(Row, Seat); break; case "quit": SpeakQuit(); Close(); break; } }); } } private void TakeSeat(int? row, int? seat) { if (row == null) { if (GetRows() > 1) { Speak("Który rząd?"); } else { row = 1; } } if (seat == null) { if (GetColumns() > 1) { Speak("Które miejsce?"); } else { seat = 1; } } if ((row != null) && (seat != null)) { int index = ((int) seat - 1) + (GetColumns() * ((int) row - 1)); TakeSeat(index); } } private void TakeSeat(int index) { try { TakeSeat(GetSeats()[index]); } catch (IndexOutOfRangeException) { } } private void TakeSeat(Seat seat) { if (seat.Taken) { Speak("To miejsce jest zajęte."); } else { DispatchAsync(() => { ChangePage(new TicketDataPage(window, this, sqlConnectionFactory, seat)); }); } } private void InitializeSeatsView() { for (int i = 0; i < GetRows(); ++i) { SeatsGrid.RowDefinitions.Add(new RowDefinition()); } for (int i = 0; i < GetColumns(); ++i) { SeatsGrid.ColumnDefinitions.Add(new ColumnDefinition()); } foreach (Seat seat in GetSeats()) { SeatButton seatButton = new SeatButton(seat, () => { TakeSeat(seat); }); Grid.SetRow(seatButton, seat.Row - 1); Grid.SetColumn(seatButton, seat.No - 1); SeatsGrid.Children.Add(seatButton); } } private void BackButton_Click(object sender, RoutedEventArgs e) { MoveBack(); } } }
30.767654
178
0.459984
[ "MIT" ]
ventaquil/SWPSD-Projekt
Cinema/MovieSeatsPage.xaml.cs
13,523
C#
// Copyright (C) 2017 History in Paderborn App - Universität Paderborn // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. using System; using System.Collections.ObjectModel; using System.Linq; using PaderbornUniversity.SILab.Hip.Mobile.Shared.Common; using PaderbornUniversity.SILab.Hip.Mobile.UI.Helpers; using Xamarin.Forms; namespace PaderbornUniversity.SILab.Hip.Mobile.UI.Container { /// <summary> /// View for displaying a collection of tabs. The tabs are shown at the top and can be clicked to switch the content below. /// </summary> public class TabContainerView : ContentView { private readonly Grid header; private readonly ContentView contentContainer; public TabContainerView() { var layout = new StackLayout() { Orientation = StackOrientation.Vertical, Padding = new Thickness(0, 0) }; header = new Grid(); header.RowSpacing = 0; header.ColumnSpacing = 0; header.RowDefinitions.Add(new RowDefinition { Height = new GridLength(45, GridUnitType.Absolute) }); contentContainer = new ContentView() { HorizontalOptions = LayoutOptions.FillAndExpand, VerticalOptions = LayoutOptions.FillAndExpand }; layout.Children.Add(header); layout.Children.Add(contentContainer); Content = layout; TabViews = new ObservableCollection<View>(); } public static readonly BindableProperty TabsProperty = BindableProperty.Create( nameof(Tabs), typeof(ObservableCollection<string>), typeof(TabContainerView), propertyChanged: TabsPropertyChanged ); /// <summary> /// Collection of strings to be displayed as tab titles. /// </summary> public ObservableCollection<string> Tabs { get { return (ObservableCollection<string>)GetValue(TabsProperty); } set { SetValue(TabsProperty, value); } } /// <summary> /// Gets called when the <see cref="Tabs"/> property changes. /// Clears the tab bar and adds a new tab (with divider) for each string /// in the <see cref="Tabs"/> collection. Sets all children of the <see cref="TabContainerView"/> /// to invisible. /// </summary> private static void TabsPropertyChanged(BindableObject bindable, object oldValue, object newValue) { var tabView = bindable as TabContainerView; var newTabs = newValue as ObservableCollection<string>; if (tabView == null || newTabs == null) return; var tabBar = tabView.header; // replace current tabs with new ones tabBar.Children.Clear(); tabBar.ColumnDefinitions.Clear(); for (int i = 0; i < newTabs.Count; i++) { tabBar.ColumnDefinitions.Add(new ColumnDefinition { Width = GridLength.Star }); tabBar.ColumnDefinitions.Add(new ColumnDefinition { Width = new GridLength(1) }); var title = newTabs.ElementAt(i); tabBar.Children.Add(CreateTab(tabView, title, i), 2 * i, 0); tabBar.Children.Add(CreateDivider(), 2 * i + 1, 0); } tabBar.Children.RemoveAt(tabBar.Children.Count - 1); // remove last divider // reset current tab to first tabView.CurrentTab = "0"; } public static readonly BindableProperty CurrentTabProperty = BindableProperty.Create( nameof(CurrentTab), typeof(string), typeof(TabContainerView), propertyChanged: CurrentTabPropertyChanged ); /// <summary> /// The currently selected tab of the <see cref="TabContainerView"/>. /// </summary> public string CurrentTab { get { return (string)GetValue(CurrentTabProperty); } set { SetValue(CurrentTabProperty, value); } } /// <summary> /// Gets called when the currently selected tab changes. /// Removes the highlight from the previously selected tab and sets its child to invisible. /// Adds the highlight to the newly selected tab and sets its child to visible. /// </summary> private static void CurrentTabPropertyChanged(BindableObject bindable, object oldvalue, object newvalue) { var tabView = bindable as TabContainerView; var tabBar = tabView?.header; if (tabBar == null) return; // reset previous index if (oldvalue != null) { var previousTabIndex = int.Parse((string)oldvalue); var tab = tabBar.Children.ElementAt(TranslateTabIndexToLabelIndex(previousTabIndex)); UnhighlightTabLabel(tab as Label); } // set new index if (newvalue != null) { var currentTabIndex = int.Parse((string)newvalue); HighlightTabLabel(tabBar.Children.ElementAt(TranslateTabIndexToLabelIndex(currentTabIndex)) as Label); SetDisplayedView(tabView, TranslateTabIndexToChildIndex(currentTabIndex)); } } public static readonly BindableProperty TabViewsProperty = BindableProperty.Create( nameof(TabViews), typeof(ObservableCollection<View>), typeof(TabContainerView), new ObservableCollection<View>() ); /// <summary> /// The collection of the <see cref="TabContainerView"/>. /// </summary> public ObservableCollection<View> TabViews { get { return (ObservableCollection<View>)GetValue(TabViewsProperty); } set { SetValue(TabViewsProperty, value); } } /// <summary> /// Creates a new tab with the specified title which will be /// associated with the specified index of the specified <see cref="TabContainerView"/>. /// </summary> /// <param name="tabView">The <see cref="TabContainerView"/> the tab is created for.</param> /// <param name="title">The displayed title of the tab.</param> /// <param name="index">The index of the container to show when the tab is selected.</param> /// <returns>A <see cref="Label"/> representing the newly created tab.</returns> private static View CreateTab(TabContainerView tabView, string title, int index) { var lbl = new Label { Text = title, FontSize = 20, VerticalOptions = LayoutOptions.FillAndExpand, VerticalTextAlignment = TextAlignment.Center, HorizontalOptions = LayoutOptions.FillAndExpand, HorizontalTextAlignment = TextAlignment.Center, Margin = new Thickness(6, 0) }; lbl.SetDynamicResource(StyleProperty, "TitleStyle"); // change tab on click var gestureRecognizer = new TapGestureRecognizer(); gestureRecognizer.Tapped += (s, e) => { tabView.CurrentTab = $"{index}"; }; lbl.GestureRecognizers.Add(gestureRecognizer); return lbl; } /// <summary> /// Highlights the specified tab label by adjusting its appeareance. /// </summary> /// <param name="tab">The tab to highlight.</param> private static void HighlightTabLabel(Label tab) { var resources = IoCManager.Resolve<ApplicationResourcesProvider>(); tab.TextColor = resources.TryGetResourceColorvalue("PrimaryColor"); } /// <summary> /// Removes any highlight from the specified tab. /// </summary> /// <param name="tab">The tab which should be stripped of the highlight.</param> private static void UnhighlightTabLabel(Label tab) { tab.TextColor = Color.Black; } /// <summary> /// Creates a new divider which is displayed between tabs. /// </summary> /// <returns>A <see cref="BoxView"/> with one unit width.</returns> private static View CreateDivider() { return new BoxView { Color = Color.Gray, WidthRequest = 1, Margin = new Thickness(0, 6) }; } /// <summary> /// Translates a tab index to the position of the corresponding /// <see cref="Label"/> in the tab bar. Necessary to skip dividers. /// </summary> /// <param name="index">The tab index.</param> /// <returns>The index of the corresponding Label in the tab bar.</returns> private static int TranslateTabIndexToLabelIndex(int index) { return index * 2; } /// <summary> /// Translates a tab index to the index of the corresponding /// container within the children of the <see cref="TabContainerView"/>. /// Necessary to skip the tab bar. /// </summary> /// <param name="index">The tab index.</param> /// <returns>The index of the corresponding child.</returns> private static int TranslateTabIndexToChildIndex(int index) { return index; } /// <summary> /// Sets the currently displayed view by index. /// </summary> /// <param name="control">The instance of the <see cref="TabContainerView"/>.</param> /// <param name="index">The index to set.</param> private static void SetDisplayedView(TabContainerView control, int index) { if (control == null || index < 0 || index >= control.TabViews.Count) { throw new ArgumentException("Illegal arguments passed."); } control.contentContainer.Content = control.TabViews[index]; } } }
39.867925
148
0.600284
[ "Apache-2.0" ]
HiP-App/HiP-Forms
Sources/HipMobileUI/Container/TabContainerView.cs
10,568
C#
using Leftware.Common; using Leftware.Tasks.Core.TaskParameters; namespace Leftware.Tasks.Core; public abstract class CommonTaskBase { public TaskExecutionContext Context { get; set; } public CommonTaskInputHelper Input { get; set; } public async virtual Task<IDictionary<string, object>?> GetTaskInput() { return await Task.FromResult(default(IDictionary<string, object>)); } public virtual IList<TaskParameter> GetTaskParameterDefinition() { return null; } public abstract Task Execute(IDictionary<string, object> input); protected static IDictionary<string, object> GetEmptyTaskInput() { return new Dictionary<string, object>(); } protected T GetCollectionValue<T>(IDictionary<string, object> dic, string key, string collection) { var item = UtilCollection.Get(dic, key, ""); if (item == Defs.USE_AS_VALUE) { var itemValue = UtilCollection.Get(dic, $"{key}__$rawValue", ""); return UtilConvert.ConvertTo<T>(itemValue); } try { var itemContent = Context.CollectionProvider.GetItemContentAs<T>(collection, item); return itemContent; } catch (Exception) { return UtilConvert.ConvertTo<T>(item); } } }
28.804348
101
0.646792
[ "MIT" ]
jhonnycano/Leftware-Tasks
src/Leftware.Tasks.Core/CommonTaskBase.cs
1,327
C#
using UnityEngine; using System.Collections; public class EnemyBarrels { public class Barrels { public float radiusDam = 0; } // Use this for initialization void Start () { } // Update is called once per frame void Update () { } }
12.173913
35
0.603571
[ "MIT" ]
aaronr4043/Pirate-In-Barrels
Assets/EnemyBarrels.cs
282
C#
using ForceOfWillCube.Droid.Implementations; using Xamarin.Forms; [assembly: Dependency(typeof(AuthenticatorService))] namespace ForceOfWillCube.Droid.Implementations { using Android.App; using Android.Content; using Android.Util; using ForceOfWillCube.Models.Users; using ForceOfWillCube.Utils; using System; public class AuthenticatorService : IAuthenticatorService { private readonly ISharedPreferences sharedPreferences; private UserModel currentUser; public AuthenticatorService() { this.sharedPreferences = Application.Context.GetSharedPreferences("UserInfo", FileCreationMode.Private); this.currentUser = new UserModel { Email = this.sharedPreferences.GetString("user_email", string.Empty), IsLogged = this.sharedPreferences.GetBoolean("is_logged", false), PhotoUrl = this.sharedPreferences.GetString("user_photo_url", string.Empty), UserId = this.sharedPreferences.GetInt("user_user_id", 0), Username = this.sharedPreferences.GetString("user_username", "Guest User") }; } public bool SigninUser(string username) { this.currentUser.Email = username; this.currentUser.IsLogged = true; this.currentUser.PhotoUrl = string.Empty; this.currentUser.UserId = 1; this.currentUser.Username = username; return this.EditPreferences(this.sharedPreferences.Edit(), this.currentUser); } public bool SignoutUser() { this.currentUser = new UserModel { IsLogged = false, Username = "Guest User" }; return this.EditPreferences(this.sharedPreferences.Edit(), this.currentUser); } private bool EditPreferences(ISharedPreferencesEditor editor, UserModel model) { try { editor.PutString("user_email", string.Empty); editor.PutBoolean("is_logged", false); editor.PutString("user_photo_url", string.Empty); editor.PutInt("user_user_id", model.UserId); editor.PutString("user_username", string.Empty); editor.Apply(); return true; } catch (Exception e) { Log.Error("AUTHENTICATOR MANAGER", "Catched exception in signin."); throw e; } } public UserModel GetSignedUser() => this.currentUser; } }
36.857143
116
0.614729
[ "Apache-2.0" ]
Daniele-Tentoni/ForceOfWillCube
ForceOfWillCube.Android/Implementations/AuthenticatorService.cs
2,582
C#
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace WarOfTheWorlds { class Program { static void Main(string[] args) { var inputPath = "C:/temp/warOfTheWorlds.txt"; var results = new Dictionary<string, int>(); string[] lines = File.ReadAllLines(inputPath); //run through each line, remove any special characters then increment word counter foreach(string line in lines) { //no empty lines if (line.Length > 0) { //remove all instances of full stops or commas or semicolons //I feel like these could have been done with Regex, but I don't know enough about it to use confidently var _line = line.Replace(". ", " "); _line = _line.Replace("\"", ""); _line = _line.Replace(", ", " "); _line = _line.Replace("_", " ");//noticed this in a test _line = _line.Replace("; ", " "); _line = _line.Replace(" (", " "); _line = _line.Replace(") ", " "); _line = _line.Replace(" [", " "); _line = _line.Replace("] ", " "); _line = _line.Replace("?", ""); _line = _line.Replace("-", " "); //take out the 's so they can be included in the original word _line = _line.Replace("'s", ""); //had to add this as for some reason if these were at the end of the line, they didn't get removed _line = _line.Trim(); _line = _line.TrimEnd('.'); _line = _line.TrimEnd(','); _line = _line.TrimEnd(';'); _line = _line.TrimEnd(')'); _line = _line.TrimEnd(']'); //split into words string[] words = _line.Split(' '); foreach(string word in words) { //skip this one if it's a 1 letter word which isnt i or a (H G) if(word.Length == 1 && !(word.ToLower().Contains("i") || word.ToLower().Contains("a"))) { continue; } if (word.Length > 0 && !int.TryParse(word, out var i)) //extra credit { //Console.WriteLine(word); //testing to see what the output is if (results.ContainsKey(word.ToLower())) { //add one to the tally results[word.ToLower()] = ++results[word.ToLower()]; } else { //add new record results.Add(word.ToLower(), 1); } } } } } File.AppendAllLines("C:/temp/output.txt", results.Select(result => $"{result.Key}: {result.Value}")); } } }
39.465116
124
0.415439
[ "MIT" ]
iansmith-uk/WarOfTheWorlds
WarOfTheWorlds/WarOfTheWorlds/Program.cs
3,396
C#
namespace BinarySerializer { /// <summary> /// Class for basic XOR operations with a single byte key /// </summary> public class XOR8Calculator : IXORCalculator { public byte Key { get; set; } public XOR8Calculator(byte key) { Key = key; } public byte XORByte(byte b) { return (byte)(b ^ Key); } } }
21.4
58
0.654206
[ "MIT" ]
RayCarrot/BinarySerializer
src/IO/XOR/XOR8Calculator.cs
323
C#
#if !NO_RUNTIME using CustomDataStruct; using System; #if FEAT_IKVM using Type = IKVM.Reflection.Type; using IKVM.Reflection; #else using System.Reflection; #endif namespace ProtoBuf.Serializers { sealed class Int32Serializer : IProtoSerializer { #if FEAT_IKVM readonly Type expectedType; #else static readonly Type expectedType = typeof(int); #endif public Int32Serializer(ProtoBuf.Meta.TypeModel model) { #if FEAT_IKVM expectedType = model.MapType(typeof(int)); #endif } public Type ExpectedType { get { return expectedType; } } bool IProtoSerializer.RequiresOldValue { get { return false; } } bool IProtoSerializer.ReturnsValue { get { return true; } } #if !FEAT_IKVM public object Read(object value, ProtoReader source) { Helpers.DebugAssert(value == null); // since replaces return ValueObject.Get(source.ReadInt32()); } public void Write(object value, ProtoWriter dest) { ProtoWriter.WriteInt32(ValueObject.Value<int>(value), dest); } #endif #if FEAT_COMPILER void IProtoSerializer.EmitWrite(Compiler.CompilerContext ctx, Compiler.Local valueFrom) { ctx.EmitBasicWrite("WriteInt32", valueFrom); } void IProtoSerializer.EmitRead(Compiler.CompilerContext ctx, Compiler.Local valueFrom) { ctx.EmitBasicRead("ReadInt32", ExpectedType); } #endif } } #endif
27.381818
95
0.660027
[ "MIT" ]
Lovely-mo/DragonNest
Assets/Test/TestProtoBuffer/protobuf-net/Serializers/Int32Serializer.cs
1,508
C#
// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; using System.Diagnostics; using JetBrains.Annotations; using Microsoft.EntityFrameworkCore.Metadata; namespace Microsoft.EntityFrameworkCore.Diagnostics { /// <summary> /// A <see cref="DiagnosticSource" /> event payload class for events that have an <see cref="INavigation"/>. /// </summary> public class NavigationEventData : EventData, INavigationBaseEventData { /// <summary> /// Constructs the event payload. /// </summary> /// <param name="eventDefinition"> The event definition. </param> /// <param name="messageGenerator"> A delegate that generates a log message for this event. </param> /// <param name="navigation"> The navigation. </param> public NavigationEventData( [NotNull] EventDefinitionBase eventDefinition, [NotNull] Func<EventDefinitionBase, EventData, string> messageGenerator, [NotNull] INavigation navigation) : base(eventDefinition, messageGenerator) { Navigation = navigation; } /// <summary> /// The navigation. /// </summary> public virtual INavigation Navigation { get; } /// <summary> /// The navigation. /// </summary> INavigationBase INavigationBaseEventData.NavigationBase => Navigation; } }
36.785714
116
0.642071
[ "Apache-2.0" ]
ChristopherHaws/efcore
src/EFCore/Diagnostics/NavigationEventData.cs
1,545
C#
namespace Microsoft.Maui { public static class CheckBoxExtensions { public static void UpdateIsChecked(this NativeCheckBox nativeCheckBox, ICheckBox check) { nativeCheckBox.IsChecked = check.IsChecked; } } }
22
89
0.777273
[ "MIT" ]
lanicon/maui
src/Core/src/Platform/iOS/CheckBoxExtensions.cs
222
C#
namespace SingleResponsibilityShapesBefore { public interface IDrawingContext { } }
13.857143
43
0.731959
[ "MIT" ]
Supbads/Softuni-Education
03. HighQualityCode 12.15/Demos/17. SOLID-Principles-in-Software-Design-Demo/SOLID-Principles-Demos/1. Single Responsibility/2.1. Before - Drawing Shape/IDrawingContext.cs
99
C#
// <copyright file="UpdateView.xaml.cs" company="Mozilla"> // This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, you can obtain one at http://mozilla.org/MPL/2.0/. // </copyright> using System.Diagnostics; using System.Threading.Tasks; using System.Windows; using System.Windows.Controls; namespace FirefoxPrivateNetwork.UI { /// <summary> /// Interaction logic for UpdateView.xaml. /// </summary> public partial class UpdateView : UserControl { /// <summary> /// Initializes a new instance of the <see cref="UpdateView"/> class. /// </summary> public UpdateView() { DataContext = Manager.MainWindowViewModel; InitializeComponent(); } private void NavigateSettings(object sender, RoutedEventArgs e) { MainWindow mainWindow = (MainWindow)Application.Current.MainWindow; mainWindow.NavigateToView(new SettingsView(this), MainWindow.SlideDirection.Up); } private void Update_Click(object sender, RoutedEventArgs e) { Button updateButton = sender as Button; updateButton.IsEnabled = false; // Create an update toast var toast = new UI.Components.Toast.Toast(UI.Components.Toast.Style.Info, new ErrorHandling.UserFacingMessage("update-update-started"), priority: UI.Components.Toast.Priority.Important); Manager.ToastManager.Show(toast); ErrorHandling.ErrorHandler.WriteToLog(Manager.TranslationService.GetString("update-update-started"), ErrorHandling.LogLevel.Info); var updateTask = Task.Run(async () => { var success = await Update.Update.Run(ProductConstants.GetNumericVersion()); if (!success) { ErrorHandling.ErrorHandler.Handle(new ErrorHandling.UserFacingMessage("update-update-failed"), ErrorHandling.UserFacingErrorType.Toast, ErrorHandling.UserFacingSeverity.ShowError, ErrorHandling.LogLevel.Error); } Application.Current.Dispatcher.Invoke(() => { updateButton.IsEnabled = true; }); }); } } }
40.137931
230
0.638746
[ "MPL-2.0" ]
zx2c4-forks/guardian-vpn-windows
ui/src/UI/Views/UpdateView.xaml.cs
2,330
C#
// Copyright (c) Dolittle. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System; using System.Collections.Generic; using System.Linq; using System.Threading; using System.Threading.Tasks; using BenchmarkDotNet.Attributes; using Dolittle.Runtime.Artifacts; using Dolittle.Runtime.Events.Processing.Contracts; using Dolittle.Runtime.Events.Processing.Projections; using Dolittle.Runtime.Events.Store; using Dolittle.Runtime.Projections.Store.Definition; using Dolittle.Runtime.Projections.Store.Definition.Copies; using Dolittle.Runtime.Projections.Store.Definition.Copies.MongoDB; using Dolittle.Runtime.Projections.Store.State; using Dolittle.Runtime.Rudimentary; using Integration.Benchmarks.Events.Store; using Integration.Shared; using Microsoft.Extensions.DependencyInjection; using Moq; using ExecutionContext = Dolittle.Runtime.Execution.ExecutionContext; using ProjectionEventSelector = Dolittle.Runtime.Projections.Store.Definition.ProjectionEventSelector; using ReverseCallDispatcher = Dolittle.Runtime.Services.IReverseCallDispatcher< Dolittle.Runtime.Events.Processing.Contracts.ProjectionClientToRuntimeMessage, Dolittle.Runtime.Events.Processing.Contracts.ProjectionRuntimeToClientMessage, Dolittle.Runtime.Events.Processing.Contracts.ProjectionRegistrationRequest, Dolittle.Runtime.Events.Processing.Contracts.ProjectionRegistrationResponse, Dolittle.Runtime.Events.Processing.Contracts.ProjectionRequest, Dolittle.Runtime.Events.Processing.Contracts.ProjectionResponse>; namespace Integration.Benchmarks.Events.Processing.Projections; /// <summary> /// Benchmarks for Projections. /// </summary> public class Projection : JobBase { IEventStore _eventStore; IProjections _projections; ArtifactId[] _eventTypes; IEnumerable<IProjection> _projectionsToRun; Mock<ReverseCallDispatcher> _dispatcher; CancellationTokenSource _cancellationTokenSource; /// <inheritdoc /> protected override void Setup(IServiceProvider services) { _eventStore = services.GetRequiredService<IEventStore>(); _projections = services.GetRequiredService<IProjections>(); _eventTypes = Enumerable.Range(0, EventTypes).Select(_ => new ArtifactId(Guid.NewGuid())).ToArray(); var uncommittedEvents = new List<UncommittedEvent>(); foreach (var eventType in _eventTypes) { foreach (var _ in Enumerable.Range(0, Events)) { uncommittedEvents.Add(new UncommittedEvent("some event source", new Artifact(eventType, ArtifactGeneration.First), false, "{\"hello\": 42}")); } } foreach (var tenant in ConfiguredTenants) { _eventStore.Commit(new UncommittedEvents(uncommittedEvents), Runtime.CreateExecutionContextFor(tenant)).GetAwaiter().GetResult(); } } [IterationSetup] public void IterationSetup() { _cancellationTokenSource = new CancellationTokenSource(); var tcs = new TaskCompletionSource(TaskCreationOptions.RunContinuationsAsynchronously); var numEventsProcessed = 0; _dispatcher = new Mock<ReverseCallDispatcher>(); _dispatcher .Setup(_ => _.Reject(It.IsAny<ProjectionRegistrationResponse>(), It.IsAny<CancellationToken>())) .Returns(Task.CompletedTask); _dispatcher .Setup(_ => _.Accept(It.IsAny<ProjectionRegistrationResponse>(), It.IsAny<CancellationToken>())) .Returns(tcs.Task); _dispatcher .Setup(_ => _.Call(It.IsAny<ProjectionRequest>(), It.IsAny<Dolittle.Runtime.Execution.ExecutionContext>(), It.IsAny<CancellationToken>())) .Returns<ProjectionRequest, Dolittle.Runtime.Execution.ExecutionContext, CancellationToken>((request, _, __) => { Interlocked.Add(ref numEventsProcessed, 1); var response = new ProjectionResponse{Replace = new ProjectionReplaceResponse{State = request.CurrentState.State}}; if (numEventsProcessed == NumberEventsToProcess) { tcs.SetResult(); } return Task.FromResult(response); }); _projectionsToRun = Enumerable.Range(0, Projections).Select(_ => new Dolittle.Runtime.Events.Processing.Projections.Projection( _dispatcher.Object, new ProjectionDefinition( Guid.NewGuid(), ScopeId.Default, _eventTypes.Select(ProjectionEventSelector.EventSourceId), new ProjectionState("{\"hello\": 42}"), new ProjectionCopySpecification(CopyToMongoDBSpecification.Default)), "some alias", false)).ToArray(); } [IterationCleanup] public void IterationCleanup() { _cancellationTokenSource?.Dispose(); } /// <inheritdoc /> [Params(1, 2, 5)] // TODO: Adding 10 here results in really slow benchmarks. Let's adding 100 when we've made this blazingly fast :) public override int NumTenants { get; set; } /// <summary> /// Gets the number of simultaneously running event handlers. /// </summary> [Params(1, 2, 5)] // TODO: Adding 10 here results in really slow benchmarks. Let's adding 100 when we've made this blazingly fast :) public int Projections { get; set; } /// <summary> /// Gets the number of event types. /// </summary> // [Params(1, 10)] TODO: We can maybe enable this in the future, but as of now it seems that the performance depends on the amount of events processed. public int EventTypes { get; set; } = 1; /// <summary> /// Gets the number of events committed per configured event type. /// </summary> [Params(1, 10, 100)] public int Events { get; set; } int NumberEventsToProcess => Events * EventTypes * NumTenants * Projections; /// <summary> /// Commits the events one-by-one in a loop. /// </summary> [Benchmark] public async Task RegisteringAndProcessing() { var x = await Task.WhenAll(_projectionsToRun.Select(projection => _projections.Register( projection, Runtime.CreateExecutionContextFor("a2775100-bad1-4260-a97f-13ef9caf9720"), _cancellationTokenSource.Token))).ConfigureAwait(false); var dispatcherTask = _dispatcher.Object.Accept(new ProjectionRegistrationResponse(), CancellationToken.None); var tasks = x.Select(_ => _.Result.Start()).Append(dispatcherTask); var taskGroup = new TaskGroup(tasks); await taskGroup.WaitForAllCancellingOnFirst(_cancellationTokenSource); foreach (var projectionProcessor in x) { projectionProcessor.Result?.Dispose(); } } /// <inheritdoc /> protected override void Cleanup() { } }
42.680982
158
0.692827
[ "MIT" ]
dolittle-runtime/Runtime
Integration/Benchmarks/Events.Processing/Projections/Projection.cs
6,957
C#
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System.Diagnostics.CodeAnalysis; using System.Reflection; using Xunit; namespace System.Runtime.InteropServices.Tests { #pragma warning disable 0618 // CompareEventInfo is marked as Obsolete. public partial class ComAwareEventInfoTests { [Fact] public void Ctor_Type_EventName() { EventInfo expectedEvent = typeof(NonComObject).GetEvent(nameof(NonComObject.Event)); var attribute = new ComAwareEventInfo(typeof(NonComObject), nameof(NonComObject.Event)); Assert.Equal(expectedEvent.Attributes, attribute.Attributes); Assert.Equal(expectedEvent.DeclaringType, attribute.DeclaringType); Assert.Equal(expectedEvent.Name, attribute.Name); Assert.Equal(expectedEvent.ReflectedType, attribute.ReflectedType); Assert.Equal(expectedEvent.GetAddMethod(), attribute.GetAddMethod()); Assert.Equal(expectedEvent.GetRaiseMethod(), attribute.GetRaiseMethod()); Assert.Equal(expectedEvent.GetRemoveMethod(), attribute.GetRemoveMethod()); Assert.Equal(expectedEvent.GetCustomAttributes(typeof(ExcludeFromCodeCoverageAttribute), true), attribute.GetCustomAttributes(typeof(ExcludeFromCodeCoverageAttribute), true)); Assert.Equal(expectedEvent.GetCustomAttributes(true), attribute.GetCustomAttributes(true)); Assert.Equal(expectedEvent.IsDefined(typeof(ExcludeFromCodeCoverageAttribute)), attribute.IsDefined(typeof(ExcludeFromCodeCoverageAttribute))); } [Fact] public void Ctor_NullType_ThrowsNullReferenceException() { Assert.Throws<NullReferenceException>(() => new ComAwareEventInfo(null, "EventName")); } [Fact] public void Ctor_NullEventName_ThrowsArgumentNullException() { AssertExtensions.Throws<ArgumentNullException>(null, () => new ComAwareEventInfo(typeof(NonComObject), null)); } [Fact] public void Properties_NoSuchEvent_ThrowsNullReferenceException() { var attribute = new ComAwareEventInfo(typeof(NonComObject), string.Empty); Assert.Throws<NullReferenceException>(() => attribute.Attributes); Assert.Throws<NullReferenceException>(() => attribute.DeclaringType); Assert.Throws<NullReferenceException>(() => attribute.Name); Assert.Throws<NullReferenceException>(() => attribute.ReflectedType); } [Fact] public void Methods_NoSuchEvent_ThrowsNullReferenceException() { var attribute = new ComAwareEventInfo(typeof(NonComObject), string.Empty); Assert.Throws<NullReferenceException>(() => attribute.AddEventHandler(new object(), new EventHandler(EventHandler))); Assert.Throws<NullReferenceException>(() => attribute.RemoveEventHandler(new object(), new EventHandler(EventHandler))); Assert.Throws<NullReferenceException>(() => attribute.GetAddMethod(false)); Assert.Throws<NullReferenceException>(() => attribute.GetRaiseMethod(false)); Assert.Throws<NullReferenceException>(() => attribute.GetRemoveMethod(false)); Assert.Throws<NullReferenceException>(() => attribute.GetCustomAttributes(typeof(ComVisibleAttribute), false)); Assert.Throws<NullReferenceException>(() => attribute.GetCustomAttributes(false)); Assert.Throws<NullReferenceException>(() => attribute.IsDefined(typeof(ComVisibleAttribute), false)); } [Fact] public void AddEventHandler_NonCom_Success() { var attribute = new ComAwareEventInfo(typeof(NonComObject), nameof(NonComObject.Event)); var target = new NonComObject(); Delegate handler = new EventHandler(EventHandler); attribute.AddEventHandler(target, handler); target.Raise(1); Assert.True(CalledEventHandler); CalledEventHandler = false; attribute.RemoveEventHandler(target, handler); Assert.False(CalledEventHandler); } [Fact] public void AddEventHandler_NullTarget_ThrowsArgumentNullException() { var attribute = new ComAwareEventInfo(typeof(NonComObject), nameof(NonComObject.Event)); AssertExtensions.Throws<ArgumentNullException>("o", () => attribute.AddEventHandler(null, new EventHandler(EventHandler))); } public bool CalledEventHandler { get; set; } private void EventHandler(object sender, EventArgs e) { Assert.False(CalledEventHandler); CalledEventHandler = true; Assert.Equal(1, sender); Assert.Null(e); } internal class NonComObject { [ExcludeFromCodeCoverage] public event EventHandler Event; public void Raise(object sender) => Event.Invoke(1, null); } } #pragma warning restore 0618 }
45.587719
187
0.680393
[ "MIT" ]
1shekhar/runtime
src/libraries/System.Runtime.InteropServices/tests/System/Runtime/InteropServices/ComAwareEventInfoTests.cs
5,197
C#
using Microsoft.EntityFrameworkCore.Migrations; namespace dataaccess.Migrations { public partial class InitialCreate : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.EnsureSchema( name: "ecom"); migrationBuilder.CreateTable( name: "Product", schema: "ecom", columns: table => new { Id = table.Column<int>(type: "int", nullable: false) .Annotation("SqlServer:Identity", "1, 1"), Name = table.Column<string>(type: "nvarchar(200)", nullable: false), Price = table.Column<int>(type: "int", nullable: false) }, constraints: table => { table.PrimaryKey("PK_Product", x => x.Id); }); migrationBuilder.InsertData( schema: "ecom", table: "Product", columns: new[] { "Id", "Name", "Price" }, values: new object[] { 1, "Bread", 2 }); migrationBuilder.InsertData( schema: "ecom", table: "Product", columns: new[] { "Id", "Name", "Price" }, values: new object[] { 2, "Choclate", 5 }); } protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "Product", schema: "ecom"); } } }
33.083333
88
0.473552
[ "Apache-2.0" ]
nisal-wickramage/docker-compose-with-dotnet-api-angular-sql
src/dataaccess/Migrations/20201114155449_InitialCreate.cs
1,590
C#
using Microsoft.EntityFrameworkCore; using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations.Schema; using PlutoData.Models; namespace apisample { public class BloggingContext : DbContext { public BloggingContext(DbContextOptions<BloggingContext> options) : base(options) { } public DbSet<Blog> Blogs { get; set; } public DbSet<Post> Posts { get; set; } protected override void OnModelCreating(ModelBuilder modelBuilder) { } } #region entitys [Table("Blogs")] public class Blog:BaseEntity<int> { public string Url { get; set; } public string Title { get; set; } public int Sort { get; set; } public List<Post> Posts { get; set; } } [Table("Posts")] public class Post:BaseEntity<int> { public int Id { get; set; } public string Title { get; set; } public string Content { get; set; } public List<Comment> Comments { get; set; } } public class Comment:BaseEntity<int> { public int Id { get; set; } public string Title { get; set; } public string Content { get; set; } } #endregion }
21.706897
74
0.597299
[ "MIT" ]
pluto-arch/efcore-unitofwork-and-repository
PlutoData-efcore/apisample/BloggingContext.cs
1,261
C#
using System; using System.Reflection; using System.Runtime.InteropServices; using System.Runtime.CompilerServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("AWSSDK.SecurityHub")] #if BCL35 [assembly: AssemblyDescription("The Amazon Web Services SDK for .NET (3.5) - AWS SecurityHub. AWS Security Hub provides you with a comprehensive view of your security state within AWS and your compliance with the security industry standards and best practices. Security Hub collects security data from across AWS accounts, services, and supported third-party partners and helps you analyze your security trends and identify the highest priority security issues.")] #elif BCL45 [assembly: AssemblyDescription("The Amazon Web Services SDK for .NET (4.5) - AWS SecurityHub. AWS Security Hub provides you with a comprehensive view of your security state within AWS and your compliance with the security industry standards and best practices. Security Hub collects security data from across AWS accounts, services, and supported third-party partners and helps you analyze your security trends and identify the highest priority security issues.")] #elif NETSTANDARD13 [assembly: AssemblyDescription("The Amazon Web Services SDK for .NET (NetStandard 1.3) - AWS SecurityHub. AWS Security Hub provides you with a comprehensive view of your security state within AWS and your compliance with the security industry standards and best practices. Security Hub collects security data from across AWS accounts, services, and supported third-party partners and helps you analyze your security trends and identify the highest priority security issues.")] #elif NETSTANDARD20 [assembly: AssemblyDescription("The Amazon Web Services SDK for .NET (NetStandard 2.0) - AWS SecurityHub. AWS Security Hub provides you with a comprehensive view of your security state within AWS and your compliance with the security industry standards and best practices. Security Hub collects security data from across AWS accounts, services, and supported third-party partners and helps you analyze your security trends and identify the highest priority security issues.")] #elif NETCOREAPP3_1 [assembly: AssemblyDescription("The Amazon Web Services SDK for .NET (.NET Core 3.1) - AWS SecurityHub. AWS Security Hub provides you with a comprehensive view of your security state within AWS and your compliance with the security industry standards and best practices. Security Hub collects security data from across AWS accounts, services, and supported third-party partners and helps you analyze your security trends and identify the highest priority security issues.")] #else #error Unknown platform constant - unable to set correct AssemblyDescription #endif [assembly: AssemblyConfiguration("")] [assembly: AssemblyProduct("Amazon Web Services SDK for .NET")] [assembly: AssemblyCompany("Amazon.com, Inc")] [assembly: AssemblyCopyright("Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] // Setting ComVisible to false makes the types in this assembly not visible // to COM components. If you need to access a type in this assembly from // COM, set the ComVisible attribute to true on that type. [assembly: ComVisible(false)] // Version information for an assembly consists of the following four values: // // Major Version // Minor Version // Build Number // Revision // // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] [assembly: AssemblyVersion("3.3")] [assembly: AssemblyFileVersion("3.5.2.6")] [assembly: System.CLSCompliant(true)] #if BCL [assembly: System.Security.AllowPartiallyTrustedCallers] #endif
74.716981
476
0.795455
[ "Apache-2.0" ]
augustoproiete-forks/aws--aws-sdk-net
sdk/src/Services/SecurityHub/Properties/AssemblyInfo.cs
3,960
C#
// Copyright (C) 2015 Google, Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. using System; using System.Reflection; using GoogleMobileAds.Api; using UnityEngine; namespace GoogleMobileAds.Common { public class DummyClient : IBannerClient, IInterstitialClient, IRewardBasedVideoAdClient, IAdLoaderClient, IMobileAdsClient { public DummyClient() { Debug.Log("Dummy " + MethodBase.GetCurrentMethod().Name); } // Disable warnings for unused dummy ad events. #pragma warning disable 67 public event EventHandler<EventArgs> OnAdLoaded; public event EventHandler<AdFailedToLoadEventArgs> OnAdFailedToLoad; public event EventHandler<EventArgs> OnAdOpening; public event EventHandler<EventArgs> OnAdStarted; public event EventHandler<EventArgs> OnAdClosed; public event EventHandler<Reward> OnAdRewarded; public event EventHandler<EventArgs> OnAdLeavingApplication; public event EventHandler<EventArgs> OnAdCompleted; public event EventHandler<AdValueEventArgs> OnPaidEvent; public event EventHandler<CustomNativeClientEventArgs> OnCustomNativeTemplateAdLoaded; public event EventHandler<CustomNativeClientEventArgs> OnCustomNativeTemplateAdClicked; #pragma warning restore 67 public string UserId { get { Debug.Log("Dummy " + MethodBase.GetCurrentMethod().Name); return "UserId"; } set { Debug.Log("Dummy " + MethodBase.GetCurrentMethod().Name); } } public void Initialize(string appId) { Debug.Log("Dummy " + MethodBase.GetCurrentMethod().Name); } public void Initialize(Action<IInitializationStatusClient> initCompleteAction) { Debug.Log("Dummy " + MethodBase.GetCurrentMethod().Name); initCompleteAction(null); } public void SetApplicationMuted(bool muted) { Debug.Log("Dummy " + MethodBase.GetCurrentMethod().Name); } public void SetApplicationVolume(float volume) { Debug.Log("Dummy " + MethodBase.GetCurrentMethod().Name); } public void SetiOSAppPauseOnBackground(bool pause) { Debug.Log("Dummy " + MethodBase.GetCurrentMethod().Name); } public float GetDeviceScale() { Debug.Log("Dummy " + MethodBase.GetCurrentMethod().Name); return 0; } public int GetDeviceSafeWidth() { Debug.Log("Dummy " + MethodBase.GetCurrentMethod().Name); return 0; } public void CreateBannerView(string adUnitId, AdSize adSize, AdPosition position) { Debug.Log("Dummy " + MethodBase.GetCurrentMethod().Name); } public void CreateBannerView(string adUnitId, AdSize adSize, int positionX, int positionY) { Debug.Log("Dummy " + MethodBase.GetCurrentMethod().Name); } public void LoadAd(AdRequest request) { Debug.Log("Dummy " + MethodBase.GetCurrentMethod().Name); } public void ShowBannerView() { Debug.Log("Dummy " + MethodBase.GetCurrentMethod().Name); } public void HideBannerView() { Debug.Log("Dummy " + MethodBase.GetCurrentMethod().Name); } public void DestroyBannerView() { Debug.Log("Dummy " + MethodBase.GetCurrentMethod().Name); } public float GetHeightInPixels() { Debug.Log("Dummy " + MethodBase.GetCurrentMethod().Name); return 0; } public float GetWidthInPixels() { Debug.Log("Dummy " + MethodBase.GetCurrentMethod().Name); return 0; } public void SetPosition(AdPosition adPosition) { Debug.Log("Dummy " + MethodBase.GetCurrentMethod().Name); } public void SetPosition(int x, int y) { Debug.Log("Dummy " + MethodBase.GetCurrentMethod().Name); } public void CreateInterstitialAd(string adUnitId) { Debug.Log("Dummy " + MethodBase.GetCurrentMethod().Name); } public bool IsLoaded() { Debug.Log("Dummy " + MethodBase.GetCurrentMethod().Name); return true; } public void ShowInterstitial() { Debug.Log("Dummy " + MethodBase.GetCurrentMethod().Name); } public void DestroyInterstitial() { Debug.Log("Dummy " + MethodBase.GetCurrentMethod().Name); } public void CreateRewardBasedVideoAd() { Debug.Log("Dummy " + MethodBase.GetCurrentMethod().Name); } public void SetUserId(string userId) { Debug.Log("Dummy " + MethodBase.GetCurrentMethod().Name); } public void LoadAd(AdRequest request, string adUnitId) { Debug.Log("Dummy " + MethodBase.GetCurrentMethod().Name); } public void DestroyRewardBasedVideoAd() { Debug.Log("Dummy " + MethodBase.GetCurrentMethod().Name); } public void ShowRewardBasedVideoAd() { Debug.Log("Dummy " + MethodBase.GetCurrentMethod().Name); } public void CreateAdLoader(AdLoader.Builder builder) { Debug.Log("Dummy " + MethodBase.GetCurrentMethod().Name); } public void Load(AdRequest request) { Debug.Log("Dummy " + MethodBase.GetCurrentMethod().Name); } public void SetAdSize(AdSize adSize) { Debug.Log("Dummy " + MethodBase.GetCurrentMethod().Name); } public string MediationAdapterClassName() { Debug.Log("Dummy " + MethodBase.GetCurrentMethod().Name); return null; } } }
28.747826
98
0.59755
[ "Apache-2.0" ]
dirtyarteaga/googleads-mobile-unity
source/plugin/Assets/GoogleMobileAds/Common/DummyClient.cs
6,612
C#
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; using System.Data.SqlClient; using AgileProject.DAO; namespace AgileProject.Forms { public partial class LoginWindow : Form { public LoginWindow() { InitializeComponent(); } private void LoginWindow_Load(object sender, EventArgs e) { this.CenterToScreen(); lblSignUp.MouseEnter += (s, args) => lblSignUp.Font = new Font(lblSignUp.Font.Name, lblSignUp.Font.SizeInPoints, FontStyle.Underline); lblSignUp.MouseLeave += (s, args) => lblSignUp.Font = new Font(lblSignUp.Font.Name, lblSignUp.Font.SizeInPoints, FontStyle.Regular); lblForgotPw.MouseEnter += (s, args) => lblForgotPw.Font = new Font(lblForgotPw.Font.Name, lblForgotPw.Font.SizeInPoints, FontStyle.Underline); lblForgotPw.MouseLeave += (s, args) => lblForgotPw.Font = new Font(lblForgotPw.Font.Name, lblForgotPw.Font.SizeInPoints, FontStyle.Regular); } private void btnLogin_Click(object sender, EventArgs e) { UserDAO userDAO = new UserDAO(); if(userDAO.Authentication(tbEmail.Text, tbPassword.Text)) { this.Hide(); MainWindow mainWindow = new MainWindow(userDAO.GetID(tbEmail.Text, tbPassword.Text)); mainWindow.FormClosed += (s, args) => this.Close(); mainWindow.Show(); } else { MessageBox.Show("Incorrect email or password"); } } private void lblSignUp_Click(object sender, EventArgs e) { this.Hide(); RegistrationWindow registrationWindow = new RegistrationWindow(); registrationWindow.FormClosed += (s, args) => this.Close(); registrationWindow.Show(); } private void lblForgotPw_Click(object sender, EventArgs e) { ForgotPasswordWindow forgotPasswordWindow = new ForgotPasswordWindow(); forgotPasswordWindow.ShowDialog(); } private void enter_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.Enter) this.btnLogin_Click(null, EventArgs.Empty); } } }
35.911765
154
0.62285
[ "MIT" ]
NYCCT-CST4708-SPRING20/AgileProject
AgileProject/Forms/LoginWindow.cs
2,444
C#
/* * Created by SharpDevelop. * User: Keane * Date: 7/9/2017 * Time: 8:44 PM * * To change this template use Tools | Options | Coding | Edit Standard Headers. */ using System; using System.Windows.Forms; namespace kompare { /// <summary> /// Class with program entry point. /// </summary> internal sealed class Program { /// <summary> /// Program entry point. /// </summary> [STAThread] private static void Main(string[] args) { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.Run(new MainForm()); } } }
18.6875
80
0.667224
[ "MIT" ]
keanemcgough/Kompare
kompare/Program.cs
600
C#
// // Copyright (c) 2004-2011 Jaroslaw Kowalski <jaak@jkowalski.net> // // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions // are met: // // * Redistributions of source code must retain the above copyright notice, // this list of conditions and the following disclaimer. // // * Redistributions in binary form must reproduce the above copyright notice, // this list of conditions and the following disclaimer in the documentation // and/or other materials provided with the distribution. // // * Neither the name of Jaroslaw Kowalski nor the names of its // contributors may be used to endorse or promote products derived from this // software without specific prior written permission. // // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" // AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE // ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE // LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF // THE POSSIBILITY OF SUCH DAMAGE. // namespace NLog.Layouts { /// <summary> /// Specifies CSV quoting modes. /// </summary> public enum CsvQuotingMode { /// <summary> /// Quote all column. /// </summary> All, /// <summary> /// Quote nothing. /// </summary> Nothing, /// <summary> /// Quote only whose values contain the quote symbol or /// the separator. /// </summary> Auto } }
36.258621
78
0.689491
[ "BSD-3-Clause" ]
BrandonLegault/NLog
src/NLog/Layouts/CsvQuotingMode.cs
2,103
C#
using System; using System.Net.Http; using System.Text; using System.Threading; using System.Threading.Tasks; namespace Microsoft.DecisionService.Logging { public class EventHubSendClient : IDisposable { private readonly string path; private HttpClient httpClient; public EventHubSendClient(string connectionString) { this.Connection = EventHubConnection.FromConnectionString(connectionString); this.SasTokenProvider = new SasTokenProvider($"https://{this.Connection.Hostname}/{this.Connection.EntityPath}", this.Connection.SasKeyName, this.Connection.SasKey); this.SasTokenProvider.RegenerateToken(); this.httpClient = new HttpClient() { BaseAddress = new Uri($"https://{this.Connection.Hostname}") }; this.httpClient.DefaultRequestHeaders.Authorization = this.SasTokenProvider.ToHeaderValue(); this.path = $"{this.Connection.EntityPath}/messages?timeout=60"; } private EventHubConnection Connection { get; set; } private SasTokenProvider SasTokenProvider { get; set; } private void EnsureValidToken() { if (this.SasTokenProvider.IsExpired) { this.SasTokenProvider.RegenerateToken(); this.httpClient.DefaultRequestHeaders.Authorization = this.SasTokenProvider.ToHeaderValue(); } } private int NumberOfRetries { get; set; } = 5; public async Task SendAsync(string body, CancellationToken cancellationToken = default(CancellationToken)) { HttpResponseMessage response = null; for (int i = 0; i < this.NumberOfRetries; i++) { this.EnsureValidToken(); var content = new StringContent(body, Encoding.UTF8); content.Headers.TryAddWithoutValidation("Content-Type", "application/atom+xml;type=entry;charset=utf-8"); response = await this.httpClient.PostAsync( this.path, content, cancellationToken) .ConfigureAwait(false); if (response.StatusCode == System.Net.HttpStatusCode.Created) return; // exponential backoff await Task.Delay(TimeSpan.FromSeconds(Math.Pow(2, i))); } throw new Exception($"Unable to send to EventHub. Status Code: {response?.StatusCode}: {response?.ReasonPhrase}"); } public void Dispose() { this.httpClient?.Dispose(); this.httpClient = null; } } }
32.811765
177
0.5891
[ "BSD-3-Clause" ]
eisber/vowpal_wabbit
decision_service/logging/http/csharp/EventHubClient.cs
2,789
C#
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // Runtime Version:4.0.30319.42000 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> //------------------------------------------------------------------------------ namespace Honibus.Properties { using System; /// <summary> /// A strongly-typed resource class, for looking up localized strings, etc. /// </summary> // This class was auto-generated by the StronglyTypedResourceBuilder // class via a tool like ResGen or Visual Studio. // To add or remove a member, edit your .ResX file then rerun ResGen // with the /str option, or rebuild your VS project. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] internal class Resources { private static global::System.Resources.ResourceManager resourceMan; private static global::System.Globalization.CultureInfo resourceCulture; [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] internal Resources() { } /// <summary> /// Returns the cached ResourceManager instance used by this class. /// </summary> [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] internal static global::System.Resources.ResourceManager ResourceManager { get { if (object.ReferenceEquals(resourceMan, null)) { global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Honibus.Properties.Resources", typeof(Resources).Assembly); resourceMan = temp; } return resourceMan; } } /// <summary> /// Overrides the current thread's CurrentUICulture property for all /// resource lookups using this strongly typed resource class. /// </summary> [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] internal static global::System.Globalization.CultureInfo Culture { get { return resourceCulture; } set { resourceCulture = value; } } /// <summary> /// Looks up a localized resource of type System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap Tcc_2 { get { object obj = ResourceManager.GetObject("Tcc 2", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Looks up a localized resource of type System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap Tcc_21 { get { object obj = ResourceManager.GetObject("Tcc 21", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } } }
41.702381
173
0.591493
[ "MIT" ]
RenilsonSantana/TCC_Honibus
Honibus/Honibus2/Honibus/Honibus/Properties/Resources.Designer.cs
3,505
C#
using System; using System.Collections; using System.Globalization; using System.Linq.Expressions; using System.Reflection; namespace Ploeh.AutoFixture.Kernel { /// <summary> /// Encapsulates a command that binds a property or a field to a value. /// </summary> /// <typeparam name="T"> /// The type of the specimn on which the property or value will be set. /// </typeparam> /// <typeparam name="TProperty">The type of property or field.</typeparam> #pragma warning disable 618 public class BindingCommand<T, TProperty> : ISpecifiedSpecimenCommand<T>, ISpecimenCommand #pragma warning restore 618 { private readonly MemberInfo member; private readonly Func<ISpecimenContext, TProperty> createBindingValue; /// <summary> /// Initializes a new instance of the <see cref="BindingCommand{T, TProperty}"/> class with /// the supplied property picker expression. /// </summary> /// <param name="propertyPicker">An expression that identifies a property or field.</param> /// <remarks> /// <para> /// This constructor implies that an anonymous value will be assigned to the property or /// field identified by <paramref name="propertyPicker"/>. /// </para> /// </remarks> public BindingCommand(Expression<Func<T, TProperty>> propertyPicker) { if (propertyPicker == null) { throw new ArgumentNullException("propertyPicker"); } this.member = propertyPicker.GetWritableMember().Member; this.createBindingValue = this.CreateAnonymousValue; } /// <summary> /// Initializes a new instance of the <see cref="BindingCommand{T, TProperty}"/> class with /// the supplied property picker expression and the value to be assigned to that property /// or field. /// </summary> /// <param name="propertyPicker">An expression that identifies a property or field.</param> /// <param name="propertyValue"> /// The value to assign to the property or field identified by /// <paramref name="propertyPicker"/>. /// </param> public BindingCommand(Expression<Func<T, TProperty>> propertyPicker, TProperty propertyValue) { if (propertyPicker == null) { throw new ArgumentNullException("propertyPicker"); } this.member = propertyPicker.GetWritableMember().Member; this.createBindingValue = c => propertyValue; } /// <summary> /// Initializes a new instance of the <see cref="BindingCommand{T, TProperty}"/> class with /// the supplied property picker expression and a function that creates a value to be /// assigned to that property or field. /// </summary> /// <param name="propertyPicker">An expression that identifies a property or field.</param> /// <param name="valueCreator"> /// A function that creates a value that will be assigned to the property or field /// identified by <paramref name="propertyPicker"/>. /// </param> public BindingCommand(Expression<Func<T, TProperty>> propertyPicker, Func<TProperty> valueCreator) { if (propertyPicker == null) { throw new ArgumentNullException("propertyPicker"); } if (valueCreator == null) { throw new ArgumentNullException("valueCreator"); } this.member = propertyPicker.GetWritableMember().Member; this.createBindingValue = c => valueCreator(); } /// <summary> /// Initializes a new instance of the <see cref="BindingCommand{T, TProperty}"/> class with /// the supplied property picker expression and a function that creates a value to be /// assigned to that property or field. /// </summary> /// <param name="propertyPicker">An expression that identifies a property or field.</param> /// <param name="valueCreator"> /// A function that creates a value that will be assigned to the property or field /// identified by <paramref name="propertyPicker"/>. /// </param> public BindingCommand(Expression<Func<T, TProperty>> propertyPicker, Func<ISpecimenContext, TProperty> valueCreator) { if (propertyPicker == null) { throw new ArgumentNullException("propertyPicker"); } if (valueCreator == null) { throw new ArgumentNullException("valueCreator"); } this.member = propertyPicker.GetWritableMember().Member; this.createBindingValue = valueCreator; } /// <summary> /// Gets the member identified by the expression supplied through the constructor. /// </summary> public MemberInfo Member { get { return this.member; } } /// <summary> /// Gets the function that creates a value to be assigned to the property or field /// identified by <see cref="Member"/>. /// </summary> public Func<ISpecimenContext, TProperty> ValueCreator { get { return this.createBindingValue; } } /// <summary> /// Executes the command on the supplied specimen by assigning the property of field the /// correct value. /// </summary> /// <param name="specimen"> /// A specimen that should have its property or field assigned. /// </param> /// <param name="context"> /// An <see cref="ISpecimenContext"/> which can supply an anonymous value for the /// property or field. /// </param> /// <remarks> /// <para> /// This method assigns a value to the property or field identified by the expression /// supplied to the class' constructor. If no value (or creator) was supplied to the /// constructor, <paramref name="context"/> will be used to create the value. /// </para> /// </remarks> public void Execute(T specimen, ISpecimenContext context) { if (specimen == null) { throw new ArgumentNullException("specimen"); } if (context == null) { throw new ArgumentNullException("context"); } var bindingValue = this.createBindingValue(context); var pi = this.member as PropertyInfo; if (pi != null) { pi.SetValue(specimen, bindingValue, null); } var fi = this.member as FieldInfo; if (fi != null) { fi.SetValue(specimen, bindingValue); } } /// <summary> /// Evaluates whether a request matches the property or field affected by this command. /// </summary> /// <param name="request">The specimen request.</param> /// <returns> /// <see langword="true"/> if <paramref name="request"/> is a <see cref="PropertyInfo"/> /// or <see cref="FieldInfo"/> that identifies the property or field affected by this /// <see cref="BindingCommand{T, TProperty}"/>; otherwise, <see langword="false"/>. /// </returns> public bool IsSatisfiedBy(object request) { if (request == null) { throw new ArgumentNullException("request"); } IEqualityComparer comparer = new MemberInfoEqualityComparer(); return comparer.Equals(this.member, request); } private TProperty CreateAnonymousValue(ISpecimenContext container) { var bindingValue = container.Resolve(this.member); if ((bindingValue != null) && !(bindingValue is TProperty)) { throw new InvalidOperationException(string.Format(CultureInfo.CurrentCulture, "The specimen created for assignment is not compatible with {0}.", typeof(TProperty))); } return (TProperty)bindingValue; } /// <summary> /// Executes the command on the supplied specimen by assigning the /// property of field the correct value. /// </summary> /// <param name="specimen"> /// A specimen that should have its property or field assigned. /// </param> /// <param name="context"> /// An <see cref="ISpecimenContext"/> which can supply an anonymous /// value for the property or field. /// </param> /// <remarks> /// <para> /// This method assigns a value to the property or field identified by /// the expression supplied to the class' constructor. If no value (or /// creator) was supplied to the constructor, /// <paramref name="context" /> will be used to create the value. /// </para> /// </remarks> public void Execute(object specimen, ISpecimenContext context) { if (specimen == null) throw new ArgumentNullException("specimen"); if (context == null) throw new ArgumentNullException("context"); var bindingValue = this.createBindingValue(context); var pi = this.member as PropertyInfo; if (pi != null) pi.SetValue(specimen, bindingValue, null); var fi = this.member as FieldInfo; if (fi != null) fi.SetValue(specimen, bindingValue); } } }
40.813008
125
0.56743
[ "MIT" ]
amarant/AutoFixture
Src/AutoFixture/Kernel/BindingCommand.cs
10,042
C#
using System; using System.Threading; using System.Threading.Tasks; namespace AsyncDemo { class Program { async static Task Main() { for (int i = 0; i < 10; i += 1) { Console.WriteLine(i); await Task.Delay(1000); } } } }
13.421053
34
0.6
[ "MIT" ]
sedc-codecademy/skwd8-niwd1-wdel6
AsyncDemo/Program.cs
257
C#
using CyberCAT.Core.Classes.Mapping; using CyberCAT.Core.Classes.NodeRepresentations; namespace CyberCAT.Core.Classes.DumpedClasses { [RealName("SInventoryOperationData")] public class SInventoryOperationData : GenericUnknownStruct.BaseClassEntry { [RealName("itemName")] public TweakDbId ItemName { get; set; } [RealName("quantity")] public int Quantity { get; set; } [RealName("operationType")] public DumpedEnums.EItemOperationType? OperationType { get; set; } } }
29
78
0.676951
[ "MIT" ]
Deweh/CyberCAT
CyberCAT.Core/Classes/DumpedClasses/SInventoryOperationData.cs
551
C#
using System; using System.Collections.Generic; using System.Text; namespace P01.Stream_Progress { public class StreamProgressInfo { private IProgressable file; public StreamProgressInfo(IProgressable file) { this.file = file; } public int CalculateCurrentPercent() { return (this.file.BytesSent * 100) / this.file.Length; } } }
19.826087
67
0.570175
[ "MIT" ]
villdimova/CSharpOOP
Lab-Solid/P01.Stream_Progress_Refactored/StreamProgressInfo.cs
458
C#
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("MyCache")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("MyCache")] [assembly: AssemblyCopyright("Copyright © 2015")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] // Setting ComVisible to false makes the types in this assembly not visible // to COM components. If you need to access a type in this assembly from // COM, set the ComVisible attribute to true on that type. [assembly: ComVisible(false)] // The following GUID is for the ID of the typelib if this project is exposed to COM [assembly: Guid("666d08dc-018f-4b5b-ac64-48dc91089da3")] // Version information for an assembly consists of the following four values: // // Major Version // Minor Version // Build Number // Revision // // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] [assembly: AssemblyVersion("1.0.0.0")] [assembly: AssemblyFileVersion("1.0.0.0")]
37.486486
84
0.743331
[ "MIT" ]
MSDEVMTL/2015-11-10-EAP
MyCache/Properties/AssemblyInfo.cs
1,390
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ServerThreatment.Results { public class DCLoginResult { public bool IsSucceed { get; set; } public string RoomKey { get; set; } public string UserName { get; set; } } }
23.5
44
0.68997
[ "MIT" ]
NucleusDE/danmaku-chatting
danmaku-chating/ServerTheatment/Results/DCLoginResult.cs
331
C#
using System; using CefSharp; using Norma.Eta; namespace Norma.Models.Browser { // CefSharp Settings internal static class CefSetting { internal static void Init() { var settings = new CefSettings { CachePath = NormaConstants.CefCacheDir, MultiThreadedMessageLoop = true, WindowlessRenderingEnabled = true }; settings.CefCommandLineArgs.Add("disable-extensions", "1"); settings.CefCommandLineArgs.Add("disable-pdf-extension", "1"); settings.CefCommandLineArgs.Add("disable-surfaces", "1"); settings.CefCommandLineArgs.Add("disable-gpu", "1"); settings.CefCommandLineArgs.Add("disable-gpu-compositing", "1"); settings.CefCommandLineArgs.Add("enable-begin-frame-scheduling", "1"); settings.CefCommandLineArgs.Add("enable-webrtc-hw-h264-encoding", "1"); settings.CefCommandLineArgs.Add("enable-webrtc-hw-h264-decoding", "1"); Cef.OnContextInitialized = () => { var cookieManager = Cef.GetGlobalCookieManager(); cookieManager.SetStoragePath(NormaConstants.CefCookiesDir, true); }; if (!Cef.Initialize(settings, true, false)) throw new Exception("Unable to Initialize Chromium Embedded Framework"); } } }
36.435897
88
0.606615
[ "MIT" ]
mika-f/Norma
Source/Norma/Models/Browser/CefSetting.cs
1,423
C#
using Playnite.Common; using Playnite.Plugins; using Playnite.SDK; using Playnite.SDK.Plugins; using Playnite.Services; using Playnite.Windows; using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; using System.Windows.Controls; namespace Playnite.DesktopApp.ViewModels { public partial class AddonsViewModel : Playnite.ViewModels.AddonsViewModelBase { private enum View : int { InstalledLibraries = 0, InstalledMetadata = 1, InstalledGeneric = 2, InstalledThemesDesktop = 3, InstalledThemesFullscreen = 4, BrowseLibraries = 5, BrowseMetadata = 6, BrowseGeneric = 7, BrowseThemesDesktop = 8, BrowseThemesFullscreen = 9, Updates = 10, None = 99 } private static ILogger logger = LogManager.GetLogger(); private IWindowFactory window; private IPlayniteAPI api; private ServicesClient serviceClient; private PlayniteSettings settings; private Dictionary<View, UserControl> sectionViews; private PlayniteApplication application; private bool closingHanled = false; private Dictionary<Guid, PluginSettingsItem> loadedPluginSettings = new Dictionary<Guid, PluginSettingsItem>(); public ExtensionFactory Extensions { get; set; } private UserControl selectedSectionView; public UserControl SelectedSectionView { get => selectedSectionView; set { selectedSectionView = value; OnPropertyChanged(); } } public List<LoadedPlugin> GenericPlugins { get; private set; } public bool AnyGenericPluginSettings { get; private set; } public RelayCommand<InstalledPlugin> UninstallExtensionCommand { get => new RelayCommand<InstalledPlugin>((a) => { UninstallExtension(a); }); } public RelayCommand<ThemeManifest> UninstallThemeCommand { get => new RelayCommand<ThemeManifest>((a) => { UninstallTheme(a); }); } public RelayCommand<InstalledPlugin> OpenExtensionDataDirCommand { get => new RelayCommand<InstalledPlugin>((plugin) => { var extDir = string.Empty; if (plugin.Description.Type == ExtensionType.Script) { if (!plugin.Description.Id.IsNullOrEmpty()) { extDir = Path.Combine(PlaynitePaths.ExtensionsDataPath, Paths.GetSafePathName(plugin.Description.Id)); } } var p = Extensions.Plugins.Values.FirstOrDefault(a => a.Description.DirectoryPath == plugin.Description.DirectoryPath); if (p != null) { extDir = p.Plugin.GetPluginUserDataPath(); } if (!extDir.IsNullOrEmpty()) { try { FileSystem.CreateDirectory(extDir); Process.Start(extDir); } catch (Exception e) when (!PlayniteEnvironment.ThrowAllErrors) { logger.Error(e, $"Failed to open dir {extDir}."); } } }); } public RelayCommand<RoutedPropertyChangedEventArgs<object>> SectionChangedChangedCommand { get => new RelayCommand<RoutedPropertyChangedEventArgs<object>>((a) => { SectionChanged(a); }); } public RelayCommand<object> CancelCommand { get => new RelayCommand<object>((a) => { CancelClose(); }); } public RelayCommand<object> ConfirmCommand { get => new RelayCommand<object>((a) => { ConfirmDialog(); }); } public RelayCommand<object> WindowClosingCommand { get => new RelayCommand<object>((a) => { WindowClosing(); }); } public AddonsViewModel( IWindowFactory window, IPlayniteAPI api, IDialogsFactory dialogs, IResourceProvider resources, ServicesClient serviceClient, ExtensionFactory extensions, PlayniteSettings settings, PlayniteApplication application) : base(dialogs, resources) { Init( window, api, dialogs, resources, serviceClient, extensions, settings, application); CheckUpdates(); } public AddonsViewModel( IWindowFactory window, IPlayniteAPI api, IDialogsFactory dialogs, IResourceProvider resources, ServicesClient serviceClient, ExtensionFactory extensions, PlayniteSettings settings, PlayniteApplication application, List<AddonUpdate> addonUpdates) : base(dialogs, resources) { Init( window, api, dialogs, resources, serviceClient, extensions, settings, application); UpdateAddonList = addonUpdates; UpdateAddonCount = addonUpdates.Count; IsUpdateSectionSelected = true; SelectedSectionView = sectionViews[View.Updates]; } private void Init( IWindowFactory window, IPlayniteAPI api, IDialogsFactory dialogs, IResourceProvider resources, ServicesClient serviceClient, ExtensionFactory extensions, PlayniteSettings settings, PlayniteApplication application) { this.window = window; this.api = api; this.serviceClient = serviceClient; this.settings = settings; this.application = application; Extensions = extensions; sectionViews = new Dictionary<View, UserControl>() { { View.InstalledLibraries, new Controls.AddonsSections.InstalledExtensions() { DataContext = this } }, { View.InstalledMetadata, new Controls.AddonsSections.InstalledExtensions() { DataContext = this } }, { View.InstalledGeneric, new Controls.AddonsSections.InstalledExtensions() { DataContext = this } }, { View.InstalledThemesDesktop, new Controls.AddonsSections.InstalledThemes() { DataContext = this } }, { View.InstalledThemesFullscreen, new Controls.AddonsSections.InstalledThemes() { DataContext = this } }, { View.BrowseLibraries, new Controls.AddonsSections.BrowseAddons() { DataContext = this } }, { View.BrowseMetadata, new Controls.AddonsSections.BrowseAddons() { DataContext = this } }, { View.BrowseGeneric, new Controls.AddonsSections.BrowseAddons() { DataContext = this } }, { View.BrowseThemesDesktop, new Controls.AddonsSections.BrowseAddons() { DataContext = this } }, { View.BrowseThemesFullscreen, new Controls.AddonsSections.BrowseAddons() { DataContext = this } }, { View.Updates, new Controls.AddonsSections.AddonUpdates() { DataContext = this } }, { View.None, null }, }; var descriptions = ExtensionFactory.GetInstalledManifests(settings.DevelExtenions.Where(a => a.Selected == true).Select(a => a.Item).ToList()); LibraryPluginList = descriptions .Where(a => a.Type == ExtensionType.GameLibrary) .Select(a => new InstalledPlugin( settings.DisabledPlugins?.Contains(a.Id) != true, Extensions.Plugins.Values.FirstOrDefault(b => a.DescriptionPath == b.Description.DescriptionPath)?.Plugin, a, extensions.FailedExtensions.Any(ext => ext.manifest.DirectoryPath.Equals(a.DirectoryPath)))) .OrderBy(a => a.Description.Name) .ToList(); MetadataPluginList = descriptions .Where(a => a.Type == ExtensionType.MetadataProvider) .Select(a => new InstalledPlugin( settings.DisabledPlugins?.Contains(a.Id) != true, Extensions.Plugins.Values.FirstOrDefault(b => a.DescriptionPath == b.Description.DescriptionPath)?.Plugin, a, extensions.FailedExtensions.Any(ext => ext.manifest.DirectoryPath.Equals(a.DirectoryPath)))) .OrderBy(a => a.Description.Name) .ToList(); OtherPluginList = descriptions .Where(a => a.Type == ExtensionType.GenericPlugin || a.Type == ExtensionType.Script) .Select(a => new InstalledPlugin( settings.DisabledPlugins?.Contains(a.Id) != true, null, a, extensions.FailedExtensions.Any(ext => ext.manifest.DirectoryPath.Equals(a.DirectoryPath)))) .OrderBy(a => a.Description.Name) .ToList(); DesktopThemeList = ThemeManager.GetAvailableThemes(ApplicationMode.Desktop).OrderBy(a => a.Name).ToList(); FullscreenThemeList = ThemeManager.GetAvailableThemes(ApplicationMode.Fullscreen).OrderBy(a => a.Name).ToList(); GenericPlugins = Extensions.Plugins.Values.Where(a => a.Description.Type == ExtensionType.GenericPlugin && ((GenericPlugin)a.Plugin).Properties?.HasSettings == true).ToList(); AnyGenericPluginSettings = GenericPlugins.HasItems(); } public bool? OpenView() { return window.CreateAndOpenDialog(this); } private void SectionChanged(RoutedPropertyChangedEventArgs<object> selectedItem) { int viewIndex = -1; if (selectedItem.NewValue is Plugin plugin) { SelectedSectionView = PluginSettingsHelper.GetPluginSettingsView(plugin.Id, Extensions, loadedPluginSettings); return; } else if (selectedItem.NewValue is LoadedPlugin ldPlugin) { SelectedSectionView = PluginSettingsHelper.GetPluginSettingsView(ldPlugin.Plugin.Id, Extensions, loadedPluginSettings); return; } if (selectedItem.NewValue is TreeViewItem treeItem) { if (treeItem.Tag != null) { viewIndex = int.Parse(treeItem.Tag.ToString()); } } if (viewIndex == -1) { SelectedSectionView = null; return; } var view = (View)viewIndex; SelectedSectionView = sectionViews[view]; switch (view) { case View.BrowseLibraries: application.ShowAddonPerfNotice(); activeAddonSearchMode = AddonType.GameLibrary; AddonSearchText = string.Empty; SearchAddon(); break; case View.BrowseMetadata: application.ShowAddonPerfNotice(); activeAddonSearchMode = AddonType.MetadataProvider; AddonSearchText = string.Empty; SearchAddon(); break; case View.BrowseGeneric: application.ShowAddonPerfNotice(); activeAddonSearchMode = AddonType.Generic; AddonSearchText = string.Empty; SearchAddon(); break; case View.BrowseThemesDesktop: application.ShowAddonPerfNotice(); activeAddonSearchMode = AddonType.ThemeDesktop; AddonSearchText = string.Empty; SearchAddon(); break; case View.BrowseThemesFullscreen: application.ShowAddonPerfNotice(); activeAddonSearchMode = AddonType.ThemeFullscreen; AddonSearchText = string.Empty; SearchAddon(); break; case View.InstalledLibraries: ActiveInstalledExtensionsList = LibraryPluginList; break; case View.InstalledMetadata: ActiveInstalledExtensionsList = MetadataPluginList; break; case View.InstalledGeneric: ActiveInstalledExtensionsList = OtherPluginList; break; case View.InstalledThemesDesktop: ActiveInstalledThemeList = DesktopThemeList; break; case View.InstalledThemesFullscreen: ActiveInstalledThemeList = FullscreenThemeList; break; case View.Updates: CheckUpdates(); break; default: break; } } private void UninstallExtension(InstalledPlugin a) { if (dialogs.ShowMessage( LOC.ExtensionUninstallQuestion, string.Empty, MessageBoxButton.YesNo, MessageBoxImage.Question) == MessageBoxResult.Yes) { IsRestartRequired = true; ExtensionInstaller.QueueExtensionUninstall(a.Description.DirectoryPath); } } private void UninstallTheme(ThemeManifest a) { if (dialogs.ShowMessage( LOC.ThemeUninstallQuestion, string.Empty, MessageBoxButton.YesNo, MessageBoxImage.Question) == MessageBoxResult.Yes) { IsRestartRequired = true; ExtensionInstaller.QueueExtensionUninstall(a.DirectoryPath); } } internal void UpdateDisabledExtensions() { var disabledPlugs = LibraryPluginList.Where(a => !a.Selected)?.Select(a => a.Description.Id).ToList(); disabledPlugs.AddMissing(MetadataPluginList.Where(a => !a.Selected)?.Select(a => a.Description.Id).ToList()); disabledPlugs.AddMissing(OtherPluginList.Where(a => !a.Selected)?.Select(a => a.Description.Id).ToList()); if (settings.DisabledPlugins?.IsListEqual(disabledPlugs) != true) { IsRestartRequired = true; settings.DisabledPlugins = disabledPlugs; } } public void ConfirmDialog() { var verResult = PluginSettingsHelper.VerifyPluginSettings(loadedPluginSettings); if (!verResult.Item1) { dialogs.ShowErrorMessage(string.Join(Environment.NewLine, verResult.Item2), ""); return; } foreach (var plugin in loadedPluginSettings.Values) { plugin.Settings.EndEdit(); } UpdateDisabledExtensions(); if (IsRestartRequired) { if (dialogs.ShowMessage( LOC.SettingsRestartAskMessage, LOC.SettingsRestartTitle, MessageBoxButton.YesNo, MessageBoxImage.Question) == MessageBoxResult.Yes) { application.Restart(new CmdLineOptions() { SkipLibUpdate = true }); } } closingHanled = true; window.Close(true); } public void CancelClose() { foreach (var plugin in loadedPluginSettings.Values) { plugin.Settings.CancelEdit(); } closingHanled = true; window.Close(false); } public void WindowClosing() { if (!closingHanled) { foreach (var plugin in loadedPluginSettings.Values) { plugin.Settings.CancelEdit(); } } } } }
38.471239
188
0.52723
[ "MIT" ]
FenDIY/Worknite
source/Playnite.DesktopApp/ViewModels/AddonsViewModel.cs
17,391
C#
#pragma checksum "C:\Users\Dave\source\repos\CasuallyCoding\InterviewTasks\RockPaperScissors\RockPaperScissors.App\Views\_ViewImports.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "12856a20732f5bfd5ae9333d3401e00e00a285fe" // <auto-generated/> #pragma warning disable 1591 [assembly: global::Microsoft.AspNetCore.Razor.Hosting.RazorCompiledItemAttribute(typeof(AspNetCore.Views__ViewImports), @"mvc.1.0.view", @"/Views/_ViewImports.cshtml")] namespace AspNetCore { #line hidden using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.Rendering; using Microsoft.AspNetCore.Mvc.ViewFeatures; #nullable restore #line 1 "C:\Users\Dave\source\repos\CasuallyCoding\InterviewTasks\RockPaperScissors\RockPaperScissors.App\Views\_ViewImports.cshtml" using RockPaperScissors; #line default #line hidden #nullable disable #nullable restore #line 2 "C:\Users\Dave\source\repos\CasuallyCoding\InterviewTasks\RockPaperScissors\RockPaperScissors.App\Views\_ViewImports.cshtml" using RockPaperScissors.App.Models; #line default #line hidden #nullable disable [global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"12856a20732f5bfd5ae9333d3401e00e00a285fe", @"/Views/_ViewImports.cshtml")] public class Views__ViewImports : global::Microsoft.AspNetCore.Mvc.Razor.RazorPage<dynamic> { #pragma warning disable 1998 public async override global::System.Threading.Tasks.Task ExecuteAsync() { } #pragma warning restore 1998 [global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute] public global::Microsoft.AspNetCore.Mvc.ViewFeatures.IModelExpressionProvider ModelExpressionProvider { get; private set; } [global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute] public global::Microsoft.AspNetCore.Mvc.IUrlHelper Url { get; private set; } [global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute] public global::Microsoft.AspNetCore.Mvc.IViewComponentHelper Component { get; private set; } [global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute] public global::Microsoft.AspNetCore.Mvc.Rendering.IJsonHelper Json { get; private set; } [global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute] public global::Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper<dynamic> Html { get; private set; } } } #pragma warning restore 1591
51.54
225
0.776872
[ "MIT" ]
casuallycoding/RockPaperScissors
RockPaperScissors.App/obj/Debug/netcoreapp3.1/Razor/Views/_ViewImports.cshtml.g.cs
2,577
C#
using ComercioDigital.DTOs.Productos.Moda; using ComercioDigital.Model; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ComercioDigital.Servicio.DB.Productos { public static class DBCalzados { public static void CargarCalzadosDB(eCommerceEntitiesDB DBAccess) { foreach (var VARIABLE in DBAccess.Calzados) { GestionComercio.CargarlistaBD(MapCalzadosFromDBToDTO(VARIABLE)); } } public static Calzado MapCalzadosFromDBToDTO(Calzados CalzadoDB) { Calzado resul = new Calzado(CalzadoDB.Modas.Productos.Id, CalzadoDB.Modas.Productos.Nombre, CalzadoDB.Modas.Productos.Marca, CalzadoDB.Modas.Productos.Precio, GestionVendedores.BuscarPorId(CalzadoDB.Modas.Productos.IdVendedor), CalzadoDB.Modas.Productos.Descripcion, CalzadoDB.Modas.Productos.FechaPuestaVenta, CalzadoDB.Modas.Productos.CodigoDescuento, CalzadoDB.Modas.Productos.Stock, CalzadoDB.Modas.Color, CalzadoDB.Modas.Material, CalzadoDB.Modas.Sexo,(int)CalzadoDB.Talla,CalzadoDB.Tipo); return resul; } public static Calzados MapCalzadosFromDTOToDB(Calzado calzadoDTO) { Calzados resul = new Calzados(); if (resul.Modas == null) { resul.Modas = new Modas(); if (resul.Modas.Productos == null) { resul.Modas.Productos = new Model.Productos(); } } resul.Modas.Productos.Nombre = calzadoDTO.Nombre; resul.Modas.Productos.Precio = calzadoDTO.Precio; resul.Modas.Productos.Marca = calzadoDTO.Marca; resul.Modas.Productos.IdVendedor = calzadoDTO.Vendedor.IdVendedor; resul.Modas.Productos.Descripcion = calzadoDTO.Descripcion; resul.Modas.Productos.Valoracion = calzadoDTO.Valoracion; resul.Modas.Productos.FechaPuestaVenta = calzadoDTO.FechaPuestaVenta; resul.Modas.Productos.CodigoDescuento = calzadoDTO.CodigoDescuento; resul.Modas.Productos.Stock = calzadoDTO.Stock; resul.Modas.Color = calzadoDTO.Color; resul.Modas.Material = calzadoDTO.Material; resul.Modas.Sexo = calzadoDTO.Sexo; resul.Talla = calzadoDTO.Talla; resul.Tipo = calzadoDTO.Tipo; return resul; } public static void AnnadirCalzado(Calzado calzadoDTO) { Calzados nuevoCalzado = MapCalzadosFromDTOToDB(calzadoDTO); DBComerce.DBAccess.Calzados.Add(nuevoCalzado); DBComerce.DBAccess.Entry(nuevoCalzado).State = System.Data.Entity.EntityState.Added; DBComerce.DBAccess.SaveChanges(); } } }
38.44
157
0.651058
[ "MIT" ]
vgdobon/ComercioDigital
ComercioDigital/ComercioDigital/Servicio/DB/Productos/DBCalzados.cs
2,885
C#
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using Apartmant.Database.ApartmentDataSetTableAdapters; namespace Apartmant.UserInterface.Services { public partial class ChangeCheckOutUI : Form { public int CheckInID { get; set; } public ChangeCheckOutUI() { InitializeComponent(); } private void ChangeCheckOutUI_Load(object sender, EventArgs e) { this.checkInsTableAdapter.FillByID(this.apartmentDataSet.CheckIns, CheckInID); } private void btnChange_Click(object sender, EventArgs e) { if (dtpEndStay.MinDate.Subtract(dtpEndStay.Value).Days == 0) { DialogResult result = MessageBox.Show("คุณไม่ได้เปลี่ยนแปลงเวลาออก, คุณต้องเปลี่ยนแปลงอีกครั้งหรือไม่", "คุณไม่ได้เปลี่ยนแปลงเวลาออก", MessageBoxButtons.YesNo, MessageBoxIcon.Information); if (result.Equals(DialogResult.No)){ DialogResult = System.Windows.Forms.DialogResult.No; Console.WriteLine("No Change date."); } } checkInsTableAdapter.UpdateCheckInEndStay(dtpEndStay.Value, CheckInID); PaymentsTableAdapter paymentsTableAdapter = new PaymentsTableAdapter(); DateTime checkInDate = (DateTime)checkInsTableAdapter.GetMaxEndDate(CheckInID); DateTime paymentDate = (DateTime)paymentsTableAdapter.GetMaxEndDate(CheckInID); if(checkInDate.Subtract(paymentDate).Days > 0){ double roomAmount = checkInDate.Subtract(paymentDate).Days * Convert.ToDouble(checkInsTableAdapter.GetRoomPrice(CheckInID)); int paymentId = Convert.ToInt32(paymentsTableAdapter.GetMaxIDAsCheckInFromRoom(CheckInID)); if (paymentId > 0) { try { ServiceChargesTableAdapter serviceChargesTableAdapter = new ServiceChargesTableAdapter(); if (0 != Convert.ToDouble(serviceChargesTableAdapter.GetServiceAmount(CheckInID))) { paymentsTableAdapter.UpdateRoomAmount(roomAmount, paymentDate.ToString(), dtpEndStay.Value.ToString(), paymentId); paymentsTableAdapter.UpdateServiceAmount(paymentId, CheckInID); serviceChargesTableAdapter.UpdatePayID(paymentId, CheckInID); } else { paymentsTableAdapter.UpdateRoomAmount(roomAmount, paymentDate.ToString(), dtpEndStay.Value.ToString(), paymentId); } } catch (Exception ex) { Console.WriteLine(ex.ToString()); throw; } } else { ServiceChargesTableAdapter serviceChargesTableAdapter = new ServiceChargesTableAdapter(); double servicesAmount = Convert.ToDouble(serviceChargesTableAdapter.GetServiceAmount(CheckInID)); try { paymentsTableAdapter.Insert( CheckInID, paymentDate, dtpEndStay.Value, roomAmount, servicesAmount, servicesAmount + roomAmount, null, 0, null, null); int payId = Convert.ToInt32(paymentsTableAdapter.GetMaxID()); serviceChargesTableAdapter.UpdatePayID(payId, CheckInID); } catch (Exception ex) { Console.WriteLine(ex.ToString()); throw; } } } MessageBox.Show("การเปลี่ยนแปลงเสร็จสมบูรณ์"); DialogResult = System.Windows.Forms.DialogResult.Yes; } private void btnClose_Click(object sender, EventArgs e) { DialogResult = System.Windows.Forms.DialogResult.No; } } }
40.035398
204
0.538019
[ "MIT" ]
isman-usoh/apament-management-system
Apartmant/UserInterface/Services/ChangeCheckOutUI.cs
4,752
C#
using BeetleX.Buffers; using System; using System.Collections.Generic; using System.Text; namespace Infinispan.Hotrod.Core.Commands { public class GET<K, V> : CommandWithKey<K> { public GET(Marshaller<K> km, Marshaller<V> vm, K key) { Key = key; KeyMarshaller = km; ValueMarshaller = vm; NetworkReceive = OnReceive; } public Marshaller<V> ValueMarshaller; public V Value { get; set; } public override string Name => "GET"; public override Byte Code => 0x03; public override void OnExecute(CommandContext ctx) { base.OnExecute(ctx); } public override void Execute(CommandContext ctx, InfinispanClient client, PipeStream stream) { base.Execute(ctx, client, stream); Codec.writeArray(KeyMarshaller.marshall(Key), stream); stream.Flush(); } public override Result OnReceive(InfinispanRequest request, PipeStream stream) { if (request.ResponseStatus == Codec30.KEY_DOES_NOT_EXIST_STATUS) { return new Result { Status = ResultStatus.Completed, ResultType = ResultType.Null }; } Codec.readArray(stream, ref request.ras); Value = ValueMarshaller.unmarshall(request.ras.Result); return new Result { Status = ResultStatus.Completed, ResultType = ResultType.Object }; } } }
31.125
100
0.605087
[ "Apache-2.0" ]
infinispan/Infinispan.Hotrod.Core
src/InfinispanCommands/GET.cs
1,496
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO; using HyoutaUtils; namespace HyoutaTools.Gust.g1t { public class g1tTexture { public byte[] Data; public uint Width; public uint Height; public byte Mipmaps; public Textures.TextureFormat Format; uint BitPerPixel; public g1tTexture( Stream stream, EndianUtils.Endianness endian ) { Mipmaps = (byte)stream.ReadByte(); byte format = (byte)stream.ReadByte(); byte dimensions = (byte)stream.ReadByte(); byte unknown4 = (byte)stream.ReadByte(); byte unknown5 = (byte)stream.ReadByte(); byte unknown6 = (byte)stream.ReadByte(); byte unknown7 = (byte)stream.ReadByte(); byte unknown8 = (byte)stream.ReadByte(); if ( endian == EndianUtils.Endianness.LittleEndian ) { Mipmaps = Mipmaps.SwapEndian4Bits(); dimensions = dimensions.SwapEndian4Bits(); unknown4 = unknown4.SwapEndian4Bits(); unknown5 = unknown5.SwapEndian4Bits(); unknown6 = unknown6.SwapEndian4Bits(); unknown7 = unknown7.SwapEndian4Bits(); unknown8 = unknown8.SwapEndian4Bits(); } if ( unknown8 == 0x01 ) { stream.DiscardBytes( 0x0C ); } switch ( format ) { case 0x00: Format = Textures.TextureFormat.ABGR; BitPerPixel = 32; break; case 0x01: Format = Textures.TextureFormat.RGBA; BitPerPixel = 32; break; case 0x06: Format = Textures.TextureFormat.DXT1a; BitPerPixel = 4; break; case 0x08: Format = Textures.TextureFormat.DXT5; BitPerPixel = 8; break; case 0x12: Format = Textures.TextureFormat.DXT5; BitPerPixel = 8; break; // swizzled from vita case 0x5B: Format = Textures.TextureFormat.DXT5; BitPerPixel = 8; break; // unsure what the difference to 0x08 is default: throw new Exception( String.Format( "g1t: Unknown Format ({0:X2})", format ) ); } Width = (uint)( 1 << ( dimensions >> 4 ) ); Height = (uint)( 1 << ( dimensions & 0x0F ) ); uint highestMipmapSize = ( Width * Height * BitPerPixel ) / 8; long textureSize = highestMipmapSize; for ( int i = 0; i < Mipmaps - 1; ++i ) { textureSize += highestMipmapSize / ( 4 << ( i * 2 ) ); } Data = new byte[textureSize]; stream.Read( Data, 0, Data.Length ); } public long GetDataStart( int mipmapLevel ) { if ( mipmapLevel == 0 ) { return 0; } uint highestMipmapSize = ( Width * Height * BitPerPixel ) / 8; long textureSize = highestMipmapSize; for ( int i = 0; i < mipmapLevel - 1; ++i ) { textureSize += highestMipmapSize / ( 4 << ( i * 2 ) ); } return textureSize; } public long GetDataLength( int mipmapLevel ) { uint highestMipmapSize = ( Width * Height * BitPerPixel ) / 8; return highestMipmapSize / ( 1 << ( mipmapLevel * 2 ) ); } } public class g1t { public g1t( String filename ) { using ( Stream stream = new System.IO.FileStream( filename, FileMode.Open ) ) { if ( !LoadFile( stream ) ) { throw new Exception( "Loading g1t failed!" ); } } } public g1t( Stream stream ) { if ( !LoadFile( stream ) ) { throw new Exception( "Loading g1t failed!" ); } } public List<g1tTexture> Textures; public EndianUtils.Endianness Endian = EndianUtils.Endianness.BigEndian; private bool LoadFile( Stream stream ) { string magic = stream.ReadAscii( 4 ); switch ( magic ) { case "G1TG": Endian = EndianUtils.Endianness.BigEndian; break; case "GT1G": Endian = EndianUtils.Endianness.LittleEndian; break; default: throw new Exception( "Not a g1t file!" ); } uint version = stream.ReadUInt32().FromEndian( Endian ); switch ( version ) { case 0x30303530: break; case 0x30303630: break; default: throw new Exception( "Unsupported g1t version!" ); } uint fileSize = stream.ReadUInt32().FromEndian( Endian ); uint headerSize = stream.ReadUInt32().FromEndian( Endian ); uint numberTextures = stream.ReadUInt32().FromEndian( Endian ); uint unknown = stream.ReadUInt32().FromEndian( Endian ); stream.Position = headerSize; uint bytesUnknownData = stream.ReadUInt32().FromEndian( Endian ); stream.Position = headerSize + bytesUnknownData; Textures = new List<g1tTexture>( (int)numberTextures ); for ( uint i = 0; i < numberTextures; ++i ) { var g = new g1tTexture( stream, Endian ); Textures.Add( g ); } return true; } } }
32.477612
117
0.667739
[ "MIT" ]
AdmiralCurtiss/HyoutaTools
HyoutaToolsLib/Gust/g1t/g1t.cs
4,354
C#
using System.IO; using System.Runtime.Serialization; using WolvenKit.CR2W.Reflection; using FastMember; using static WolvenKit.CR2W.Types.Enums; namespace WolvenKit.CR2W.Types { [DataContract(Namespace = "")] [REDMeta] public class ISpawnTreeScriptedDecorator : ISpawnTreeDecorator { public ISpawnTreeScriptedDecorator(CR2WFile cr2w, CVariable parent, string name) : base(cr2w, parent, name){ } public static new CVariable Create(CR2WFile cr2w, CVariable parent, string name) => new ISpawnTreeScriptedDecorator(cr2w, parent, name); public override void Read(BinaryReader file, uint size) => base.Read(file, size); public override void Write(BinaryWriter file) => base.Write(file); } }
31.521739
139
0.753103
[ "MIT" ]
DerinHalil/CP77Tools
CP77.CR2W/Types/W3/RTTIConvert/ISpawnTreeScriptedDecorator.cs
703
C#
namespace TerribleBankInc.Models.OperationResults { public class OperationResult { public bool IsSuccess { get; set; } public string Message { get; set; } } }
23.375
50
0.652406
[ "MIT" ]
ecraciun/TerribleBankInc
src/TerribleBankInc/Models/OperationResults/OperationResult.cs
189
C#
using System.Text; using DBreeze; using NBitcoin; using Stratis.Patricia; using Stratis.SmartContracts.Core; using Stratis.SmartContracts.Core.State; using Stratis.SmartContracts.Core.State.AccountAbstractionLayer; using Xunit; using MemoryDictionarySource = Stratis.Patricia.MemoryDictionarySource; namespace Stratis.Bitcoin.Features.SmartContracts.Tests { public class StateRepositoryTests { private static readonly byte[] empty = new byte[0]; private static readonly byte[] dog = Encoding.UTF8.GetBytes("dog"); private static readonly byte[] dodecahedron = Encoding.UTF8.GetBytes("dodecahedron"); private static readonly byte[] cat = Encoding.UTF8.GetBytes("cat"); private static readonly byte[] fish = Encoding.UTF8.GetBytes("fish"); private static readonly byte[] bird = Encoding.UTF8.GetBytes("bird"); // EthereumJ consts below private static readonly byte[] cow = "CD2A3D9F938E13CD947EC05ABC7FE734DF8DD826".HexToByteArray(); private static readonly byte[] horse = "13978AEE95F38490E9769C39B2773ED763D9CD5F".HexToByteArray(); private static readonly byte[] cowCode = "A1A2A3".HexToByteArray(); private static readonly byte[] horseCode = "B1B2B3".HexToByteArray(); private static readonly byte[] cowKey = "A1A2A3".HexToByteArray(); private static readonly byte[] cowValue = "A4A5A6".HexToByteArray(); private static readonly byte[] horseKey = "B1B2B3".HexToByteArray(); private static readonly byte[] horseValue = "B4B5B6".HexToByteArray(); private static readonly byte[] cowKey1 = "c1".HexToByteArray(); private static readonly byte[] cowKey2 = "c2".HexToByteArray(); private static readonly byte[] cowVal1 = "c0a1".HexToByteArray(); private static readonly byte[] cowVal0 = "c0a0".HexToByteArray(); private static readonly byte[] horseKey1 = "e1".HexToByteArray(); private static readonly byte[] horseKey2 = "e2".HexToByteArray(); private static readonly byte[] horseVal1 = "c0a1".HexToByteArray(); private static readonly byte[] horseVal0 = "c0a0".HexToByteArray(); private static readonly uint160 testAddress = 111111; private const string DbreezeTestLocation = "C:/temp"; private const string DbreezeTestDb = "test"; // Numbered tests are taken from EthereumJ....RepositoryTests [Fact] public void Test3() { StateRepositoryRoot repository = new StateRepositoryRoot(new MemoryDictionarySource()); uint160 cow = 100; uint160 horse = 2000; byte[] cowCode = "A1A2A3".HexToByteArray(); byte[] horseCode = "B1B2B3".HexToByteArray(); repository.SetCode(cow, cowCode); repository.SetCode(horse, horseCode); Assert.Equal(cowCode, repository.GetCode(cow)); Assert.Equal(horseCode, repository.GetCode(horse)); } [Fact] public void Test4() { MemoryDictionarySource source = new MemoryDictionarySource(); StateRepositoryRoot root = new StateRepositoryRoot(source); IStateRepository repository = root.StartTracking(); repository.SetStorageValue(new uint160(cow), cowKey, cowValue); repository.SetStorageValue(new uint160(horse), horseKey, horseValue); repository.Commit(); Assert.Equal(cowValue, root.GetStorageValue(new uint160(cow), cowKey)); Assert.Equal(horseValue, root.GetStorageValue(new uint160(horse), horseKey)); } [Fact] public void Test12() { StateRepositoryRoot repository = new StateRepositoryRoot(new MemoryDictionarySource()); IStateRepository track = repository.StartTracking(); track.SetCode(new uint160(cow), cowCode); track.SetCode(new uint160(horse), horseCode); Assert.Equal(cowCode, track.GetCode(new uint160(cow))); Assert.Equal(horseCode, track.GetCode(new uint160(horse))); track.Rollback(); Assert.Null(repository.GetCode(new uint160(cow))); Assert.Null(repository.GetCode(new uint160(horse))); } [Fact] public void Test20() { ISource<byte[], byte[]> stateDB = new NoDeleteSource<byte[], byte[]>(new MemoryDictionarySource()); StateRepositoryRoot repository = new StateRepositoryRoot(stateDB); byte[] root = repository.Root; uint160 cowAddress = new uint160(cow); uint160 horseAddress = new uint160(horse); IStateRepository track2 = repository.StartTracking(); //repository track2.SetStorageValue(cowAddress, cowKey1, cowVal1); track2.SetStorageValue(horseAddress, horseKey1, horseVal1); track2.Commit(); repository.Commit(); byte[] root2 = repository.Root; track2 = repository.StartTracking(); //repository track2.SetStorageValue(cowAddress, cowKey2, cowVal0); track2.SetStorageValue(horseAddress, horseKey2, horseVal0); track2.Commit(); repository.Commit(); byte[] root3 = repository.Root; IStateRepository snapshot = new StateRepositoryRoot(stateDB, root); Assert.Null(snapshot.GetStorageValue(cowAddress, cowKey1)); Assert.Null(snapshot.GetStorageValue(cowAddress, cowKey2)); Assert.Null(snapshot.GetStorageValue(horseAddress, horseKey1)); Assert.Null(snapshot.GetStorageValue(horseAddress, horseKey2)); snapshot = new StateRepositoryRoot(stateDB, root2); Assert.Equal(cowVal1, snapshot.GetStorageValue(cowAddress, cowKey1)); Assert.Null(snapshot.GetStorageValue(cowAddress, cowKey2)); Assert.Equal(horseVal1, snapshot.GetStorageValue(horseAddress, horseKey1)); Assert.Null(snapshot.GetStorageValue(horseAddress, horseKey2)); snapshot = new StateRepositoryRoot(stateDB, root3); Assert.Equal(cowVal1, snapshot.GetStorageValue(cowAddress, cowKey1)); Assert.Equal(cowVal0, snapshot.GetStorageValue(cowAddress, cowKey2)); Assert.Equal(horseVal1, snapshot.GetStorageValue(horseAddress, horseKey1)); Assert.Equal(horseVal0, snapshot.GetStorageValue(horseAddress, horseKey2)); } [Fact] public void Test20DBreeze() { DBreezeEngine engine = new DBreezeEngine(DbreezeTestLocation); using (DBreeze.Transactions.Transaction t = engine.GetTransaction()) { t.RemoveAllKeys(DbreezeTestDb, true); t.Commit(); } ISource<byte[], byte[]> stateDB = new NoDeleteSource<byte[], byte[]>(new DBreezeByteStore(engine, DbreezeTestDb)); StateRepositoryRoot repository = new StateRepositoryRoot(stateDB); byte[] root = repository.Root; uint160 cowAddress = new uint160(cow); uint160 horseAddress = new uint160(horse); IStateRepository track2 = repository.StartTracking(); //repository track2.SetStorageValue(cowAddress, cowKey1, cowVal1); track2.SetStorageValue(horseAddress, horseKey1, horseVal1); track2.Commit(); repository.Commit(); byte[] root2 = repository.Root; track2 = repository.StartTracking(); //repository track2.SetStorageValue(cowAddress, cowKey2, cowVal0); track2.SetStorageValue(horseAddress, horseKey2, horseVal0); track2.Commit(); repository.Commit(); byte[] root3 = repository.Root; IStateRepository snapshot = new StateRepositoryRoot(stateDB, root); Assert.Null(snapshot.GetStorageValue(cowAddress, cowKey1)); Assert.Null(snapshot.GetStorageValue(cowAddress, cowKey2)); Assert.Null(snapshot.GetStorageValue(horseAddress, horseKey1)); Assert.Null(snapshot.GetStorageValue(horseAddress, horseKey2)); snapshot = new StateRepositoryRoot(stateDB, root2); Assert.Equal(cowVal1, snapshot.GetStorageValue(cowAddress, cowKey1)); Assert.Null(snapshot.GetStorageValue(cowAddress, cowKey2)); Assert.Equal(horseVal1, snapshot.GetStorageValue(horseAddress, horseKey1)); Assert.Null(snapshot.GetStorageValue(horseAddress, horseKey2)); snapshot = new StateRepositoryRoot(stateDB, root3); Assert.Equal(cowVal1, snapshot.GetStorageValue(cowAddress, cowKey1)); Assert.Equal(cowVal0, snapshot.GetStorageValue(cowAddress, cowKey2)); Assert.Equal(horseVal1, snapshot.GetStorageValue(horseAddress, horseKey1)); Assert.Equal(horseVal0, snapshot.GetStorageValue(horseAddress, horseKey2)); } [Fact] public void Repository_CommitAndRollbackTest() { ISource<byte[], byte[]> stateDB = new NoDeleteSource<byte[], byte[]>(new MemoryDictionarySource()); StateRepositoryRoot repository = new StateRepositoryRoot(stateDB); IStateRepository txTrack = repository.StartTracking(); txTrack.CreateAccount(testAddress); txTrack.SetStorageValue(testAddress, dog, cat); txTrack.Commit(); repository.Commit(); byte[] root1 = repository.Root; IStateRepository txTrack2 = repository.StartTracking(); txTrack2.SetStorageValue(testAddress, dog, fish); txTrack2.Rollback(); IStateRepository txTrack3 = repository.StartTracking(); txTrack3.SetStorageValue(testAddress, dodecahedron, bird); txTrack3.Commit(); repository.Commit(); byte[] upToDateRoot = repository.Root; Assert.Equal(cat, repository.GetStorageValue(testAddress, dog)); Assert.Equal(bird, repository.GetStorageValue(testAddress, dodecahedron)); IStateRepository snapshot = repository.GetSnapshotTo(root1); repository.SyncToRoot(root1); Assert.Equal(cat, snapshot.GetStorageValue(testAddress, dog)); Assert.Null(snapshot.GetStorageValue(testAddress, dodecahedron)); } [Fact] public void Repository_CacheDoesntCarryOver() { const string testContractType = "A String"; ISource<byte[], byte[]> stateDB = new NoDeleteSource<byte[], byte[]>(new MemoryDictionarySource()); StateRepositoryRoot repository = new StateRepositoryRoot(stateDB); byte[] initialRoot = repository.Root; IStateRepository txTrack = repository.StartTracking(); txTrack.CreateAccount(testAddress); txTrack.SetStorageValue(testAddress, dog, cat); txTrack.SetContractType(testAddress, testContractType); txTrack.Commit(); repository.Commit(); byte[] postChangesRoot = repository.Root; IStateRepositoryRoot repository2 = repository.GetSnapshotTo(initialRoot); Assert.Null(repository2.GetAccountState(testAddress)); repository2.SetContractType(testAddress, "Something Else"); repository2.SyncToRoot(postChangesRoot); Assert.Equal(testContractType, repository2.GetContractType(testAddress)); } [Fact] public void Repository_CommitPushesToUnderlyingSource() { ISource<byte[], byte[]> stateDB = new NoDeleteSource<byte[], byte[]>(new MemoryDictionarySource()); StateRepositoryRoot repository = new StateRepositoryRoot(stateDB); IStateRepository txTrack = repository.StartTracking(); txTrack.CreateAccount(testAddress); txTrack.SetStorageValue(testAddress, dog, cat); Assert.Null(repository.GetStorageValue(testAddress, dog)); txTrack.Commit(); Assert.Equal(cat, repository.GetStorageValue(testAddress, dog)); } [Fact] public void Repository_Bytes0VsNull() { // Demonstrates that our repository treats byte[0] and null as the same. ISource<byte[], byte[]> stateDB = new NoDeleteSource<byte[], byte[]>(new MemoryDictionarySource()); StateRepositoryRoot repository = new StateRepositoryRoot(stateDB); repository.CreateAccount(testAddress); repository.SetStorageValue(testAddress, dog, new byte[0]); Assert.Equal(new byte[0], repository.GetStorageValue(testAddress, dog)); repository.Commit(); // We have pushed byte[0] to the kv store. Should come back as byte[0] right? StateRepositoryRoot repository2 = new StateRepositoryRoot(stateDB, repository.Root); // Nope, comes back null... Assert.Null(repository2.GetStorageValue(testAddress, dog)); } } }
46.437722
126
0.653996
[ "MIT" ]
DennisAMenace/X42-FullNode
src/Stratis.Bitcoin.Features.SmartContracts.Tests/StateRepositoryTests.cs
13,051
C#
// ===================================================================== // File: ErrorCodes.cs // Summary: Contains helper types for building queries. // ===================================================================== // // This file is part of the Microsoft CRM SDK Code Samples. // // Copyright (C) Microsoft Corporation. All rights reserved. // // This source code is intended only as a supplement to Microsoft // Development Tools and/or on-line documentation. See these other // materials for detailed information regarding Microsoft code samples. // // THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY // KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE // IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A // PARTICULAR PURPOSE. // // ===================================================================== using System; using System.Collections; namespace CrmSdk { public sealed class ErrorCodes { public enum ErrorType { SystemFailure, Timeout, ClientError }; // To prevent instantiation private ErrorCodes() {} private static Hashtable ErrorMessages = new Hashtable(); private static Hashtable ErrorTypes= new Hashtable(); static ErrorCodes() { ErrorMessages.Add(LowerVersionUpgrade, "The import solution must have a higher version than the existing solution it is upgrading."); ErrorMessages.Add(PatchMissingBase, "You can't import the patch ({0}) for the solution ({1}) because the solution isn't present. The operation has been canceled."); ErrorMessages.Add(SubcomponentDoesNotExist, "Subcomponent {0} of type {1} is not found in the organization, it can not be added to the SolutionComponents."); ErrorMessages.Add(SubcomponentMissingARoot, "Subcomponent {0} cannot be added to the solution because the root component {1} is missing."); ErrorMessages.Add(CannotModifyPatchedSolution, "Cannot modify solution because it has the following patches: {0}."); ErrorMessages.Add(CloneSolutionException, "Operation on clone solution failed."); ErrorMessages.Add(CloneSolutionPatchException, "Patch '{0}' has a matching or higher version ({1}) than that of the patch being installed."); ErrorMessages.Add(QuickFindSavedQueryAlreadyExists, "\"Only one quickfind saved query can exist for an entity. There already exists a quick-find saved query for entity with objecttypecode: {0}\""); ErrorMessages.Add(SolutionUpgradeNotAvailable, "\"The {0} solution doesn’t have an upgrade that is ready to be applied.\""); ErrorMessages.Add(SolutionUpgradeWrongSolutionSelected, "\"To use this action, you must first select the old solution and then try again.\""); ErrorMessages.Add(CustomImageAttributeOnlyAllowedOnCustomEntity, "A custom image attribute can only be added to a custom entity."); ErrorMessages.Add(SqlEncryptionSymmetricKeyCannotOpenBecauseWrongPassword, "Cannot open encryption Symmetric Key because the password is wrong."); ErrorMessages.Add(SqlEncryptionSymmetricKeyDoesNotExistOrNoPermission, "Cannot open encryption Symmetric Key because it does not exist in the database or user does not have permission."); ErrorMessages.Add(SqlEncryptionSymmetricKeyPasswordDoesNotExistInConfigDB, "Encryption Symmetric Key password does not exist in Config DB."); ErrorMessages.Add(SqlEncryptionSymmetricKeySourceDoesNotExistInConfigDB, "Encryption Symmetric Key Source does not exist in Config DB."); ErrorMessages.Add(CannotExecuteRequestBecauseHttpsIsRequired, "HTTPS protocol is required for this type of request, please enable HTTPS protocol and try again."); ErrorMessages.Add(SqlEncryptionRestoreEncryptionKeyCannotDecryptExistingData, "Cannot perform 'activate' because the encryption key doesn’t match the original encryption key that was used to encrypt the data."); ErrorMessages.Add(SqlEncryptionSetEncryptionKeyIsAlreadyRunningCannotRunItInParallel, "The system is currently running a request to 'change' or 'activate' the encryption key. Please wait before making another request."); ErrorMessages.Add(SqlEncryptionChangeEncryptionKeyExceededQuotaForTheInterval, "'Change' encryption key has already been executed {0} times in the last {1} minutes. Please wait a couple of minutes and then try again."); ErrorMessages.Add(SqlEncryptionEncryptionKeyValidationError, "The new encryption key does not meet the strong encryption key requirements. The key must be between 10 and 100 characters in length, and must have at least one numeral, at least one letter, and one symbol or special character. {0}"); ErrorMessages.Add(SqlEncryptionIsInactiveCannotChangeEncryptionKey, "Cannot perform 'change' encryption key because the encryption key is not already set or is not working. First use 'activate' encryption key instead to set the correct current encryption key and then use 'change' encryption if you want to re-encrypt data using a new encryption key."); ErrorMessages.Add(SqlEncryptionDeleteEncryptionKeyError, "Cannot delete the encryption key."); ErrorMessages.Add(SqlEncryptionIsActiveCannotRestoreEncryptionKey, "Cannot perform 'activate' encryption key because the encryption key is already set and is working. Use 'change' encryption key instead."); ErrorMessages.Add(SqlEncryptionKeyCannotDecryptExistingData, "Cannot decrypt existing encrypted data (Entity='{0}', Attribute='{1}') using the current encryption key. Use 'activate' encryption key to set the correct encryption key."); ErrorMessages.Add(SqlEncryptionEncryptionDecryptionTestError, "Error while testing data encryption and decryption."); ErrorMessages.Add(SqlEncryptionDeleteSymmetricKeyError, "Cannot delete Symmetric Key with Name='{0}' because it does not exist."); ErrorMessages.Add(SqlEncryptionCreateSymmetricKeyError, "Cannot create Symmetric Key with Name='{0}' because it already exists."); ErrorMessages.Add(SqlEncryptionSymmetricKeyDoesNotExist, "Symmetric Key with Name='{0}' does not exist in the database."); ErrorMessages.Add(SqlEncryptionDeleteCertificateError, "Cannot delete Certificate with Name='{0}' because it does not exist."); ErrorMessages.Add(SqlEncryptionCreateCertificateError, "Cannot create Certificate with Name='{0}' because it already exists."); ErrorMessages.Add(SqlEncryptionCertificateDoesNotExist, "Certificate with Name='{0}' does not exist in the database."); ErrorMessages.Add(SqlEncryptionDeleteDatabaseMasterKeyError, "Cannot delete Database Master Key because it does not exist."); ErrorMessages.Add(SqlEncryptionCreateDatabaseMasterKeyError, "Cannot create Database Master Key because already exists."); ErrorMessages.Add(SqlEncryptionCannotOpenSymmetricKeyBecauseDatabaseMasterKeyDoesNotExistOrIsNotOpened, "Cannot open Symmetric Key because Database Master Key does not exist in the database or is not opened."); ErrorMessages.Add(SqlEncryptionDatabaseMasterKeyDoesNotExist, "Database Master Key does not exist in the database."); ErrorMessages.Add(SqlEncryption, "There was an error in Data Encryption."); ErrorMessages.Add(ErrorsInSlaWorkflowActivation, "You can't activate this service level agreement (SLA). You don't have the required permissions on the record types that are referenced by this SLA."); ErrorMessages.Add(ManifestParsingFailure, "Failed to parse the specified manifest file to retrieve OrganizationId"); ErrorMessages.Add(InvalidManifestFilePath, "Failed to locate the manifest file in the specified location"); ErrorMessages.Add(OnPremiseRestoreOrganizationManifestFailed, "Failed to restore Organization's configdb state from manifest"); ErrorMessages.Add(InvalidAuth, "Organization Authentication does not match the current discovery service Role."); ErrorMessages.Add(CannotUpdateOrgDBOrgSettingWhenOffline, "Organization Settings stored in Organization Database cannot be set when offline."); ErrorMessages.Add(InvalidOrgDBOrgSetting, "Invalid Organization Setting passed in. Please check the datatype and pass in an appropriate value."); ErrorMessages.Add(UnknownInvalidTransformationParameterGeneric, "One or more input transformation parameter values are invalid: {0}."); ErrorMessages.Add(InvalidTransformationParameterOutsideRangeGeneric, "One or more input transformation parameter values are outside the permissible range: {0}."); ErrorMessages.Add(InvalidTransformationParameterEmptyCollection, "The transformation parameter: {0} has an invalid input value length: {1}. The parameter length cannot be an empty collection."); ErrorMessages.Add(InvalidTransformationParameterOutsideRange, "The transformation parameter: {0} has an invalid input value: {1}. The parameter is out of the permissible range: {2}. "); ErrorMessages.Add(InvalidTransformationParameterZeroToRange, "The transformation parameter: {0} has an invalid input value: {1}. The parameter value must be greater than 0 and less than the length of the parameter 1."); ErrorMessages.Add(InvalidTransformationParameterString, "The transformation parameter: {0} has an invalid input value: {1}. The parameter must be a string that is not empty."); ErrorMessages.Add(InvalidTransformationParametersGeneric, "The transformation parameter: {0} has an invalid input value: {1}. The parameter must be of type: {2}."); ErrorMessages.Add(InsufficientTransformationParameters, "Insufficient parameters to execute transformation mapping."); ErrorMessages.Add(MaximumNumberHandlersExceeded, "This solution adds form event handlers so the number of event handlers for a form event exceeds the maximum number."); ErrorMessages.Add(ErrorInUnzipAlternate, "An error occurred while the uploaded compressed (.zip) file was being extracted. Try to upload the file again. If the problem persists, contact your system administrator."); ErrorMessages.Add(IncorrectSingleFileMultipleEntityMap, "There should be two or more Entity Mappings defined when EntitiesPerFile in ImportMap is set to Multiple"); ErrorMessages.Add(ActivityEntityCannotBeActivityParty, "An activity entity cannot be also an activity party"); ErrorMessages.Add(TargetAttributeInvalidForIgnore, "Target attribute name should be empty when the processcode is ignore."); ErrorMessages.Add(MaxUnzipFolderSizeExceeded, "The selected compressed (.zip) file can't be unzipped because it's too large."); ErrorMessages.Add(InvalidMultipleMapping, "A source field is mapped to more than one Dynamics 365 fields of lookup/picklist type."); ErrorMessages.Add(ErrorInStoringImportFile, "An error occurred while storing the import file in database."); ErrorMessages.Add(UnzipTimeout, "Timeout happened in unzipping the zip file uploaded for import."); ErrorMessages.Add(UnsupportedZipFileForImport, "The compressed (.zip) or .cab file couldn't be uploaded because the file is corrupted or doesn't contain valid importable files."); ErrorMessages.Add(UnzipProcessCountLimitReached, "Cannot start a new process to unzip."); ErrorMessages.Add(AttachmentNotFound, "The reference to the attachment couldn't be found."); ErrorMessages.Add(TooManyPicklistValues, "Number of distinct picklist values exceed the limit."); ErrorMessages.Add(VeryLargeFileInZipImport, "One of the files in the compressed (.zip) or .cab file that you're trying to import exceeds the size limit."); ErrorMessages.Add(InvalidAttachmentsFolder, "The compressed (.zip) file can't be uploaded because the folder \"Attachments\" contains one or more subfolders. Remove the subfolders and try again."); ErrorMessages.Add(ZipInsideZip, "The compressed (.zip) file that you are trying to upload contains another .zip file within it."); ErrorMessages.Add(InvalidZipFileFormat, "The file that you're trying to upload isn't a valid file. Check the file and try again."); ErrorMessages.Add(EmptyFileForImport, "The selected file contains no data."); ErrorMessages.Add(EmptyFilesInZip, "One or more files in the compressed (.zip) or .cab file don't contain data. Check the files and try again."); ErrorMessages.Add(ZipFileHasMixOfCsvAndXmlFiles, "The compressed (.zip) file that you're trying to upload contains more than one type of file. The file can contain either Excel (.xlsx) files, comma-delimited (.csv) files or XML Spreadsheet 2003 (.xml) files, but not a combination of file types."); ErrorMessages.Add(DuplicateFileNamesInZip, "Two or more files have the same name. File names must be unique."); ErrorMessages.Add(ErrorInUnzip, "An error occurred while extracting the uploaded compressed (.zip) or .cab file. Make sure that the file isn't password protected, and try uploading the file again. If this problem persists, contact your system administrator."); ErrorMessages.Add(InvalidZipFileForImport, "The selected compressed (.zip) file contains files that can't be imported. A .zip file can contain only .xlsx, .csv, or .xml files."); ErrorMessages.Add(InvalidLookupMapNode, "The lookup entity provided is not valid for the given target attribute."); ErrorMessages.Add(ImportMailMergeTemplateEntityMissingError, "The {0} mail merge template was not imported because the {1} entity associated with this template is not in the target system."); ErrorMessages.Add(CannotUpdateOpportunityCurrency, "The currency cannot be changed because this opportunity has Products Quotes, and/ or Orders associated with it. If you want to change the currency please delete all of the Products/quotes/orders and then change the currency or create a new opportunity with the appropriate currency."); ErrorMessages.Add(ParentRecordAlreadyExists, "This record cannot be added because it already has a parent record."); ErrorMessages.Add(MissingWebToLeadRedirect, "The redirectto is missing for web2lead redirect."); ErrorMessages.Add(InvalidWebToLeadRedirect, "The redirectto is invalid for web2lead redirect."); ErrorMessages.Add(TemplateNotAllowedForInternetMarketing, "Creating Templates with Internet Marketing Campaign Activities is not allowed"); ErrorMessages.Add(CopyNotAllowedForInternetMarketing, "Duplicating campaigns that have Internet Marketing Campaign Activities is not allowed"); ErrorMessages.Add(MissingOrInvalidRedirectId, "The RedirId parameter is missing for the partner redirect."); ErrorMessages.Add(ImportNotComplete, "One or more imports are not in completed state. Imported records can only be deleted from completed jobs. Wait until job completes, and then try again."); ErrorMessages.Add(UIDataMissingInWorkflow, "The workflow does not contain UIData."); ErrorMessages.Add(RefEntityRelationshipRoleRequired, "The entity relationship role of the referencing entity is required when creating a new one-to-many entity relationship."); ErrorMessages.Add(ImportTemplateLanguageIgnored, "You cannot import this template because its language is not enabled in your Microsoft Dynamics 365 organization."); ErrorMessages.Add(ImportTemplatePersonalIgnored, "You cannot import this template because it is set as \"personal\" in your Microsoft Dynamics 365 organization."); ErrorMessages.Add(ImportComponentDeletedIgnored, "You cannot update this component because it does not exist in this Microsoft Dynamics 365 organization."); ErrorMessages.Add(CustomerRelationshipCannotBeDeleted, "This relationship {1} is required by the {0} attribute and can't be deleted. To delete this relationship, first delete the lookup attribute."); ErrorMessages.Add(RelationshipRoleNodeNumberInvalid, "There must be two entity relationship role nodes when creating a new many-to-many entity relationship."); ErrorMessages.Add(AssociationRoleOrdinalInvalid, "The association role ordinal is not valid - it must be 1 or 2."); ErrorMessages.Add(RelationshipRoleMismatch, "The relationship role name {0} does not match either expected entity name of {1} or {2}."); ErrorMessages.Add(ImportMapInUse, "One or more of the selected data maps cannot be deleted because it is currently used in a data import."); ErrorMessages.Add(PreviousOperationNotComplete, "An operation on which this operation depends did not complete successfully."); ErrorMessages.Add(TransformationResumeNotSupported, "The resume/retry of Transformation job of Import is not supported."); ErrorMessages.Add(CannotDisableDuplicateDetection, "Duplicate detection cannot be disabled because a duplicate detection job is currently in progress. Try again later."); ErrorMessages.Add(TargetEntityNotMapped, "Target Entity Name not defined for source:{0} file."); ErrorMessages.Add(BulkDeleteChildFailure, "One of the Bulk Delete Child Jobs Failed"); ErrorMessages.Add(CannotRemoveNonListMember, "Specified Item not a member of the specified List."); ErrorMessages.Add(JobNameIsEmptyOrNull, "Job Name can not be null or empty."); ErrorMessages.Add(ImportMailMergeTemplateError, "There was an error in parsing the mail merge templates in Import Xml"); ErrorMessages.Add(ErrorsInWorkflowDefinition, "The selected workflow has errors and cannot be published. Please open the workflow, remove the errors and try again."); ErrorMessages.Add(DistributeNoListAssociated, "This campaign activity cannot be distributed. No marketing lists are associated with it. Add at least one marketing list and try again."); ErrorMessages.Add(DistributeListAssociatedVary, "This campaign activity cannot be distributed. Mail merge activities can be done only on marketing lists that are all the same record type. For this campaign activity, remove marketing lists so that the remaining ones are the same record type, and then try again."); ErrorMessages.Add(OfflineFilterParentDownloaded, "You cannot use the Parent Downloaded condition in a local data group."); ErrorMessages.Add(OfflineFilterNestedDateTimeOR, "You cannot use nested date time conditions within an OR clause in a local data group."); ErrorMessages.Add(DuplicateOfflineFilter, "You can create only one local data group for each record type."); ErrorMessages.Add(CannotAssignAddressBookFilters, "Cannot assign address book filters"); ErrorMessages.Add(CannotCreateAddressBookFilters, "Cannot create address book filters"); ErrorMessages.Add(CannotGrantAccessToAddressBookFilters, "Cannot grant access to address book filters"); ErrorMessages.Add(CannotModifyAccessToAddressBookFilters, "Cannot modify access for address book filters"); ErrorMessages.Add(CannotRevokeAccessToAddressBookFilters, "Cannot revoke access for address book filters"); ErrorMessages.Add(DuplicateMapName, "A data map with the specified name already exists."); ErrorMessages.Add(InvalidWordXmlFile, "Only Microsoft Word xml format files can be uploaded."); ErrorMessages.Add(FileNotFound, "The attachment file was not found."); ErrorMessages.Add(MultipleFilesFound, "The attachment file name is not unique."); ErrorMessages.Add(InvalidAttributeMapping, "One or more attribute mappings is invalid."); ErrorMessages.Add(FileReadError, "There was an error reading the file from the file system. Make sure you have read permission for this file, and then try migrating the file again."); ErrorMessages.Add(ViewForDuplicateDetectionNotDefined, "Required view for viewing duplicates of an entity not defined."); ErrorMessages.Add(FileInUse, "Could not read the file because another application is using the file."); ErrorMessages.Add(NoPublishedDuplicateDetectionRules, "There are no published duplicate detection rules in the system. To run duplicate detection, you must create and publish one or more rules."); ErrorMessages.Add(NoEntitiesForBulkDelete, "The Bulk Delete Wizard cannot be opened because there are no valid entities for deletion."); ErrorMessages.Add(BulkDeleteRecordDeletionFailure, "The record cannot be deleted."); ErrorMessages.Add(RuleAlreadyPublishing, "The selected duplicate detection rule is already being published."); ErrorMessages.Add(RuleNotFound, "No rules were found that match the criteria."); ErrorMessages.Add(CannotDeleteSystemEmailTemplate, "System e-mail templates cannot be deleted."); ErrorMessages.Add(EntityDupCheckNotSupportedSystemWide, "Duplicate detection is not enabled for one or more of the selected entities. The duplicate detection job cannot be started."); ErrorMessages.Add(DuplicateDetectionNotSupportedOnAttributeType, "The rule condition cannot be created or updated because duplicate detection is not supported on the data type of the selected attribute."); ErrorMessages.Add(MaxMatchCodeLengthExceeded, "The rule condition cannot be created or updated because it would cause the matchcode length to exceed the maximum limit."); ErrorMessages.Add(CannotDeleteUpdateInUseRule, "The duplicate detection rule is currently in use and cannot be updated or deleted. Please try again later."); ErrorMessages.Add(ImportMappingsInvalidIdSpecified, "The XML file has one or more invalid IDs. The specified ID cannot be used as a unique identifier."); ErrorMessages.Add(NotAWellFormedXml, "The input XML is not well-formed XML."); ErrorMessages.Add(NoncompliantXml, "The input XML does not comply with the XML schema."); ErrorMessages.Add(DuplicateDetectionTemplateNotFound, "Microsoft Dynamics 365 could not retrieve the e-mail notification template."); ErrorMessages.Add(RulesInInconsistentStateFound, "One or more rules cannot be unpublished, either because they are in the process of being published, or are in a state where they cannot be unpublished."); ErrorMessages.Add(BulkDetectInvalidEmailRecipient, "The e-mail recipient either does not exist or the e-mail address for the e-mail recipient is not valid."); ErrorMessages.Add(CannotEnableDuplicateDetection, "Duplicate detection cannot be enabled because one or more rules are being published."); ErrorMessages.Add(CannotDeleteInUseEntity, "The selected entity cannot be deleted because it is referenced by one or more duplicate detection rules that are in process of being published."); ErrorMessages.Add(StringAttributeIndexError, "One of the attributes of the selected entity is a part of database index and so it cannot be greater than 900 bytes."); ErrorMessages.Add(CannotChangeAttributeRequiredLevel, "An attribute's required level cannot be changed from SystemRequired"); ErrorMessages.Add(MaximumNumberOfAttributesForEntityReached, "The maximum number of attributes allowed for an entity has already been reached. The attribute cannot be created."); ErrorMessages.Add(CannotPublishMoreRules, "The selected record type already has the maximum number of published rules. Unpublish or delete existing rules for this record type, and then try again."); ErrorMessages.Add(CannotDeleteInUseAttribute, "The selected attribute cannot be deleted because it is referenced by one or more duplicate detection rules that are being published."); ErrorMessages.Add(CannotDeleteInUseOptionSet, "This option set cannot be deleted. The current set of entities that reference this option set are: {0}. These references must be removed before this option set can be deleted"); ErrorMessages.Add(InvalidEntityName, "The record type does not match the base record type and the matching record type of the duplicate detection rule."); ErrorMessages.Add(InvalidOperatorCode, "The operator is not valid or it is not supported."); ErrorMessages.Add(CannotPublishEmptyRule, "No criteria have been specified. Add criteria, and then publish the duplicate detection rule."); ErrorMessages.Add(CannotPublishInactiveRule, "The selected duplicate detection rule is marked as Inactive. Before publishing, you must activate the rule."); ErrorMessages.Add(DuplicateCheckNotEnabled, "Duplicate detection is not enabled. To enable duplicate detection, click Settings, click Data Management, and then click Duplicate Detection Settings."); ErrorMessages.Add(DuplicateCheckNotSupportedOnEntity, "Duplicate detection is not supported on this record type."); ErrorMessages.Add(InvalidStateCodeStatusCode, "State code is invalid or state code is valid but status code is invalid for a specified state code."); ErrorMessages.Add(SyncToMsdeFailure, "Failed to start or connect to the offline mode MSDE database."); ErrorMessages.Add(FormDoesNotExist, "Form doesn't exist"); ErrorMessages.Add(AccessDenied, "Access is denied."); ErrorMessages.Add(CannotDeleteOptionSet, "The selected OptionSet cannot be deleted"); ErrorMessages.Add(InvalidOptionSetOperation, "Invalid OptionSet"); ErrorMessages.Add(OptionValuePrefixOutOfRange, "CustomizationOptionValuePrefix must be a number between {0} and {1}"); ErrorMessages.Add(CheckPrivilegeGroupForUserOnPremiseError, "Please select an account that is a member of the PrivUserGroup security group and try again."); ErrorMessages.Add(CheckPrivilegeGroupForUserOnSplaError, "Please select a Dynamics 365 System Administrator account that belongs to the root business unit and try again."); ErrorMessages.Add(unManagedIdsAccessDenied, "Not enough privilege to access the Microsoft Dynamics 365 object or perform the requested operation."); ErrorMessages.Add(EntityIsIntersect, "The specified entity is intersect entity"); ErrorMessages.Add(CannotDeleteTeamOwningRecords, "Can't delete a team which owns records. Reassign the records and try again."); ErrorMessages.Add(CannotRemoveMembersFromDefaultTeam, "Can't remove members from the default business unit team."); ErrorMessages.Add(CannotAddMembersToDefaultTeam, "Can't add members to the default business unit team."); ErrorMessages.Add(CannotUpdateNameDefaultTeam, "The default business unit team name can't be updated."); ErrorMessages.Add(CannotSetParentDefaultTeam, "The default business unit team parent can't be set."); ErrorMessages.Add(CannotDeleteDefaultTeam, "The default business unit team can't be deleted."); ErrorMessages.Add(TeamNameTooLong, "The specified name for the team is too long."); ErrorMessages.Add(CannotAssignRolesOrProfilesToAccessTeam, "Cannot assign roles or profiles to an access team."); ErrorMessages.Add(TooManyEntitiesEnabledForAutoCreatedAccessTeams, "Too many entities enabled for auto created access teams."); ErrorMessages.Add(TooManyTeamTemplatesForEntityAccessTeams, "Too many team templates for auto created access teams for this entity."); ErrorMessages.Add(EntityNotEnabledForAutoCreatedAccessTeams, "This entity is not enabled for auto created access teams."); ErrorMessages.Add(InvalidAccessMaskForTeamTemplate, "Invalid access mask is specified for team template."); ErrorMessages.Add(CannotChangeTeamTypeDueToRoleOrProfile, "You cannot modify the type of the team because there are security roles or field security profiles assigned to the team."); ErrorMessages.Add(CannotChangeTeamTypeDueToOwnership, "You cannot modify the type of the team because there are records owned by the team."); ErrorMessages.Add(CannotDisableAutoCreateAccessTeams, "You cannot disable the auto create access team setting while there are associated team templates."); ErrorMessages.Add(CannotShareSystemManagedTeam, "You can't share or unshare a record with a system-generated access team."); ErrorMessages.Add(CannotAssignToAccessTeam, "You cannot assign a record to the access team. You can assign a record to the owner team."); ErrorMessages.Add(DuplicateSalesTeamMember, "The user you're trying to add is already a member of the sales team."); ErrorMessages.Add(TargetUserInsufficientPrivileges, "The user can't be added to the team because the user doesn't have the \"{0}\" privilege."); ErrorMessages.Add(CannotDisableOrDeletePositionDueToAssociatedUsers, "This position can’t be deleted until all associated users are removed from this position."); ErrorMessages.Add(CannotCreateOrEnablePositionDueToParentPositionIsDisabled, "A child position cannot be created/enabled under a disabled parent position."); ErrorMessages.Add(InvalidDomainName, "The domain logon for this user is invalid. Select another domain logon and try again."); ErrorMessages.Add(InvalidUserName, "You must enter the user name in the format <name>@<domain>. Correct the format and try again."); ErrorMessages.Add(BulkMailServiceNotAccessible, "The Microsoft Dynamics 365 Bulk E-Mail Service is not running."); ErrorMessages.Add(RSMoveItemError, "Cannot move report item {0} to {1}"); ErrorMessages.Add(ReportParentChildNotCustomizable, "The report could not be updated because either the parent report or the child report is not customizable."); ErrorMessages.Add(ConvertFetchDataSetError, "An unexpected error occurred while processing the Fetch data set."); ErrorMessages.Add(ConvertReportToCrmError, "An unexpected error occurred while converting supplied report to Dynamics 365 format."); ErrorMessages.Add(ReportViewerError, "An error occurred during report rendering. ReportId:{0}"); ErrorMessages.Add(RSGetItemTypeError, "Error occurred while fetching the report."); ErrorMessages.Add(RSSetPropertiesError, "Error occurred while setting property values for the report."); ErrorMessages.Add(RSReportParameterTypeMismatchError, "The parameter type of the report is not valid."); ErrorMessages.Add(RSUpdateReportExecutionSnapshotError, "Error occurred while taking snapshot of a report."); ErrorMessages.Add(RSSetReportHistoryLimitError, "Error occurred while setting report history snapshot limit."); ErrorMessages.Add(RSSetReportHistoryOptionsError, "Error occurred while setting report history snapshot options."); ErrorMessages.Add(RSSetExecutionOptionsError, "Error occurred while setting execution options."); ErrorMessages.Add(RSSetReportParametersError, "Error occurred while setting report parameters."); ErrorMessages.Add(RSGetReportParametersError, "Error occurred while getting report parameters."); ErrorMessages.Add(RSSetItemDataSourcesError, "Error occurred while setting the data source."); ErrorMessages.Add(RSGetItemDataSourcesError, "Error occurred while fetching current data sources."); ErrorMessages.Add(RSCreateBatchError, "Error occurred while creating a batch operation."); ErrorMessages.Add(RSListReportHistoryError, "Error occurred while fetching the report history snapshots."); ErrorMessages.Add(RSGetReportHistoryLimitError, "Error occurred while fetching the number of snapshots stored for the report."); ErrorMessages.Add(RSExecuteBatchError, "Error occurred while performing the batch operation."); ErrorMessages.Add(RSCancelBatchError, "Error occurred while canceling the batch operation."); ErrorMessages.Add(RSListExtensionsError, "Error occurred while fetching the list of data extensions installed on the report server."); ErrorMessages.Add(RSGetDataSourceContentsError, "Error occurred while getting the data source contents."); ErrorMessages.Add(RSSetDataSourceContentsError, "Error occurred while setting the data source contents."); ErrorMessages.Add(RSFindItemsError, "Error occurred while finding an item on the report server."); ErrorMessages.Add(RSDeleteItemError, "Error occurred while deleting an item from the report server."); ErrorMessages.Add(ReportSecurityError, "The report contains a security violation. ReportId:{0}"); ErrorMessages.Add(ReportMissingReportSourceError, "No source has been specified for the report. ReportId:{0}"); ErrorMessages.Add(ReportMissingParameterError, "A parameter expected by the report has not been supplied. ReportId:{0}"); ErrorMessages.Add(ReportMissingEndpointError, "The SOAP endpoint used by the ReportViewer control could not be accessed."); ErrorMessages.Add(ReportMissingDataSourceError, "A data source expected by the report has not been supplied. ReportId:{0}"); ErrorMessages.Add(ReportMissingDataSourceCredentialsError, "Credentials have not been supplied for a data source used by the report. ReportId:{0}"); ErrorMessages.Add(ReportLocalProcessingError, "Error occurred while viewing locally processed report. ReportId:{0}"); ErrorMessages.Add(ReportServerSP2HotFixNotApplied, "Report server SP2 Workgroup does not have the hotfix for role creation"); ErrorMessages.Add(DataSourceProhibited, "A non fetch based data source is not permitted on this report"); ErrorMessages.Add(ReportServerVersionLow, "Report server does not meet the minimal version requirement"); ErrorMessages.Add(ReportServerNoPrivilege, "Not enough privilege to configure report server"); ErrorMessages.Add(ReportServerInvalidUrl, "Cannot contact report server from given URL"); ErrorMessages.Add(ReportServerUnknownException, "Unknown exception thrown by report server"); ErrorMessages.Add(ReportNotAvailable, "Report not available"); ErrorMessages.Add(ErrorUploadingReport, "An error occurred while trying to add the report to Microsoft Dynamics 365. Try adding the report again. If this problem persists, contact your system administrator."); ErrorMessages.Add(ReportFileTooBig, "The file is too large and cannot be uploaded. Please reduce the size of the file and try again."); ErrorMessages.Add(ReportFileZeroLength, "You have uploaded an empty file. Please select a new file and try again."); ErrorMessages.Add(ReportTypeBlocked, "The report is not a valid type. It cannot be uploaded or downloaded."); ErrorMessages.Add(ReportUploadDisabled, "Reporting Services reports cannot be uploaded. If you want to create a new report, please use the Report Wizard."); ErrorMessages.Add(ReportRdlSandboxing, "Report upload failed due to RDL Sandboxing limitations on the Report Server."); ErrorMessages.Add(SrsDataConnectorNotInstalledUpload, "This report can’t upload because Dynamics 365 Reporting Extensions, required components for reporting, are not installed on the server that is running Microsoft SQL Server Reporting Services."); ErrorMessages.Add(BothConnectionSidesAreNeeded, "You must provide a name or select a role for both sides of this connection."); ErrorMessages.Add(CannotConnectToSelf, "Cannot connect a record to itself."); ErrorMessages.Add(UnrelatedConnectionRoles, "The connection roles are not related."); ErrorMessages.Add(ConnectionRoleNotValidForObjectType, "The record type {0} is not defined for use with the connection role {1}."); ErrorMessages.Add(ConnectionCannotBeEnabledOnThisEntity, "Connections cannot be enabled on this entity"); ErrorMessages.Add(ConnectionNotSupported, "The selected record does not support connections. You cannot add the connection."); ErrorMessages.Add(ConnectionObjectsMissing, "Both objects being connected are missing."); ErrorMessages.Add(ConnectionInvalidStartEndDate, "Start date / end date is invalid."); ErrorMessages.Add(ConnectionExists, "Connection already exists."); ErrorMessages.Add(DecoupleUserOwnedEntity, "Can only decouple user owned entities."); ErrorMessages.Add(DecoupleChildEntity, "Cannot decouple a child entity."); ErrorMessages.Add(ExistingParentalRelationship, "A parental relationship already exists."); ErrorMessages.Add(InvalidCascadeLinkType, "The cascade link type is not valid for the cascade action."); ErrorMessages.Add(InvalidDeleteModification, "A system relationship's delete cascading action cannot be modified."); ErrorMessages.Add(CustomerOpportunityRoleExists, "Customer opportunity role exists."); ErrorMessages.Add(CustomerRelationshipExists, "Customer relationship already exists."); ErrorMessages.Add(MultipleRelationshipsNotSupported, "Multiple relationships are not supported"); ErrorMessages.Add(ImportDuplicateEntity, "This import has failed because a different entity with the identical name, {0}, already exists in the target organization."); ErrorMessages.Add(CascadeProxyEmptyCallerId, "Empty Caller Id"); ErrorMessages.Add(CascadeProxyInvalidPrincipalType, "Invalid security principal type"); ErrorMessages.Add(CascadeProxyInvalidNativeDAPtr, "Invalid pointer of unmanaged data access object"); ErrorMessages.Add(CascadeFailToCreateNativeDAWrapper, "Failed to create unmanaged data access wrapper"); ErrorMessages.Add(CascadeReparentOnNonUserOwned, "Cannot perform Cascade Reparent on Non-UserOwned entities"); ErrorMessages.Add(CascadeMergeInvalidSpecialColumn, "Invalid Column Name for Merge Special Casing"); ErrorMessages.Add(CascadeRemoveLinkOnNonNullable, "CascadeDelete is defined as RemoveLink while the foreign key is not nullable"); ErrorMessages.Add(CascadeDeleteNotAllowDelete, "Object is not allowed to be deleted"); ErrorMessages.Add(CascadeInvalidLinkType, "Invalid CascadeLink Type"); ErrorMessages.Add(IsvExtensionsPrivilegeNotPresent, "To import ISV.Config, your user account must be associated with a security role that includes the ISV Extensions privilege."); ErrorMessages.Add(RelationshipNameLengthExceedsLimit, "Relationship name cannot be more than 50 characters long."); ErrorMessages.Add(ImportEmailTemplateErrorMissingFile, "E-mail Template '{0}' import: The attachment '{1}' was not found in the import zip file."); ErrorMessages.Add(CascadeInvalidExtraConditionValue, "Invalid Extra-condition value"); ErrorMessages.Add(ImportWorkflowNameConflictError, "Workflow {0} cannot be imported because a workflow with same name and different unique identifier exists in the target system. Change the name of this workflow, and then try again."); ErrorMessages.Add(ImportWorkflowPublishedError, "Workflow {0}({1}) cannot be imported because a workflow with same unique identifier is published on the target system. Unpublish the workflow on the target system before attempting to import this workflow again."); ErrorMessages.Add(ImportWorkflowEntityDependencyError, "Cannot import workflow definition. Required entity dependency is missing."); ErrorMessages.Add(ImportWorkflowAttributeDependencyError, "Cannot import workflow definition. Required attribute dependency is missing."); ErrorMessages.Add(ImportWorkflowError, "Cannot import workflow definition. The workflow with specified workflow id is not updatable or workflow name is not unique."); ErrorMessages.Add(ImportGenericEntitiesError, "An error occurred while importing generic entities."); ErrorMessages.Add(ImportRolePermissionError, "You do not have the necessary privileges to import security roles."); ErrorMessages.Add(ImportRoleError, "Cannot import security role. The role with specified role id is not updatable or role name is not unique."); ErrorMessages.Add(ImportOrgSettingsError, "There was an error parsing the Organization Settings during Import."); ErrorMessages.Add(InvalidSharePointSiteCollectionUrl, "The URL must conform to the http or https schema."); ErrorMessages.Add(InvalidSiteRelativeUrlFormat, "The relative url contains invalid characters. Please use a different name. Valid relative url names cannot end with the following strings: .aspx, .ashx, .asmx, .svc , cannot begin or end with a dot or /, cannot contain consecutive dots or / and cannot contain any of the following characters: ~ \" # % & * : < > ? \\ { | }."); ErrorMessages.Add(InvalidRelativeUrlFormat, "The relative url contains invalid characters. Please use a different name. Valid relative url names cannot ends with the following strings: .aspx, .ashx, .asmx, .svc , cannot begin or end with a dot, cannot contain consecutive dots and cannot contain any of the following characters: ~ \" # % & * : < > ? / \\ { | }."); ErrorMessages.Add(InvalidAbsoluteUrlFormat, "The absolute url contains invalid characters. Please use a different name. Valid absolute url cannot ends with the following strings: .aspx, .ashx, .asmx, .svc"); ErrorMessages.Add(InvalidUrlConsecutiveSlashes, "The Url contains consecutive slashes which is not allowed."); ErrorMessages.Add(SharePointRecordWithDuplicateUrl, "There is already a record with the same Url."); ErrorMessages.Add(SharePointAbsoluteAndRelativeUrlEmpty, "Both absolute URL and relative URL cannot be null."); ErrorMessages.Add(ImportOptionSetsError, "An error occurred while importing OptionSets."); ErrorMessages.Add(ImportRibbonsError, "An error occurred while importing Ribbons."); ErrorMessages.Add(ImportReportsError, "An error occurred while importing Reports."); ErrorMessages.Add(ImportSolutionError, "An error occurred while importing a Solution."); ErrorMessages.Add(ImportDependencySolutionError, "{0} requires solutions that are not currently installed. Import the following solutions before Importing this one. {1} "); ErrorMessages.Add(ExportSolutionError, "An error occurred while exporting a Solution."); ErrorMessages.Add(ExportManagedSolutionError, "An error occurred while exporting a solution. Managed solutions cannot be exported."); ErrorMessages.Add(ExportMissingSolutionError, "An error occurred while exporting a solution. The solution does not exist in this system."); ErrorMessages.Add(ImportSolutionManagedError, "Solution '{0}' already exists in this system as managed and cannot be upgraded."); ErrorMessages.Add(ImportOptionSetAttributeError, "Attribute '{0}' was not imported as it references a non-existing global Option Set ('{1}')."); ErrorMessages.Add(ImportSolutionManagedToUnmanagedMismatch, "The solution is already installed on this system as an unmanaged solution and the package supplied is attempting to install it in managed mode. Import can only update solutions when the modes match. Uninstall the current solution and try again."); ErrorMessages.Add(ImportSolutionUnmanagedToManagedMismatch, "The solution is already installed on this system as a managed solution and the package supplied is attempting to install it in unmanaged mode. Import can only update solutions when the modes match. Uninstall the current solution and try again."); ErrorMessages.Add(ImportSolutionIsvConfigWarning, "ISV Config was overwritten."); ErrorMessages.Add(ImportSolutionSiteMapWarning, "SiteMap was overwritten."); ErrorMessages.Add(ImportSolutionOrganizationSettingsWarning, "Organization settings were overwritten."); ErrorMessages.Add(ImportExportDeprecatedError, "This message is no longer available. Please consult the SDK for alternative messages."); ErrorMessages.Add(ImportSystemSolutionError, "System solution cannot be imported."); ErrorMessages.Add(ImportTranslationMissingSolutionError, "An error occurred while importing the translations. The solution associated with the translations does not exist in this system."); ErrorMessages.Add(ExportDefaultAsPackagedError, "The default solution cannot be exported as a package."); ErrorMessages.Add(ImportDefaultAsPackageError, "The package supplied for the default solution is trying to install it in managed mode. The default solution cannot be managed. In the XML for the default solution, set the Managed value back to \"false\" and try to import the solution again."); ErrorMessages.Add(ImportCustomizationsBadZipFileError, "The solution file is invalid. The compressed file must contain the following files at its root: solution.xml, customizations.xml, and [Content_Types].xml. Customization files exported from previous versions of Microsoft Dynamics 365 are not supported."); ErrorMessages.Add(ImportTranslationsBadZipFileError, "The translation file is invalid. The compressed file must contain the following files at its root: {0}, [Content_Types].xml."); ErrorMessages.Add(ImportAttributeNameError, "Invalid name for attribute {0}. Custom attribute names must start with a valid customization prefix. The prefix for a solution component should match the prefix that is specified for the publisher of the solution."); ErrorMessages.Add(ImportFieldSecurityProfileIsSecuredMissingError, "Some field security permissions could not be imported because the following fields are not securable: {0}."); ErrorMessages.Add(ImportFieldSecurityProfileAttributesMissingError, "Some field security permissions could not be imported because the following fields are not in the system: {0}."); ErrorMessages.Add(ImportFileSignatureInvalid, "The import file has an invalid digital signature."); ErrorMessages.Add(ImportSolutionPackageNotValid, "The solution package you are importing was generated on a version of Microsoft Dynamics 365 that cannot be imported into this system. Package Version: {0} {1}, System Version: {2} {3}."); ErrorMessages.Add(ImportSolutionPackageNeedsUpgrade, "The solution package you are importing was generated on a different version of Microsoft Dynamics 365. The system will attempt to transform the package prior to import. Package Version: {0} {1}, System Version: {2} {3}."); ErrorMessages.Add(ImportSolutionPackageInvalidSolutionPackageVersion, "You can only import solutions with a package version of {0} or earlier into this organization. Also, you can't import any solutions into this organization that were exported from Microsoft Dynamics 365 2011 or earlier."); ErrorMessages.Add(ImportSolutionPackageMinimumVersionNeeded, "Deprecated, not removing now as it might cause issues during integrations."); ErrorMessages.Add(ImportSolutionPackageRequiresOptInAvailable, "Some components in the solution package you are importing require opt in. Opt in is available, please consult your administrator."); ErrorMessages.Add(ImportSolutionPackageRequiresOptInNotAvailable, "The solution package you are importing was generated on a SKU of Microsoft Dynamics 365 that supports opt in. It cannot be imported in your system."); ErrorMessages.Add(ImportSdkMessagesError, "An error occurred while importing Sdk Messages."); ErrorMessages.Add(ImportEmailTemplatePersonalError, "E-mail Template was not imported. The Template is a personal template on the target system; import cannot overwrite personal templates."); ErrorMessages.Add(ImportNonWellFormedFileError, "Invalid customization file. This file is not well formed."); ErrorMessages.Add(ImportPluginTypesError, "An error occurred while importing plug-in types."); ErrorMessages.Add(ImportSiteMapError, "An error occurred while importing the Site Map."); ErrorMessages.Add(ImportNewPluginTypesError, "Existing plug-in types have been removed. Please update major or minor verion of plug-in assembly."); ErrorMessages.Add(DefaultSiteMapDeleteFailure, "Cannot delete default site map."); ErrorMessages.Add(ImportMappingsMissingEntityMapError, "This customization file contains a reference to an entity map that does not exist on the target system."); ErrorMessages.Add(ImportMappingsSystemMapError, "Import cannot create system attribute mappings"); ErrorMessages.Add(ImportIsvConfigError, "There was an error parsing the IsvConfig during Import"); ErrorMessages.Add(ImportArticleTemplateError, "There was an error in parsing the article templates in Import Xml"); ErrorMessages.Add(ImportEmailTemplateError, "There was an error in parsing the email templates in Import Xml"); ErrorMessages.Add(ImportContractTemplateError, "There was an error in parsing the contract templates in Import Xml"); ErrorMessages.Add(ImportRelationshipRoleMapsError, "The number of format parameters passed into the input string is incorrect"); ErrorMessages.Add(ImportRelationshipRolesError, "The number of format parameters passed into the input string is incorrect"); ErrorMessages.Add(ImportRelationshipRolesPrivilegeError, "{0} cannot be imported. The {1} privilege is required to import this component."); ErrorMessages.Add(ImportEntityNameMismatchError, "The number of format parameters passed into the input string is incorrect"); ErrorMessages.Add(ImportFormXmlError, "The number of format parameters passed into the input string is incorrect"); ErrorMessages.Add(ImportFieldXmlError, "The number of format parameters passed into the input string is incorrect"); ErrorMessages.Add(ImportSavedQueryExistingError, "The number of format parameters passed into the input string is incorrect"); ErrorMessages.Add(ImportSavedQueryOtcMismatchError, "There was an error processing saved queries of the same object type code (unresolvable system collision)"); ErrorMessages.Add(ImportEntityCustomResourcesNewStringError, "Invalid Entity new string in the Custom Resources"); ErrorMessages.Add(ImportEntityCustomResourcesError, "Invalid Custom Resources in the Import File"); ErrorMessages.Add(ImportEntityIconError, "Invalid Icon in the Import File"); ErrorMessages.Add(ImportSavedQueryDeletedError, "A saved query with the same id is marked as deleted in the system. Please first publish the customized entity and import again."); ErrorMessages.Add(ImportEntitySystemUserOnPremiseMismatchError, "The systemuser entity was imported, but customized forms for the entity were not imported. Systemuser entity forms from Microsoft Dynamics 365 Online cannot be imported into on-premises or hosted versions of Microsoft Dynamics 365."); ErrorMessages.Add(ImportEntitySystemUserLiveMismatchError, "The systemuser entity was imported but customized forms for the entity were not imported. Systemuser entity forms from on-premises or hosted versions of Microsoft Dynamics 365 cannot be imported into Microsoft Dynamics 365 Online."); ErrorMessages.Add(ImportLanguagesIgnoredError, "Translated labels for the following languages could not be imported because they have not been enabled for this organization: {0}"); ErrorMessages.Add(ImportInvalidFileError, "Invalid Import File"); ErrorMessages.Add(ImportXsdValidationError, "The import file is invalid. XSD validation failed with the following error: '{0}'. The validation failed at: '...{1} <<<<<ERROR LOCATION>>>>> {2}...'.\""); ErrorMessages.Add(ImportInvalidXmlError, "This solution package cannot be imported because it contains invalid XML. You can attempt to repair the file by manually editing the XML contents using the information found in the schema validation errors, or you can contact your solution provider."); ErrorMessages.Add(ImportWrongPublisherError, "The following managed solution cannot be imported: {0}. The publisher name cannot be changed from {1} to {2}."); ErrorMessages.Add(ImportMissingDependenciesError, "The following solution cannot be imported: {0}. Some dependencies are missing."); ErrorMessages.Add(ImportGenericError, "The import failed. For more information, see the related error messages."); ErrorMessages.Add(ImportMissingComponent, "Cannot add a Root Component {0} of type {1} because it is not in the target system."); ErrorMessages.Add(ImportMissingRootComponentEntry, "The import has failed because component {0} of type {1} is not declared in the solution file as a root component. To fix this, import again using the XML file that was generated when you exported the solution."); ErrorMessages.Add(UnmanagedComponentParentsManagedComponent, "Found {0} dependency records where unmanaged component is the parent of a managed component. First record (dependentcomponentobjectid = {1}, type = {2}, requiredcomponentobjectid = {3}, type= {4}, solution = {5})."); ErrorMessages.Add(FailedToGetNetworkServiceName, "Failed to obtain the localized name for NetworkService account"); ErrorMessages.Add(CustomParentingSystemNotSupported, "A custom entity can not have a parental relationship to a system entity"); ErrorMessages.Add(InvalidFormatParameters, "The number of format parameters passed into the input string is incorrect"); ErrorMessages.Add(InvalidHierarchicalRelationship, "This relationship is not self-referential and therefore cannot be made hierarchical."); ErrorMessages.Add(MissingHierarchicalRelationshipForOperator, "This query uses a hierarchical operator, but the {0} entity doesn't have a hierarchical relationship."); ErrorMessages.Add(DuplicatePrimaryNameAttribute, "The new {2} attribute is set as the primary name attribute for the {1} entity. The {1} entity already has the {0} attribute set as the primary name attribute. An entity can only have one primary name attribute."); ErrorMessages.Add(ConfigurationPageNotValidForSolution, "The solution configuration page must exist within the solution it represents."); ErrorMessages.Add(SolutionConfigurationPageMustBeHtmlWebResource, "The solution configuration page must exist within the solution it represents."); ErrorMessages.Add(InvalidSolutionConfigurationPage, "The specified configuration page for this solution is invalid."); ErrorMessages.Add(InvalidHierarchicalRelationshipChange, "You can’t change this entity’s hierarchy because the {0} hierarchical relationship can’t be customized."); ErrorMessages.Add(InvalidLanguageForSolution, "Solution and Publisher Options are not available since your language does not match system base language."); ErrorMessages.Add(CannotHaveDuplicateYomi, "One attribute can be tied to only one yomi at a time"); ErrorMessages.Add(SavedQueryIsNotCustomizable, "The specified view is not customizable"); ErrorMessages.Add(CannotDeleteChildAttribute, "The Child Attribute is not valid for deletion"); ErrorMessages.Add(EntityHasNoStateCode, "Specified entity does not have a statecode."); ErrorMessages.Add(NoAttributesForEntityCreate, "No attributes for Create Entity action."); ErrorMessages.Add(DuplicateAttributeSchemaName, "An attribute with the specified name already exists"); ErrorMessages.Add(DuplicateDisplayCollectionName, "An object with the specified display collection name already exists."); ErrorMessages.Add(DuplicateDisplayName, "An object with the specified display name already exists."); ErrorMessages.Add(DuplicateName, "An object with the specified name already exists"); ErrorMessages.Add(InvalidRelationshipType, "The specified relationship type is not valid for this operation"); ErrorMessages.Add(InvalidPrimaryFieldType, "Primary UI Attribute has to be of type String"); ErrorMessages.Add(InvalidOwnershipTypeMask, "The specified ownership type mask is not valid for this operation"); ErrorMessages.Add(InvalidDisplayName, "The specified display name is not valid"); ErrorMessages.Add(InvalidSchemaName, "An entity with the specified name already exists. Please specify a unique name."); ErrorMessages.Add(RelationshipIsNotCustomRelationship, "The specified relationship is not a custom relationship"); ErrorMessages.Add(AttributeIsNotCustomAttribute, "The specified attribute is not a custom attribute"); ErrorMessages.Add(EntityIsNotCustomizable, "The specified entity is not customizable"); ErrorMessages.Add(MultipleParentsNotSupported, "An entity can have only one parental relationship"); ErrorMessages.Add(CannotCreateActivityRelationship, "Relationship with activities cannot be created through this operation"); ErrorMessages.Add(CyclicalRelationship, "The specified relationship will result in a cycle."); ErrorMessages.Add(InvalidRelationshipDescription, "The specified relationship cannot be created"); ErrorMessages.Add(CannotDeletePrimaryUIAttribute, "The Primary UI Attribute is not valid for deletion"); ErrorMessages.Add(RowGuidIsNotValidName, "rowguid is a reserved name and cannot be used as an identifier"); ErrorMessages.Add(FailedToScheduleActivity, "Failed to schedule activity."); ErrorMessages.Add(CannotDeleteLastEmailAttribute, "You cannot delete this field because the record type has been enabled for e-mail."); ErrorMessages.Add(SystemAttributeMap, "SystemAttributeMap Error Occurred"); ErrorMessages.Add(UpdateAttributeMap, "UpdateAttributeMap Error Occurred"); ErrorMessages.Add(InvalidAttributeMap, "InvalidAttributeMap Error Occurred"); ErrorMessages.Add(SystemEntityMap, "SystemEntityMap Error Occurred"); ErrorMessages.Add(UpdateEntityMap, "UpdateEntityMap Error Occurred"); ErrorMessages.Add(NonMappableEntity, "NonMappableEntity Error Occurred"); ErrorMessages.Add(unManagedidsCalloutException, "Callout code throws exception"); ErrorMessages.Add(unManagedidscalloutinvalidevent, "Invalid callout event"); ErrorMessages.Add(unManagedidscalloutinvalidconfig, "Invalid callout configuration"); ErrorMessages.Add(unManagedidscalloutisvstop, "Callout ISV code stopped the operation"); ErrorMessages.Add(unManagedidscalloutisvabort, "Callout ISV code aborted the operation"); ErrorMessages.Add(unManagedidscalloutisvexception, "Callout ISV code throws exception"); ErrorMessages.Add(unManagedidscustomentityambiguousrelationship, "More than one relationship between the requested entities exists."); ErrorMessages.Add(unManagedidscustomentitynorelationship, "No relationship exists between the requested entities."); ErrorMessages.Add(unManagedidscustomentityparentchildidentical, "The supplied parent and child entities are identical."); ErrorMessages.Add(unManagedidscustomentityinvalidparent, "The supplied parent passed in is not a valid entity."); ErrorMessages.Add(unManagedidscustomentityinvalidchild, "The supplied child passed in is not a valid entity."); ErrorMessages.Add(unManagedidscustomentitywouldcreateloop, "This association would create a loop in the database."); ErrorMessages.Add(unManagedidscustomentityexistingloop, "There is an existing loop in the database."); ErrorMessages.Add(unManagedidscustomentitystackunderflow, "Custom entity MD stack underflow."); ErrorMessages.Add(unManagedidscustomentitystackoverflow, "Custom entity MD stack overflow."); ErrorMessages.Add(unManagedidscustomentitytlsfailure, "Custom entity MD TLS not initialized."); ErrorMessages.Add(unManagedidscustomentityinvalidownership, "Custom entity ownership type mask is improperly set."); ErrorMessages.Add(unManagedidscustomentitynotinitialized, "Custom entity interface was not properly initialized."); ErrorMessages.Add(unManagedidscustomentityalreadyinitialized, "Custom entity interface already initialized on this thread."); ErrorMessages.Add(unManagedidscustomentitynameviolation, "Supplied entity found, but it is not a custom entity."); ErrorMessages.Add(unManagedidscascadeunexpectederror, "Unexpected error occurred in cascading operation"); ErrorMessages.Add(unManagedidscascadeemptylinkerror, "The relationship link is empty"); ErrorMessages.Add(unManagedidscascadeundefinedrelationerror, "Relationship type is not supported"); ErrorMessages.Add(unManagedidscascadeinconsistencyerror, "Cascade map information is inconsistent."); ErrorMessages.Add(MergeLossOfParentingWarning, "Merge warning: sub-entity might lose parenting"); ErrorMessages.Add(MergeDifferentlyParentedWarning, "Merge warning: sub-entity will be differently parented."); ErrorMessages.Add(MergeEntitiesIdenticalError, "Merge cannot be performed on master and sub-entities that are identical."); ErrorMessages.Add(MergeEntityNotActiveError, "Merge cannot be performed on entity that is inactive."); ErrorMessages.Add(unManagedidsmergedifferentbizorgerror, "Merge cannot be performed on entities from different business entity."); ErrorMessages.Add(MergeActiveQuoteError, "Merge cannot be performed on sub-entity that has active quote."); ErrorMessages.Add(MergeSecurityError, "Merge is not allowed: caller does not have the privilege or access."); ErrorMessages.Add(MergeCyclicalParentingError, "Merge could create cyclical parenting."); ErrorMessages.Add(unManagedidscalendarruledoesnotexist, "The calendar rule does not exist."); ErrorMessages.Add(unManagedidscalendarinvalidcalendar, "The calendar is invalid."); ErrorMessages.Add(AttachmentInvalidFileName, "Attachment file name contains invalid characters."); ErrorMessages.Add(unManagedidsattachmentcannottruncatetempfile, "Cannot truncate temporary attachment file."); ErrorMessages.Add(unManagedidsattachmentcannotunmaptempfile, "Cannot unmap temporary attachment file."); ErrorMessages.Add(unManagedidsattachmentcannotcreatetempfile, "Cannot create temporary attachment file."); ErrorMessages.Add(unManagedidsattachmentisempty, "Attachment is empty."); ErrorMessages.Add(unManagedidsattachmentcannotreadtempfile, "Cannot read temporary attachment file."); ErrorMessages.Add(unManagedidsattachmentinvalidfilesize, "Attachment file size is too big."); ErrorMessages.Add(unManagedidsattachmentcannotgetfilesize, "Cannot get temporary attachment file size."); ErrorMessages.Add(unManagedidsattachmentcannotopentempfile, "Cannot open temporary attachment file."); ErrorMessages.Add(unManagedidscustomizationtransformationnotsupported, "Transformation is not supported for this object."); ErrorMessages.Add(ContractDetailDiscountAmountAndPercent, "Both 'amount' and 'percentage' cannot be set."); ErrorMessages.Add(ContractDetailDiscountAmount, "The contract's discount type does not support 'percentage' discounts."); ErrorMessages.Add(ContractDetailDiscountPercent, "The contract's discount type does not support 'amount' discounts."); ErrorMessages.Add(IncidentIsAlreadyClosedOrCancelled, "Already Closed or Canceled"); ErrorMessages.Add(unManagedidsincidentparentaccountandparentcontactnotpresent, "You should specify a parent contact or account."); ErrorMessages.Add(unManagedidsincidentparentaccountandparentcontactpresent, "You can either specify a parent contact or account, but not both."); ErrorMessages.Add(IncidentCannotCancel, "The incident can not be cancelled because there are open activities for this incident."); ErrorMessages.Add(IncidentInvalidContractLineStateForCreate, "The case can not be created against this contract line item because the contract line item is cancelled or expired."); ErrorMessages.Add(IncidentNullSpentTimeOrBilled, "The timespent on the Incident is NULL or IncidentResolution Activity's IsBilled is NULL."); ErrorMessages.Add(IncidentInvalidAllotmentType, "The allotment type for the contract is invalid."); ErrorMessages.Add(unManagedidsincidentcannotclose, "The incident can not be closed because there are open activities for this incident."); ErrorMessages.Add(IncidentMissingActivityRegardingObject, "The incident id is missing."); ErrorMessages.Add(unManagedidsincidentmissingactivityobjecttype, "Missing object type code."); ErrorMessages.Add(unManagedidsincidentnullactivitytypecode, "The activitytypecode can't be NULL."); ErrorMessages.Add(unManagedidsincidentinvalidactivitytypecode, "The activitytypecode is wrong."); ErrorMessages.Add(unManagedidsincidentassociatedactivitycorrupted, "The activity associated with this case is corrupted."); ErrorMessages.Add(unManagedidsincidentinvalidstate, "Incident state is invalid."); ErrorMessages.Add(IncidentContractDoesNotHaveAllotments, "The contract does not have enough allotments. The case can not be created against this contract."); ErrorMessages.Add(unManagedidsincidentcontractdetaildoesnotmatchcontract, "The contract line item is not in the specified contract."); ErrorMessages.Add(IncidentMissingContractDetail, "The contract detail id is missing."); ErrorMessages.Add(IncidentInvalidContractStateForCreate, "The case can not be created against this contract because of the contract state."); ErrorMessages.Add(InvalidPrimaryContactBasedOnAccount, "The specified contact doesn't belong to the account selected as the customer. Specify a contact that belongs to the selected account, and then try again."); ErrorMessages.Add(InvalidPrimaryContactBasedOnContact, "The specified contact doesn't belong to the contact that was specified in the customer field. Remove the value from the contact field, or select a contact associated to the selected customer, and then try again."); ErrorMessages.Add(InvalidEntitlementForSelectedCustomerOrProduct, "Select an active entitlement that belongs to the specified customer, contact, or product, and then try again."); ErrorMessages.Add(InvalidEntitlementContacts, "The specified contact isn’t associated with the selected customer."); ErrorMessages.Add(EntitlementAlreadyInCanceledState, "You can't cancel an entitlement when it's in the Canceled state."); ErrorMessages.Add(DisabledCRMGoingOffline, "Microsoft Dynamics 365 functionality is not available while Offline Synchronization is occuring"); ErrorMessages.Add(DisabledCRMGoingOnline, "Microsoft Dynamics 365 functionality is not available while Online Synchronization is occuring"); ErrorMessages.Add(DisabledCRMAddinLoadFailure, "An error occurred loading Microsoft Dynamics 365 functionality. Try restarting Outlook. Contact your system administrator if errors persist."); ErrorMessages.Add(DisabledCRMClientVersionLower, "You're running a version of Microsoft Dynamics 365 for Outlook that is not supported for offline mode with this Microsoft Dynamics 365 organization {0}. You'll need to upgrade to a compatible version of Dynamics 365 for Outlook. Make sure your current version of Dynamics 365 for Outlook is supported for upgrading to the compatible version."); ErrorMessages.Add(DisabledCRMClientVersionHigher, "The Microsoft Dynamics 365 server needs to be upgraded before Microsoft Dynamics 365 client can be used. Contact your system administrator for assistance."); ErrorMessages.Add(DisabledCRMPostOfflineUpgrade, "Microsoft Dynamics 365 functionality is not available until the Microsoft Dynamics 365 client is taken back online"); ErrorMessages.Add(DisabledCRMOnlineCrmNotAvailable, "Microsoft Dynamics 365 server is not available"); ErrorMessages.Add(GoOfflineMetadataVersionsMismatch, "Client and Server metadata versions are different due to new customization on the server. Please try going offline again."); ErrorMessages.Add(GoOfflineGetBCPFileException, "Dynamics 365 server was not able to process your request. Contact your system administrator for assistance and try going offline again."); ErrorMessages.Add(GoOfflineDbSizeLimit, "You have exceeded the storage limit for your offline database. You must reduce the amount of data to be taken offline by changing your Local Data Groups."); ErrorMessages.Add(GoOfflineServerFailedGenerateBCPFile, "Dynamics 365 server was not able to generate BCP file. Contact your system administrator for assistance and try going offline again."); ErrorMessages.Add(GoOfflineBCPFileSize, "Client was not able to download BCP file. Contact your system administrator for assistance and try going offline again."); ErrorMessages.Add(GoOfflineFailedMoveData, "Client was not able to download data. Contact your system administrator for assistance and try going offline again."); ErrorMessages.Add(GoOfflineFailedPrepareMsde, "Prepare MSDE failed. Contact your system administrator for assistance and try going offline again."); ErrorMessages.Add(GoOfflineFailedReloadMetadataCache, "The Microsoft Dynamics 365 for Outlook was unable to go offline. Please try going offline again."); ErrorMessages.Add(DoNotTrackItem, "Selected item will not be tracked."); ErrorMessages.Add(GoOfflineFileWasDeleted, "Data file was deleted on server before it was sent to client."); ErrorMessages.Add(GoOfflineEmptyFileForDelete, "Data file for delete is empty."); ErrorMessages.Add(InvalidForOfficeGraph, "One or both entities are not enabled for officegraph and they cannot be used for officegraph."); ErrorMessages.Add(TrendingDocumentsOnpremiseDeploymentError, "The Trending Documents dashboard component isn't supported by your company's Microsoft Office service."); ErrorMessages.Add(TrendingDocumentsIntegrationDisabledError, "Trending Documents is disabled for your Microsoft Dynamics 365 account."); ErrorMessages.Add(TrendingDocumentsDataRetrievalFailure, "We can't get to the trending documents. Try again later."); ErrorMessages.Add(RelationshipNotCreatedForOfficeGraphError, "This relationship cannot be created because neither entity is enabled for officegraph."); ErrorMessages.Add(RelationshipNotUpdatedForOfficeGraphError, "This relationship cannot be updated for officegraph because neither entity is enabled for officegraph."); ErrorMessages.Add(AttributeNotCreatedForOfficeGraphError, "This attribute cannot be created since support to enable attribute for officegraph is not available."); ErrorMessages.Add(AttributeNotUpdatedForOfficeGraphError, "This attribute cannot be updated since support to enable attribute for officegraph is not available."); ErrorMessages.Add(OfficeGraphDisabledError, "Document Recommendations has been disabled for this organization."); ErrorMessages.Add(BaseAttributeNameNotPresentError, "BaseAttribute name should be present in condition xml."); ErrorMessages.Add(OperatorCodeNotPresentError, "OperatorCode should be present in condition xml."); ErrorMessages.Add(InvalidBaseAttributeError, "Invalid Base attribute."); ErrorMessages.Add(MatchingAttributeNameNotNullError, "Matching attribute name should be null single entity rule."); ErrorMessages.Add(InvalidMatchingAttributeError, "Invalid Matching attribute."); ErrorMessages.Add(BaseMatchingAttributeNotSameError, "Base and Matching attribute should be of same type."); ErrorMessages.Add(InvalidOperatorCodeError, "Invalid operator code."); ErrorMessages.Add(InvalidSimilarityRuleStateError, "Invalid similarity rule state."); ErrorMessages.Add(TrendingDocumentsIntegrationTurnedOffError, "Trending Documents is turned off. Please contact your system administrator to turn this feature on in System Settings."); ErrorMessages.Add(OfficeGraphSiteNotConfigured, "No default SharePoint site has been configured."); ErrorMessages.Add(TrendingDocumentsOfflineModeError, "Trending Documents isn't available in offline mode."); ErrorMessages.Add(S2SNotConfigured, "Office Graph Integration relies on server-based SharePoint integration. To use this feature, enable server-based integration and have at least one active SharePoint site."); ErrorMessages.Add(GraphApiS2SSetupFailureException, "Server to Server Authentication with Exchange for Office Graph Api is not set up."); ErrorMessages.Add(ProvisionRIAccessNotAllowed, "You need system administrator privileges to turn Relationship Insights on for your organization."); ErrorMessages.Add(InvalidRequestDataFormat, "The updated configuration includes invalid data."); ErrorMessages.Add(InvalidFeatureType, "The feature type isn’t valid."); ErrorMessages.Add(UpdateRIOrganizationDataAccessNotAllowed, "This feature configuration can only be updated by a system administrator."); ErrorMessages.Add(DeprovisionRIAccessNotAllowed, "Relationship Insights can only be turned off by a system administrator."); ErrorMessages.Add(ActivityAnalysisOrganizationUpdateError, "Relationship Analytics organization setting can only be enabled if Relationship Analytics solution is installed."); ErrorMessages.Add(RelationshipIntelligenceSDKInvocationError, "You need Dynamics 365 (online) to use the Relationship Insights SDK."); ErrorMessages.Add(EnableRIFeatureNotAllowed, "You need system administrator privileges to update Relationship Insights tenant information."); ErrorMessages.Add(DisableRIFeatureNotAllowed, "You need system administrator privileges to turn Relationship Insights off for your organization."); ErrorMessages.Add(RINotProvisioned, "Relationship Insights hasn’t been turned on for your organization {0}."); ErrorMessages.Add(ErrorOnGetRIProvisionStatus, "We can’t get the Relationship Insights provisioning status for organization ID {0}. Exception details {1}."); ErrorMessages.Add(ErrorOnGetRITenantEndPoint, "We can’t get the Relationship Insights tenant endpoint information for organization ID {0}. Exception details {1}."); ErrorMessages.Add(ErrorOnStartOfRIProvision, "We can’t start provisioning for organization ID {0}. Exception details {1}."); ErrorMessages.Add(ErrorOnTenantVerifyUpdate, "We can’t verify or update tenant information for organization ID {0}. Exception details {1}."); ErrorMessages.Add(ErrorOnGetRecord, "There was an error fetching a record for table {0}. Exception details {1}."); ErrorMessages.Add(ErrorOnQryPropertyBagCollection, "The query didn’t return all {0} columns."); ErrorMessages.Add(ErrorPropertyBagCollectionMissedColumn, "{0} column for table {1} is missing."); ErrorMessages.Add(ErrorOnFeatureStatusChange, "We can’t enable/disable the {0} feature for organization Id {1}. Exception details {2}."); ErrorMessages.Add(ErrorFetchingBaseUrl, "We can't fetch base URL for organization Id {0}. Exception details {1}"); ErrorMessages.Add(ErrorFetchingRIProvisionStatus, "We can't fetch RI provisioning status for organization Id {0}. Exception details {1}"); ErrorMessages.Add(RelationshipInsightsFeatureDisableError, "Relationship Insights feature can't be disabled"); ErrorMessages.Add(RelationshipInsightsFeatureNotEnabledError, "Relationship Insights feature is not enabled or RI package is not installed"); ErrorMessages.Add(ClientVersionTooLow, "This version of Outlook client isn't compatible with your Dynamics 365 organization (current version {0} is too low)."); ErrorMessages.Add(ClientVersionTooHigh, "This version of Outlook client isn't compatible with your Dynamics 365 organization (current version {0} is too high)."); ErrorMessages.Add(InsufficientAccessMode, "User does not have read-write access to the Dynamics 365 organization."); ErrorMessages.Add(ClientServerDateTimeMismatch, "Your computer's date/time is out of sync with the server by more than 5 minutes."); ErrorMessages.Add(ClientServerEmailAddressMismatch, "The Outlook email address and Dynamics 365 user email address do not match."); ErrorMessages.Add(FederatedEndpointError, "The username ADFS endpoint is enabled, which is blocking the intended authentication endpoint from being reached."); ErrorMessages.Add(CommunicationBlocked, "Communication is blocked due to a socket exception."); ErrorMessages.Add(UserDoesNotHaveAccessToTheTenant, "User does not have access to the tenant."); ErrorMessages.Add(ConfiguredUserIsDifferentThanSuppliedUser, "Configured user is different than supplied user."); ErrorMessages.Add(OutlookClientConfigActionFailed, "Dynamics 365 Outlook client configuration action failed."); ErrorMessages.Add(OrganizationUIDeprecated, "The OrganizationUI entity is deprecated. It has been replaced by the SystemForm entity."); ErrorMessages.Add(IsKitCannotBeNull, "Attribute iskit cannot be null"); ErrorMessages.Add(SqlMaxRecursionExceeded, "The maximum recursion has reached before statement completion."); ErrorMessages.Add(unManagedidssqltimeouterror, "SQL timeout expired."); ErrorMessages.Add(unManagedidssqlerror, "Generic SQL error."); ErrorMessages.Add(unManagedidsrcsyncinvalidfiltererror, "Invalid filter specified."); ErrorMessages.Add(unManagedidsrcsyncnotprimary, "Cannot sync: not the primary OutlookSync client."); ErrorMessages.Add(unManagedidsrcsyncnoprimary, "No primary client exists."); ErrorMessages.Add(unManagedidsrcsyncnoclient, "Client does not exist."); ErrorMessages.Add(unManagedidsrcsyncmethodnone, "Synchronization tasks can’t be performed on this computer since the synchronization method is set to None."); ErrorMessages.Add(unManagedidsrcsyncfilternoaccess, "Cannot go offline: missing access rights on required entity."); ErrorMessages.Add(InvalidOfflineOperation, "Operation not valid when offline."); ErrorMessages.Add(unManagedidsrcsyncsqlgenericerror, "unManagedidsrcsyncsqlgenericerror"); ErrorMessages.Add(unManagedidsrcsyncsqlpausederror, "unManagedidsrcsyncsqlpausederror"); ErrorMessages.Add(unManagedidsrcsyncsqlstoppederror, "unManagedidsrcsyncsqlstoppederror"); ErrorMessages.Add(unManagedidsrcsyncsubscriptionowner, "The caller id does not match the subscription owner id. Only subscription owners may perform subscription operations."); ErrorMessages.Add(unManagedidsrcsyncinvalidsubscription, "The specified subscription does not exist."); ErrorMessages.Add(unManagedidsrcsyncsoapparseerror, "unManagedidsrcsyncsoapparseerror"); ErrorMessages.Add(unManagedidsrcsyncsoapreaderror, "unManagedidsrcsyncsoapreaderror"); ErrorMessages.Add(unManagedidsrcsyncsoapfaulterror, "unManagedidsrcsyncsoapfaulterror"); ErrorMessages.Add(unManagedidsrcsyncsoapservererror, "unManagedidsrcsyncsoapservererror"); ErrorMessages.Add(unManagedidsrcsyncsoapsendfailed, "unManagedidsrcsyncsoapsendfailed"); ErrorMessages.Add(unManagedidsrcsyncsoapconnfailed, "unManagedidsrcsyncsoapconnfailed"); ErrorMessages.Add(unManagedidsrcsyncsoapgenfailed, "unManagedidsrcsyncsoapgenfailed"); ErrorMessages.Add(unManagedidsrcsyncmsxmlfailed, "unManagedidsrcsyncmsxmlfailed"); ErrorMessages.Add(unManagedidsrcsyncinvalidsynctime, "The specified sync time is invalid. Sync times must not be earlier than those returned by the previous sync. Please reinitialize your subscription."); ErrorMessages.Add(AttachmentBlocked, "The attachment is either not a valid type or is too large. It cannot be uploaded or downloaded."); ErrorMessages.Add(unManagedidsarticletemplateisnotactive, "KB article template is inactive."); ErrorMessages.Add(unManagedidsfulltextoperationfailed, "Full text operation failed."); ErrorMessages.Add(unManagedidsarticletemplatecontainsarticles, "Cannot change article template because there are knowledge base articles using it."); ErrorMessages.Add(unManagedidsqueueorganizationidnotmatch, "Callers' organization Id does not match businessunit's organization Id."); ErrorMessages.Add(unManagedidsqueuemissingbusinessunitid, "Missing businessunitid."); ErrorMessages.Add(SubjectDoesNotExist, "Subject does not exist."); ErrorMessages.Add(SubjectLoopBeingCreated, "Creating this parental association would create a loop in Subjects hierarchy."); ErrorMessages.Add(SubjectLoopExists, "Loop exists in the subjects hierarchy."); ErrorMessages.Add(InvalidSubmitFromUnapprovedArticle, "You are trying to submit an article that has a status of unapproved. You can only submit an article with the status of draft."); ErrorMessages.Add(InvalidUnpublishFromUnapprovedArticle, "You are trying to unpublish an article that has a status of unapproved. You can only unpublish an article with the status of publish."); ErrorMessages.Add(InvalidApproveFromDraftArticle, "You are trying to approve an article that has a status of draft. You can only approve an article with the status of unapproved."); ErrorMessages.Add(InvalidUnpublishFromDraftArticle, "You are trying to unpublish an article that has a status of draft. You can only unpublish an article with the status of published."); ErrorMessages.Add(InvalidApproveFromPublishedArticle, "You are trying to approve an article that has a status of published. You can only approve an article with the status of unapproved."); ErrorMessages.Add(InvalidSubmitFromPublishedArticle, "You are trying to submit an article that has a status of published. You can only submit an article with the status of draft."); ErrorMessages.Add(QuoteReviseExistingActiveQuote, "Quote cannot be revised as there already exists another quote in Draft/Active state and with same quote number."); ErrorMessages.Add(BaseCurrencyNotDeletable, "The base currency of an organization cannot be deleted."); ErrorMessages.Add(CannotDeleteBaseMoneyCalculationAttribute, "The base money calculation Attribute is not valid for deletion"); ErrorMessages.Add(InvalidExchangeRate, "The exchange rate is invalid."); ErrorMessages.Add(InvalidCurrency, "The currency is invalid."); ErrorMessages.Add(CurrencyCannotBeNullDueToNonNullMoneyFields, "The currency cannot be null."); ErrorMessages.Add(CannotUpdateProductCurrency, "The currency of the product cannot be updated because there are associated price list items with pricing method percentage."); ErrorMessages.Add(InvalidPriceLevelCurrencyForPricingMethod, "The currency of the price list needs to match the currency of the product for pricing method percentage."); ErrorMessages.Add(DiscountTypeAndPriceLevelCurrencyNotEqual, "The currency of the discount needs to match the currency of the price list for discount type amount."); ErrorMessages.Add(CurrencyRequiredForDiscountTypeAmount, "The currency cannot be null for discount type amount."); ErrorMessages.Add(RecordAndPricelistCurrencyNotEqual, "The currency of the record does not match the currency of the price list."); ErrorMessages.Add(ExchangeRateOfBaseCurrencyNotUpdatable, "The exchange rate of the base currency cannot be modified."); ErrorMessages.Add(BaseCurrencyCannotBeDeactivated, "The base currency cannot be deactivated."); ErrorMessages.Add(DuplicateIsoCurrencyCode, "Cannot insert duplicate currency record. Currency with the same currency code already exist in the system."); ErrorMessages.Add(InvalidIsoCurrencyCode, "Invalid ISO currency code."); ErrorMessages.Add(PercentageDiscountCannotHaveCurrency, "Currency cannot be set when discount type is percentage."); ErrorMessages.Add(RecordAndOpportunityCurrencyNotEqual, "The currency of the record does not match the currency of the price list."); ErrorMessages.Add(QuoteAndSalesOrderCurrencyNotEqual, "The currency of the record does not match the currency of the price list."); ErrorMessages.Add(SalesOrderAndInvoiceCurrencyNotEqual, "The currency of the record does not match the currency of the price list."); ErrorMessages.Add(BaseCurrencyOverflow, "The exchange rate set for the currency specified in this record has generated a value for {0} that is larger than the maximum allowed for the base currency ({1})."); ErrorMessages.Add(BaseCurrencyUnderflow, "The exchange rate set for the currency specified in this record has generated a value for {0} that is smaller than the minimum allowed for the base currency ({1})."); ErrorMessages.Add(CurrencyNotEqual, "The currency of the {0} does not match the currency of the {1}."); ErrorMessages.Add(UnitNoName, "The unit name cannot be null."); ErrorMessages.Add(unManagedidsinvoicecloseapideprecated, "The Invoice Close API is deprecated. It has been replaced by the Pay and Cancel APIs."); ErrorMessages.Add(ProductDoesNotExist, "The product does not exist."); ErrorMessages.Add(ProductKitLoopBeingCreated, "You can’t add a kit to itself."); ErrorMessages.Add(ProductKitLoopExists, "Loop exists in the kit hierarchy."); ErrorMessages.Add(DiscountPercent, "The discount type does not support 'amount' discounts."); ErrorMessages.Add(DiscountAmount, "The discount type does not support 'percentage' discounts."); ErrorMessages.Add(DiscountAmountAndPercent, "Both 'amount' and 'percentage' cannot be set."); ErrorMessages.Add(EntityIsUnlocked, "This entity is already unlocked."); ErrorMessages.Add(EntityIsLocked, "This entity is already locked."); ErrorMessages.Add(BaseUnitDoesNotExist, "The base unit does not exist."); ErrorMessages.Add(UnitDoesNotExist, "The unit does not exist."); ErrorMessages.Add(UnitLoopBeingCreated, "Using this base unit would create a loop in the unit hierarchy."); ErrorMessages.Add(UnitLoopExists, "Loop exists in the unit hierarchy."); ErrorMessages.Add(QuantityReadonly, "Do not modify the Quantity field when you update the primary unit."); ErrorMessages.Add(BaseUnitNotNull, "Do not use a base unit as the value for a primary unit. This value should always be null."); ErrorMessages.Add(UnitNotInSchedule, "The unit does not exist in the specified unit schedule."); ErrorMessages.Add(MissingOpportunityId, "The opportunity id is missing or invalid."); ErrorMessages.Add(ProductInvalidUnit, "The specified unit is not valid for this product."); ErrorMessages.Add(ProductMissingUomSheduleId, "The unit schedule id of the product is missing."); ErrorMessages.Add(MissingPriceLevelId, "The price level id is missing."); ErrorMessages.Add(MissingProductId, "The product id is missing."); ErrorMessages.Add(InvalidPricePerUnit, "The price per unit is invalid."); ErrorMessages.Add(PriceLevelNameExists, "The name already exists."); ErrorMessages.Add(PriceLevelNoName, "The name can not be null."); ErrorMessages.Add(MissingUomId, "The unit id is missing."); ErrorMessages.Add(ProductInvalidPriceLevelPercentage, "The pricing percentage must be greater than or equal to zero and less than 100000."); ErrorMessages.Add(InvalidBaseUnit, "The base unit does not belong to the schedule."); ErrorMessages.Add(MissingUomScheduleId, "The unit schedule id is missing."); ErrorMessages.Add(ParentReadOnly, "The parent is read only and cannot be edited."); ErrorMessages.Add(DuplicateProductPriceLevel, "This product and unit combination has a price for this price list."); ErrorMessages.Add(ProductInvalidQuantityDecimal, "The number of decimal places on the quantity is invalid."); ErrorMessages.Add(ProductProductNumberExists, "The specified product ID conflicts with the product ID of an existing record. Specify a different product ID and try again."); ErrorMessages.Add(ProductNoProductNumber, "The product number can not be null."); ErrorMessages.Add(unManagedidscannotdeactivatepricelevel, "The price level cannot be deactivated because it is the default price level of an account, contact or product."); ErrorMessages.Add(BaseUnitNotDeletable, "The base unit of a schedule cannot be deleted."); ErrorMessages.Add(DiscountRangeOverlap, "The new quantities overlap the range covered by existing quantities."); ErrorMessages.Add(LowQuantityGreaterThanHighQuantity, "Low quantity should be less than high quantity."); ErrorMessages.Add(LowQuantityLessThanZero, "Low quantity should be greater than zero."); ErrorMessages.Add(InvalidSubstituteProduct, "A product can't have a relationship with itself."); ErrorMessages.Add(InvalidKitProduct, "You cannot add a product kit to itself. Select a different product or product kit."); ErrorMessages.Add(InvalidKit, "The product is not a kit."); ErrorMessages.Add(InvalidQuantityDecimalCode, "The quantity decimal code is invalid."); ErrorMessages.Add(CannotSpecifyBothProductAndProductDesc, "You cannot set both 'productid' and 'productdescription' for the same record."); ErrorMessages.Add(CannotSpecifyBothUomAndProductDesc, "You cannot set both 'uomid' and 'productdescription' for the same record."); ErrorMessages.Add(unManagedidsstatedoesnotexist, "The state is not valid for this object."); ErrorMessages.Add(FiscalSettingsAlreadyUpdated, "Fiscal settings have already been updated. They can be updated only once."); ErrorMessages.Add(unManagedidssalespeopleinvalidfiscalcalendartype, "Invalid fiscal calendar type"); ErrorMessages.Add(unManagedidssalespeopleinvalidfiscalperiodindex, "Invalid fiscal period index"); ErrorMessages.Add(SalesPeopleManagerNotAllowed, "Territory manager cannot belong to other territory"); ErrorMessages.Add(unManagedidssalespeopleinvalidterritoryobjecttype, "Territories cannot be retrieved by this kind of object"); ErrorMessages.Add(SalesPeopleDuplicateCalendarNotAllowed, "Fiscal calendar already exists for this salesperson/year"); ErrorMessages.Add(unManagedidssalespeopleduplicatecalendarfound, "Duplicate fiscal calendars found for this salesperson/year"); ErrorMessages.Add(SalesPeopleEmptyEffectiveDate, "Fiscal calendar effective date cannot be empty"); ErrorMessages.Add(SalesPeopleEmptySalesPerson, "Parent salesperson cannot be empty"); ErrorMessages.Add(InvalidNumberGroupFormat, "Invalid input string for numbergroupformat. The input string should contain an array of integers. Every element in the value array should be between one and nine, except for the last element, which can be zero."); ErrorMessages.Add(BaseUomNameNotSpecified, "baseuomname not specified"); ErrorMessages.Add(InvalidActivityPartyAddress, "One or more activity parties have invalid addresses."); ErrorMessages.Add(FaxNoSupport, "The fax cannot be sent because this type of attachment is not allowed or does not support virtual printing to a fax device."); ErrorMessages.Add(FaxNoData, "The fax cannot be sent because there is no data to send. Specify at least one of the following: a cover page, a fax attachment, a fax description."); ErrorMessages.Add(InvalidPartyMapping, "Invalid party mapping."); ErrorMessages.Add(InvalidActivityXml, "Invalid Xml in an activity config file."); ErrorMessages.Add(ActivityInvalidObjectTypeCode, "An Invalid type code was specified by the throwing method"); ErrorMessages.Add(ActivityInvalidSessionToken, "An Invalid session token was passed into the throwing method"); ErrorMessages.Add(FaxServiceNotRunning, "The Microsoft Windows fax service is not running or is not installed."); ErrorMessages.Add(FaxSendBlocked, "The recipient is marked as \"Do Not Fax\"."); ErrorMessages.Add(NoDialNumber, "There is no fax number specified on the fax or for the recipient."); ErrorMessages.Add(TooManyRecipients, "Sending to multiple recipients is not supported."); ErrorMessages.Add(MissingRecipient, "The fax must have a recipient before it can be sent."); ErrorMessages.Add(unManagedidsactivitynotroutable, "This type of activity is not routable"); ErrorMessages.Add(unManagedidsactivitydurationdoesnotmatch, "Activity duration does not match start/end time"); ErrorMessages.Add(unManagedidsactivityinvalidduration, "Invalid activity duration"); ErrorMessages.Add(unManagedidsactivityinvalidtimeformat, "Invalid activity time, check format"); ErrorMessages.Add(unManagedidsactivityinvalidregardingobject, "Invalid activity regarding object, it probably does not exist"); ErrorMessages.Add(ActivityPartyObjectTypeNotAllowed, "Cannot create activity party of specified object type."); ErrorMessages.Add(unManagedidsactivityinvalidpartyobjecttype, "Activity party object type is invalid"); ErrorMessages.Add(unManagedidsactivitypartyobjectidortypemissing, "Activity party object Id or type is missing"); ErrorMessages.Add(unManagedidsactivityinvalidobjecttype, "Activity regarding object type is invalid"); ErrorMessages.Add(unManagedidsactivityobjectidortypemissing, "Activity regarding object Id or type is missing"); ErrorMessages.Add(unManagedidsactivityinvalidtype, "Invalid activity type code"); ErrorMessages.Add(unManagedidsactivityinvalidstate, "Invalid activity state"); ErrorMessages.Add(ContractInvalidDatesForRenew, "The start date / end date of this renewed contract can not overlap with any other invoiced / active contracts with the same contract number."); ErrorMessages.Add(unManagedidscontractinvalidstartdateforrenewedcontract, "The start date of the renewed contract can not be earlier than the end date of the originating contract."); ErrorMessages.Add(unManagedidscontracttemplateabbreviationexists, "The value for abbreviation already exists."); ErrorMessages.Add(ContractInvalidPrice, "The price is invalid."); ErrorMessages.Add(unManagedidscontractinvalidtotalallotments, "The totalallotments is invalid."); ErrorMessages.Add(ContractInvalidContract, "The contract is invalid."); ErrorMessages.Add(unManagedidscontractinvalidowner, "The owner of the contract is invalid."); ErrorMessages.Add(ContractInvalidContractTemplate, "The contract template is invalid."); ErrorMessages.Add(ContractInvalidBillToCustomer, "The bill-to customer of the contract is invalid."); ErrorMessages.Add(ContractInvalidBillToAddress, "The bill-to address of the contract is invalid."); ErrorMessages.Add(ContractInvalidServiceAddress, "The service address of the contract is invalid."); ErrorMessages.Add(ContractInvalidCustomer, "The customer of the contract is invalid."); ErrorMessages.Add(ContractNoLineItems, "There are no contract line items for this contract."); ErrorMessages.Add(ContractTemplateNoAbbreviation, "Abbreviation can not be NULL."); ErrorMessages.Add(unManagedidscontractopencasesexist, "There are open cases against this contract line item."); ErrorMessages.Add(unManagedidscontractlineitemdoesnotexist, "The contract line item does not exist."); ErrorMessages.Add(unManagedidscontractdoesnotexist, "The contract does not exist."); ErrorMessages.Add(ContractTemplateDoesNotExist, "The contract template does not exist."); ErrorMessages.Add(ContractInvalidAllotmentTypeCode, "The allotment type code is invalid."); ErrorMessages.Add(ContractLineInvalidState, "The state of the contract line item is invalid."); ErrorMessages.Add(ContractInvalidState, "The state of the contract is invalid."); ErrorMessages.Add(ContractInvalidStartEndDate, "Start date / end date or billing start date / billing end date is invalid."); ErrorMessages.Add(unManagedidscontractaccountmissing, "Account is required to save a contract."); ErrorMessages.Add(unManagedidscontractunexpected, "An unexpected error occurred in Contracts."); ErrorMessages.Add(unManagedidsevalerrorformatlookupparameter, "Error happens when evaluating WFPM_FORMAT_LOOKUP parameter."); ErrorMessages.Add(unManagedidsevalerrorformattimezonecodeparameter, "unManagedidsevalerrorformattimezonecodeparameter"); ErrorMessages.Add(unManagedidsevalerrorformatdecimalparameter, "Error happens when evaluating WFPM_FORMAT_DECIMAL parameter."); ErrorMessages.Add(unManagedidsevalerrorformatintegerparameter, "Error happens when evaluating WFPM_FORMAT_INTEGER parameter."); ErrorMessages.Add(unManagedidsevalerrorobjecttype, "Error happens when evaluating WFPM_GetObjectType parameter."); ErrorMessages.Add(unManagedidsevalerrorqueueidparameter, "unManagedidsevalerrorqueueidparameter"); ErrorMessages.Add(unManagedidsevalerrorformatpicklistparameter, "Error happens when evaluating WFPM_FORMAT_PICKLIST parameter."); ErrorMessages.Add(unManagedidsevalerrorformatbooleanparameter, "Error happens when evaluating WFPM_FORMAT_BOOLEAN parameter."); ErrorMessages.Add(unManagedidsevalerrorformatdatetimeparameter, "Error happens when evaluating WFPM_FORMAT_DATETIME parameter."); ErrorMessages.Add(unManagedidsevalerrorisnulllistparameter, "unManagedidsevalerrorisnulllistparameter"); ErrorMessages.Add(unManagedidsevalerrorinlistparameter, "unManagedidsevalerrorinlistparameter"); ErrorMessages.Add(unManagedidsevalerrorsetactivityparty, "unManagedidsevalerrorsetactivityparty"); ErrorMessages.Add(unManagedidsevalerrorremovefromactivityparty, "unManagedidsevalerrorremovefromactivityparty"); ErrorMessages.Add(unManagedidsevalerrorappendtoactivityparty, "unManagedidsevalerrorappendtoactivityparty"); ErrorMessages.Add(unManagedidsevaltimererrorcalculatescheduletime, "Failed to calculate the schedule time for the timer action."); ErrorMessages.Add(unManagedidsevaltimerinvalidparameternumber, "Invalid parameters for Timer action."); ErrorMessages.Add(unManagedidsevalcreateshouldhave2parameters, "Create action should have 2 parameters."); ErrorMessages.Add(unManagedidsevalerrorcreate, "Error in create update."); ErrorMessages.Add(unManagedidsevalerrorcontainparameter, "Error occurred when evaluating a WFPM_CONTAIN parameter."); ErrorMessages.Add(unManagedidsevalerrorendwithparameter, "Error occurred when evaluating a WFPM_END_WITH parameter."); ErrorMessages.Add(unManagedidsevalerrorbeginwithparameter, "Error occurred when evaluating a WFPM_BEGIN_WITH parameter."); ErrorMessages.Add(unManagedidsevalerrorstrlenparameter, "Error occurred when evaluating a WFPM_STRLEN parameter."); ErrorMessages.Add(unManagedidsevalerrorsubstrparameter, "Error occurred when evaluating a WFPM_SUBSTR parameter."); ErrorMessages.Add(unManagedidsevalerrorinvalidrecipient, "Invalid email recipient."); ErrorMessages.Add(unManagedidsevalerrorinparameter, "Error occurred when evaluating a WFPM_IN parameter."); ErrorMessages.Add(unManagedidsevalerrorbetweenparameter, "Error occurred when evaluating a WFPM_BETWEEN parameter."); ErrorMessages.Add(unManagedidsevalerrorneqparameter, "Error occurred when evaluating a WFPM_NEQ parameter."); ErrorMessages.Add(unManagedidsevalerroreqparameter, "Error occurred when evaluating a WFPM_EQ parameter."); ErrorMessages.Add(unManagedidsevalerrorleqparameter, "Error occurred when evaluating a WFPM_LEQ parameter."); ErrorMessages.Add(unManagedidsevalerrorltparameter, "Error occurred when evaluating a WFPM_LT parameter."); ErrorMessages.Add(unManagedidsevalerrorgeqparameter, "Error occurred when evaluating a WFPM_GEQ parameter."); ErrorMessages.Add(unManagedidsevalerrorgtparameter, "Error occurred when evaluating a WFPM_GT parameter."); ErrorMessages.Add(unManagedidsevalerrorabsparameter, "Error occurred when evaluating a WFPM_ABS parameter."); ErrorMessages.Add(unManagedidsevalerrorinvalidparameter, "Invalid parameter."); ErrorMessages.Add(unManagedidsevalgenericerror, "Evaluation error."); ErrorMessages.Add(unManagedidsevalerrorincidentqueue, "Failed to evaluate INCIDENT_QUEUE."); ErrorMessages.Add(unManagedidsevalerrorhalt, "Error in action halt."); ErrorMessages.Add(unManagedidsevalerrorexec, "Error in action exec."); ErrorMessages.Add(unManagedidsevalerrorposturl, "Error in action posturl."); ErrorMessages.Add(unManagedidsevalerrorsetstate, "Error in action set state."); ErrorMessages.Add(unManagedidsevalerrorroute, "Error in action route."); ErrorMessages.Add(unManagedidsevalerrorupdate, "Error in action update."); ErrorMessages.Add(unManagedidsevalerrorassign, "Error in action assign."); ErrorMessages.Add(unManagedidsevalerroremailtemplate, "Error in action email template."); ErrorMessages.Add(unManagedidsevalerrorsendemail, "Error in action send email."); ErrorMessages.Add(unManagedidsevalerrorunhandleincident, "Error in action unhandle incident."); ErrorMessages.Add(unManagedidsevalerrorhandleincident, "Error in action handle incident."); ErrorMessages.Add(unManagedidsevalerrorcreateincident, "Error in action create incident."); ErrorMessages.Add(unManagedidsevalerrornoteattachment, "Error in action note attachment."); ErrorMessages.Add(unManagedidsevalerrorcreatenote, "Error in action create note."); ErrorMessages.Add(unManagedidsevalerrorunhandleactivity, "Error in action unhandle activity."); ErrorMessages.Add(unManagedidsevalerrorhandleactivity, "Error in action handle activity."); ErrorMessages.Add(unManagedidsevalerroractivityattachment, "Error in action activity attachment."); ErrorMessages.Add(unManagedidsevalerrorcreateactivity, "Error in action create activity."); ErrorMessages.Add(unManagedidsevalerrordividedbyzero, "Divided by zero."); ErrorMessages.Add(unManagedidsevalerrormodulusparameter, "Error occurred when evaluating a WFPM_MODULUR parameter."); ErrorMessages.Add(unManagedidsevalerrormodulusparameters, "Modulus parameter can have only two subparameters."); ErrorMessages.Add(unManagedidsevalerrordivisionparameter, "Error occurred when evaluating a WFPM_DIVISION parameter."); ErrorMessages.Add(unManagedidsevalerrordivisionparameters, "Division parameter can have only two subparameters."); ErrorMessages.Add(unManagedidsevalerrormultiplicationparameter, "Error occurred when evaluating a WFPM_MULTIPLICATION parameter."); ErrorMessages.Add(unManagedidsevalerrorsubtractionparameter, "Error occurred when evaluating a WFPM_SUBTRACTION parameter."); ErrorMessages.Add(unManagedidsevalerroraddparameter, "Error occurred when evaluating a WFPM_ADD parameter."); ErrorMessages.Add(unManagedidsevalmissselectquery, "Missing the query subparameter in a select parameter."); ErrorMessages.Add(unManagedidsevalchangetypeerror, "Change type error."); ErrorMessages.Add(unManagedidsevalallcompleted, "Evaluation completed and stop further processing."); ErrorMessages.Add(unManagedidsevalmetabaseattributenotmatchquery, "The specified refattributeid does not the query for a WFPM_SELECT parameter."); ErrorMessages.Add(unManagedidsevalmetabaseentitynotmatchquery, "The specified refentityid does not the query for a WFPM_SELECT parameter."); ErrorMessages.Add(unManagedidsevalpropertyisnull, "The required property of the object was not set."); ErrorMessages.Add(unManagedidsevalmetabaseattributenotfound, "The specified metabase attribute does not exist."); ErrorMessages.Add(unManagedidsevalmetabaseentitycompoundkeys, "The specified metabase object has compound keys. We do not support compound-key entities yet."); ErrorMessages.Add(unManagedidsevalpropertynotfound, "The required property of the object was not found."); ErrorMessages.Add(unManagedidsevalobjectnotfound, "The required object does not exist."); ErrorMessages.Add(unManagedidsevalcompleted, "Evaluation completed."); ErrorMessages.Add(unManagedidsevalaborted, "Evaluation aborted."); ErrorMessages.Add(unManagedidsevalallaborted, "Evaluation aborted and stop further processing."); ErrorMessages.Add(unManagedidsevalassignshouldhave4parameters, "Assign action should have 4 parameters."); ErrorMessages.Add(unManagedidsevalupdateshouldhave3parameters, "Update action should have 3 parameters."); ErrorMessages.Add(unManagedidscpdecryptfailed, "Decryption of the password failed."); ErrorMessages.Add(unManagedidscpencryptfailed, "Encryption of the supplied password failed."); ErrorMessages.Add(unManagedidscpbadpassword, "Incorrect password for the specified customer portal user."); ErrorMessages.Add(unManagedidscpuserdoesnotexist, "The customer portal user does not exist, or the password was incorrect."); ErrorMessages.Add(unManagedidsdataaccessunexpected, "Unexpected error in data access. DB Connection may not have been opened successfully."); ErrorMessages.Add(unManagedidspropbagattributealreadyset, "One of the attributes passed has already been set"); ErrorMessages.Add(unManagedidspropbagattributenotnullable, "One of the attributes passed cannot be NULL"); ErrorMessages.Add(unManagedidsrspropbagdbinfoalreadyset, "The DB info for the recordset property bag has already been set."); ErrorMessages.Add(unManagedidsrspropbagdbinfonotset, "The DB info for the recordset property bag has not been set."); ErrorMessages.Add(unManagedidspropbagcolloutofrange, "The bag index in the collection was out of range."); ErrorMessages.Add(unManagedidspropbagnullproperty, "The specified property was null in the property bag."); ErrorMessages.Add(unManagedidspropbagnointerface, "The property bag interface could not be found."); ErrorMessages.Add(unManagedMissingObjectType, "Object type must be specified for one of the attributes."); ErrorMessages.Add(unManagedObjectTypeUnexpected, "Object type was specified for one of the attributes that does not allow it."); ErrorMessages.Add(BusinessUnitCannotBeDisabled, "Business unit cannot be disabled: no active user with system admin role exists outside of business unit subtree."); ErrorMessages.Add(BusinessUnitIsNotDisabledAndCannotBeDeleted, "Not disabled business unit cannot be deleted."); ErrorMessages.Add(BusinessUnitHasChildAndCannotBeDeleted, "Business unit has a child business unit and cannot be deleted."); ErrorMessages.Add(BusinessUnitDefaultTeamOwnsRecords, "Business unit default team owns records. Business unit cannot be deleted."); ErrorMessages.Add(RootBusinessUnitCannotBeDisabled, "Root Business unit cannot be disabled."); ErrorMessages.Add(unManagedidspropbagpropertynotfound, "The specified property was not found in the property bag."); ErrorMessages.Add(ReadOnlyUserNotSupported, "The read-only access mode is not supported"); ErrorMessages.Add(SupportUserCannotBeCreateNorUpdated, "The support user cannot be updated"); ErrorMessages.Add(DelegatedAdminUserCannotBeCreateNorUpdated, "The delegated admin user cannot be updated"); ErrorMessages.Add(ApplicationUserCannotBeUpdated, "The user representing an OAuth application cannot not be updated"); ErrorMessages.Add(ApplicationNotRegisteredWithDeployment, "Application needs to be registered and enabled at deployment level before it can be created for this organization"); ErrorMessages.Add(InvalidOAuthToken, "The OAuth token is invalid"); ErrorMessages.Add(ExpiredOAuthToken, "The OAuth token has expired"); ErrorMessages.Add(CannotAssignRolesToSupportUser, "The support user are read-only, which cannot be assigned with other roles"); ErrorMessages.Add(CannotMakeSelfReadOnlyUser, "You cannot make yourself a read only user"); ErrorMessages.Add(CannotMakeReadOnlyUser, "A user cannot be made a read only user if they are the last non read only user that has the System Administrator Role."); ErrorMessages.Add(unManagedidsbizmgmtcantchangeorgname, "The organization name cannot be changed."); ErrorMessages.Add(MultipleOrganizationsNotAllowed, "Only one organization and one root business are allowed."); ErrorMessages.Add(UserSettingsInvalidAdvancedFindStartupMode, "Invalid advanced find startup mode."); ErrorMessages.Add(UserSettingsInvalidSearchExperienceValue, "Invalid search experience value."); ErrorMessages.Add(CannotModifySpecialUser, "No modifications to the 'SYSTEM' or 'INTEGRATION' user are permitted."); ErrorMessages.Add(unManagedidsbizmgmtcannotaddlocaluser, "A local user cannot be added to the Dynamics 365."); ErrorMessages.Add(CannotModifySysAdmin, "The System Administrator Role cannot be modified."); ErrorMessages.Add(CannotModifySupportUser, "The Support User Role cannot be modified."); ErrorMessages.Add(CannotAssignSupportUser, "The Support User Role cannot be assigned to a user."); ErrorMessages.Add(CannotRemoveFromSupportUser, "A user cannot be removed from the Support User Role."); ErrorMessages.Add(CannotCreateFromSupportUser, "Cannot create a role from Support User Role."); ErrorMessages.Add(CannotUpdateSupportUser, "Cannot update the Support User Role."); ErrorMessages.Add(CannotRemoveFromSysAdmin, "A user cannot be removed from the System Administrator Role if they are the only user that has the role."); ErrorMessages.Add(CannotDisableSysAdmin, "A user cannot be disabled if they are the only user that has the System Administrator Role."); ErrorMessages.Add(CannotDeleteSysAdmin, "The System Administrator Role cannot be deleted."); ErrorMessages.Add(CannotDeleteSupportUser, "The Support User Role cannot be deleted."); ErrorMessages.Add(CannotDeleteSystemCustomizer, "The System Customizer Role cannot be deleted."); ErrorMessages.Add(CannotCreateSyncUserObjectMissing, "This is not a valid Microsoft Online Services ID for this organization."); ErrorMessages.Add(CannotUpdateSyncUserIsLicensedField, "The property IsLicensed cannot be modified."); ErrorMessages.Add(CannotCreateSyncUserIsLicensedField, "The property IsLicensed cannot be set for Sync User Creation."); ErrorMessages.Add(CannotUpdateSyncUserIsSyncWithDirectoryField, "The property IsSyncUserWithDirectory cannot be modified."); ErrorMessages.Add(CannotUpdateAzureActiveDirectoryObjectIdField, "The property AzureActiveDirectoryObjectId cannot be modified."); ErrorMessages.Add(unManagedidsbizmgmtcannotreadaccountcontrol, "Insufficient permissions to the specified Active Directory user. Contact your System Administrator."); ErrorMessages.Add(UserAlreadyExists, "The specified Active Directory user already exists as a Dynamics 365 user."); ErrorMessages.Add(unManagedidsbizmgmtusersettingsnotcreated, "The specified user's settings have not yet been created."); ErrorMessages.Add(ObjectNotFoundInAD, "The object does not exist in active directory."); ErrorMessages.Add(GenericActiveDirectoryError, "Active Directory Error."); ErrorMessages.Add(GenericAzureActiveDirectoryError, "Azure Active Directory Error."); ErrorMessages.Add(unManagedidsbizmgmtnoparentbusiness, "The specified business does not have a parent business."); ErrorMessages.Add(ParentUserDoesNotExist, "The parent user Id is invalid."); ErrorMessages.Add(ChildUserDoesNotExist, "The child user Id is invalid."); ErrorMessages.Add(UserLoopBeingCreated, "You cannot set the selected user as the manager for this user because the selected user is either already the manager or is in the user's immediate management hierarchy. Either select another user to be the manager or do not update the record."); ErrorMessages.Add(UserLoopExists, "A manager for this user cannot be set because an existing relationship in the management hierarchy is causing a circular relationship. This is usually caused by a manual edit of the Microsoft Dynamics 365 database. To fix this, the hierarchy in the database must be changed to remove the circular relationship."); ErrorMessages.Add(ParentBusinessDoesNotExist, "The parent business Id is invalid."); ErrorMessages.Add(ChildBusinessDoesNotExist, "The child businesss Id is invalid."); ErrorMessages.Add(BusinessManagementLoopBeingCreated, "Creating this parental association would create a loop in business hierarchy."); ErrorMessages.Add(BusinessManagementLoopExists, "Loop exists in the business hierarchy."); ErrorMessages.Add(BusinessManagementInvalidUserId, "The user Id(s) [{0}] is invalid."); ErrorMessages.Add(unManagedidsbizmgmtuserdoesnothaveparent, "This user does not have a parent user."); ErrorMessages.Add(unManagedidsbizmgmtcannotenableprovision, "This is a provisioned root-business. Use IBizProvision::Enable to enable this root-business."); ErrorMessages.Add(unManagedidsbizmgmtcannotenablebusiness, "This is a sub-business. Use IBizMerchant::Enable to enable this sub-business."); ErrorMessages.Add(unManagedidsbizmgmtcannotdisableprovision, "This is a provisioned root-business. Use IBizProvision::Disable to disable this root-business."); ErrorMessages.Add(unManagedidsbizmgmtcannotdisablebusiness, "This business unit cannot be disabled."); ErrorMessages.Add(unManagedidsbizmgmtcannotdeleteprovision, "This is a provisioned root-business. Use IBizProvision::Delete to delete this root-business."); ErrorMessages.Add(unManagedidsbizmgmtcannotdeletebusiness, "This is a sub-business. Use IBizMerchant::Delete to delete this sub-business."); ErrorMessages.Add(unManagedidsbizmgmtcannotremovepartnershipdefaultuser, "The default user of a partnership can not be removed."); ErrorMessages.Add(unManagedidsbizmgmtpartnershipnotinpendingstatus, "The partnership has been accepted or declined."); ErrorMessages.Add(unManagedidsbizmgmtdefaultusernotinpartnerbusiness, "The default user is not from partner business."); ErrorMessages.Add(unManagedidsbizmgmtcallernotinpartnerbusiness, "The caller is not from partner business."); ErrorMessages.Add(unManagedidsbizmgmtdefaultusernotinprimarybusiness, "The default user is not from primary business."); ErrorMessages.Add(unManagedidsbizmgmtcallernotinprimarybusiness, "The caller is not from primary business."); ErrorMessages.Add(unManagedidsbizmgmtpartnershipalreadyexists, "A partnership between specified primary business and partner business already exists."); ErrorMessages.Add(unManagedidsbizmgmtprimarysameaspartner, "The primary business is the same as partner business."); ErrorMessages.Add(unManagedidsbizmgmtmisspartnerbusiness, "The partnership partner business was unexpectedly missing."); ErrorMessages.Add(unManagedidsbizmgmtmissprimarybusiness, "The partnership primary business was unexpectedly missing."); ErrorMessages.Add(InvalidAccessModeTransition, "The client access license cannot be changed because the user does not have a Microsoft Dynamics 365 Online license. To change the access mode, you must first add a license for this user in the Microsoft Online Service portal."); ErrorMessages.Add(MissingTeamName, "The team name was unexpectedly missing."); ErrorMessages.Add(TeamAdministratorMissedPrivilege, "The team administrator does not have privilege read team."); ErrorMessages.Add(CannotDisableTenantAdmin, "Users who are granted the Microsoft Office 365 Global administrator or Service administrator role cannot be disabled in Microsoft Dynamics 365 Online. You must first remove the Microsoft Office 365 role, and then try again."); ErrorMessages.Add(CannotRemoveTenantAdminFromSysAdminRole, "Users who are granted the Microsoft Office 365 Global administrator or Service administrator role cannot be removed from the Microsoft Dynamics 365 System Administrator security role. You must first remove the Microsoft Office 365 role, and then try again."); ErrorMessages.Add(UserNotInParentHierarchy, "The user is not in parent user's business hierarchy."); ErrorMessages.Add(unManagedidsbizmgmtusercannotbeownparent, "The user can not be its own parent user."); ErrorMessages.Add(unManagedidsbizmgmtcannotmovedefaultuser, "unManagedidsbizmgmtcannotmovedefaultuser"); ErrorMessages.Add(unManagedidsbizmgmtbusinessparentdiffmerchant, "The business is not in the same merchant as parent business."); ErrorMessages.Add(unManagedidsbizmgmtdefaultusernotinbusiness, "The default user is not in the business."); ErrorMessages.Add(unManagedidsbizmgmtmissparentbusiness, "The parent business was unexpectedly missing."); ErrorMessages.Add(unManagedidsbizmgmtmissuserdomainname, "The user's domain name was unexpectedly missing."); ErrorMessages.Add(unManagedidsbizmgmtmissbusinessname, "The business name was unexpectedly missing."); ErrorMessages.Add(unManagedidsxmlinvalidread, "A field that is not valid for read was specified"); ErrorMessages.Add(unManagedidsxmlinvalidfield, "An invalid value was passed in for a field"); ErrorMessages.Add(unManagedidsxmlinvalidentityattributes, "Invalid attributes"); ErrorMessages.Add(unManagedidsxmlunexpected, "An unexpected error has occurred"); ErrorMessages.Add(unManagedidsxmlparseerror, "A parse error was encountered in the XML"); ErrorMessages.Add(unManagedidsxmlinvalidcollectionname, "The collection name specified is incorrect"); ErrorMessages.Add(unManagedidsxmlinvalidupdate, "A field that is not valid for update was specified"); ErrorMessages.Add(unManagedidsxmlinvalidcreate, "A field that is not valid for create was specified"); ErrorMessages.Add(unManagedidsxmlinvalidentityname, "The entity name specified is incorrect"); ErrorMessages.Add(unManagedidsnotesnoattachment, "The specified note has no attachments."); ErrorMessages.Add(unManagedidsnotesloopbeingcreated, "Creating this parental association would create a loop in the annotation hierarchy."); ErrorMessages.Add(unManagedidsnotesloopexists, "A loop exists in the annotation hierarchy."); ErrorMessages.Add(unManagedidsnotesalreadyattached, "The specified note is already attached to an object."); ErrorMessages.Add(unManagedidsnotesnotedoesnotexist, "The specified note does not exist."); ErrorMessages.Add(DuplicatedPrivilege, "Privilege {0} is duplicated."); ErrorMessages.Add(MemberHasAlreadyBeenContacted, "This marketing list member was not contacted, because the member has previously received this communication."); ErrorMessages.Add(TeamInWrongBusiness, "The team belongs to a different business unit than the role."); ErrorMessages.Add(unManagedidsrolesdeletenonparentrole, "Cannot delete a role that is inherited from a parent business."); ErrorMessages.Add(InvalidPrivilegeDepth, "Invalid privilege depth."); ErrorMessages.Add(unManagedidsrolesinvalidrolename, "The role name is invalid."); ErrorMessages.Add(UserInWrongBusiness, "The user belongs to a different business unit than the role."); ErrorMessages.Add(unManagedidsrolesmissprivid, "The privilege ID was unexpectedly missing."); ErrorMessages.Add(unManagedidsrolesmissrolename, "The role name was unexpectedly missing."); ErrorMessages.Add(unManagedidsrolesmissbusinessid, "The role's business unit ID was unexpectedly missing."); ErrorMessages.Add(unManagedidsrolesmissroleid, "The role ID was unexpectedly missing."); ErrorMessages.Add(unManagedidsrolesinvalidtemplateid, "Invalid role template ID."); ErrorMessages.Add(RoleAlreadyExists, "A role with the specified name already exists."); ErrorMessages.Add(unManagedidsrolesroledoesnotexist, "The specified role does not exist."); ErrorMessages.Add(unManagedidsrolesinvalidroleid, "Invalid role ID."); ErrorMessages.Add(unManagedidsrolesinvalidroledata, "The role data is invalid."); ErrorMessages.Add(QueryBuilderNoEntityKey, "The specified entitykey was not found."); ErrorMessages.Add(QueryBuilderInvalidAttributeValue, "The attribute value provided is invalid."); ErrorMessages.Add(QueryBuilderSerializationInvalidIsQuickFindFilter, "The only valid values for isquickfindfields attribute are 'true', 'false', '1', and '0'."); ErrorMessages.Add(QueryBuilderAttributeCannotBeGroupByAndAggregate, "An attribute can either be an aggregate or a Group By but not both"); ErrorMessages.Add(SqlArithmeticOverflowError, "A SQL arithmetic overflow error occurred"); ErrorMessages.Add(QueryBuilderInvalidDateGrouping, "An invalid value was specified for dategrouping."); ErrorMessages.Add(QueryBuilderAliasRequiredForAggregateOrderBy, "An alias is required for an order clause for an aggregate Query."); ErrorMessages.Add(QueryBuilderAttributeRequiredForNonAggregateOrderBy, "An attribute is required for an order clause for a non-aggregate Query."); ErrorMessages.Add(QueryBuilderAliasNotAllowedForNonAggregateOrderBy, "An alias cannot be specified for an order clause for a non-aggregate Query. Use an attribute."); ErrorMessages.Add(QueryBuilderAttributeNotAllowedForAggregateOrderBy, "An attribute cannot be specified for an order clause for an aggregate Query. Use an alias."); ErrorMessages.Add(QueryBuilderDuplicateAlias, "FetchXML should have unique aliases."); ErrorMessages.Add(QueryBuilderInvalidAggregateAttribute, "Aggregate {0} is not supported for attribute of type {1}."); ErrorMessages.Add(QueryBuilderDeserializeInvalidGroupBy, "The only valid values for groupby attribute are 'true', 'false', '1', and '0'."); ErrorMessages.Add(QueryBuilderNoAttrsDistinctConflict, "The no-attrs tag cannot be used in conjuction with Distinct set to true."); ErrorMessages.Add(QueryBuilderInvalidPagingCookie, "Invalid page number in paging cookie."); ErrorMessages.Add(QueryBuilderPagingOrderBy, "Order by columns do not match those in paging cookie."); ErrorMessages.Add(QueryBuilderEntitiesDontMatch, "The entity name specified in fetchxml does not match the entity name specified in the Entity or Query Expression."); ErrorMessages.Add(QueryBuilderLinkNodeForOrderNotFound, "Converting from Query to EntityExpression failed. Link Node for order was not found."); ErrorMessages.Add(QueryBuilderDeserializeNoDocElemXml, "Document Element can't be null."); ErrorMessages.Add(QueryBuilderDeserializeEmptyXml, "Xml String can't be null."); ErrorMessages.Add(QueryBuilderElementNotFound, "A required element was not specified."); ErrorMessages.Add(QueryBuilderInvalidFilterType, "Unsupported filter type. Valid values are 'and', or 'or'."); ErrorMessages.Add(QueryBuilderInvalidJoinOperator, "Unsupported join operator."); ErrorMessages.Add(QueryBuilderInvalidConditionOperator, "Unsupported condition operator."); ErrorMessages.Add(QueryBuilderInvalidOrderType, "A valid order type must be set in the order before calling this method."); ErrorMessages.Add(QueryBuilderAttributeNotFound, "A required attribute was not specified."); ErrorMessages.Add(QueryBuilderDeserializeInvalidUtcOffset, "The utc-offset attribute is not supported for deserialization."); ErrorMessages.Add(QueryBuilderDeserializeInvalidNode, "The element node encountered is invalid."); ErrorMessages.Add(QueryBuilderDeserializeInvalidGetMinActiveRowVersion, "The only valid values for GetMinActiveRowVersion attribute are 'true', 'false', '1', and '0'."); ErrorMessages.Add(QueryBuilderDeserializeInvalidAggregate, "An error occurred while processing Aggregates in Query"); ErrorMessages.Add(QueryBuilderDeserializeInvalidDescending, "The only valid values for descending attribute are 'true', 'false', '1', and '0'."); ErrorMessages.Add(QueryBuilderDeserializeInvalidNoLock, "The only valid values for no-lock attribute are 'true', 'false', '1', and '0'."); ErrorMessages.Add(QueryBuilderDeserializeInvalidLinkType, "The only valid values for link-type attribute are 'natural', 'inner', and 'outer'."); ErrorMessages.Add(QueryBuilderDeserializeInvalidMapping, "The only valid values for mapping are 'logical' or 'internal' which is deprecated."); ErrorMessages.Add(QueryBuilderDeserializeInvalidDistinct, "The only valid values for distinct attribute are 'true', 'false', '1', and '0'."); ErrorMessages.Add(QueryBuilderSerialzeLinkTopCriteria, "Fetch does not support where clause with conditions from linkentity."); ErrorMessages.Add(QueryBuilderColumnSetVersionMissing, "The specified columnset version is invalid."); ErrorMessages.Add(QueryBuilderInvalidColumnSetVersion, "The specified columnset version is invalid."); ErrorMessages.Add(QueryBuilderAttributePairMismatch, "AttributeFrom and AttributeTo must be either both specified or both omitted."); ErrorMessages.Add(QueryBuilderByAttributeNonEmpty, "QueryByAttribute must specify a non-empty attribute array."); ErrorMessages.Add(QueryBuilderByAttributeMismatch, "QueryByAttribute must specify a non-empty value array with the same number of elements as in the attributes array."); ErrorMessages.Add(QueryBuilderMultipleIntersectEntities, "More than one intersect entity exists between the two entities specified."); ErrorMessages.Add(QueryBuilderReportView_Does_Not_Exist, "A report view does not exist for the specified entity."); ErrorMessages.Add(QueryBuilderValue_GreaterThanZero, "A value greater than zero must be specified."); ErrorMessages.Add(QueryBuilderNoAlias, "No alias for the given entity in the condition was found."); ErrorMessages.Add(QueryBuilderAlias_Does_Not_Exist, "The specified alias for the given entity in the condition does not exist."); ErrorMessages.Add(QueryBuilderInvalid_Alias, "Invalid alias for aggregate operation."); ErrorMessages.Add(QueryBuilderInvalid_Value, "Invalid value specified for type."); ErrorMessages.Add(QueryBuilderAttribute_With_Aggregate, "Attributes can not be returned when aggregate operation is specified."); ErrorMessages.Add(QueryBuilderBad_Condition, "Incorrect filter condition or conditions."); ErrorMessages.Add(QueryBuilderNoAttribute, "The specified attribute does not exist on this entity."); ErrorMessages.Add(QueryBuilderNoEntity, "The specified entity was not found."); ErrorMessages.Add(QueryBuilderUnexpected, "An unexpected error occurred."); ErrorMessages.Add(QueryBuilderInvalidUpdate, "An attempt was made to update a non-updateable field."); ErrorMessages.Add(QueryBuilderInvalidLogicalOperator, "Unsupported logical operator: {0}. Accepted values are ('and', 'or')."); ErrorMessages.Add(unManagedidsmetadatanorelationship, "The relationship does not exist"); ErrorMessages.Add(MetadataNoMapping, "The mapping between specified entities does not exist"); ErrorMessages.Add(MetadataNotSerializable, "The given metadata entity is not serializable"); ErrorMessages.Add(unManagedidsmetadatanoentity, "The specified entity does not exist"); ErrorMessages.Add(unManagedidscommunicationsnosenderaddress, "The sender does not have an email address on the party record"); ErrorMessages.Add(unManagedidscommunicationstemplateinvalidtemplate, "The template body is invalid"); ErrorMessages.Add(unManagedidscommunicationsnoparticipationmask, "Participation type is missing from an activity"); ErrorMessages.Add(unManagedidscommunicationsnorecipients, "At least one system user or queue in the organization must be a recipient"); ErrorMessages.Add(EmailRecipientNotSpecified, "The e-mail must have at least one recipient before it can be sent"); ErrorMessages.Add(unManagedidscommunicationsnosender, "No email address was specified, and the calling user does not have an email address set"); ErrorMessages.Add(unManagedidscommunicationsbadsender, "More than one sender specified"); ErrorMessages.Add(unManagedidscommunicationsnopartyaddress, "Object address not found on party or party is marked as non-emailable"); ErrorMessages.Add(unManagedidsjournalingmissingincidentid, "Incident Id missed."); ErrorMessages.Add(unManagedidsjournalingmissingcontactid, "Contact Id missed."); ErrorMessages.Add(unManagedidsjournalingmissingopportunityid, "Opportunity Id missed."); ErrorMessages.Add(unManagedidsjournalingmissingaccountid, "Account Id missed."); ErrorMessages.Add(unManagedidsjournalingmissingleadid, "Lead Id missed."); ErrorMessages.Add(unManagedidsjournalingmissingeventtype, "Event type missed."); ErrorMessages.Add(unManagedidsjournalinginvalideventtype, "Invalid event type."); ErrorMessages.Add(unManagedidsjournalingmissingeventdirection, "Event direction code missed."); ErrorMessages.Add(unManagedidsjournalingunsupportedobjecttype, "Unsupported type of objects passed in operation."); ErrorMessages.Add(SdkEntityDoesNotSupportMessage, "The method being invoked does not support provided entity type."); ErrorMessages.Add(OpportunityAlreadyInOpenState, "The opportunity is already in the open state."); ErrorMessages.Add(LeadAlreadyInClosedState, "The lead is already closed."); ErrorMessages.Add(LeadAlreadyInOpenState, "The lead is already in the open state."); ErrorMessages.Add(CustomerIsInactive, "An inactive customer cannot be set as the parent of an object."); ErrorMessages.Add(OpportunityCannotBeClosed, "The opportunity cannot be closed."); ErrorMessages.Add(OpportunityIsAlreadyClosed, "The opportunity is already closed."); ErrorMessages.Add(unManagedidscustomeraddresstypeinvalid, "Invalid customer address type."); ErrorMessages.Add(unManagedidsleadnotassignedtocaller, "The lead is not being assigned to the caller for acceptance."); ErrorMessages.Add(unManagedidscontacthaschildopportunities, "The Contact has child opportunities."); ErrorMessages.Add(unManagedidsaccounthaschildopportunities, "The Account has child opportunities."); ErrorMessages.Add(unManagedidsleadoneaccount, "A lead can be associated with only one account."); ErrorMessages.Add(unManagedidsopportunityorphan, "Removing this association will make the opportunity an orphan."); ErrorMessages.Add(unManagedidsopportunityoneaccount, "An opportunity can be associated with only one account."); ErrorMessages.Add(unManagedidsleadusercannotreject, "The user does not have the privilege to reject a lead, so he cannot be assigned the lead for acceptance."); ErrorMessages.Add(unManagedidsleadnotassigned, "The lead has not been assigned."); ErrorMessages.Add(unManagedidsleadnoparent, "The lead does not have a parent."); ErrorMessages.Add(ContactLoopBeingCreated, "Creating this parental association would create a loop in Contacts hierarchy."); ErrorMessages.Add(ContactLoopExists, "Loop exists in the contacts hierarchy."); ErrorMessages.Add(PresentParentAccountAndParentContact, "You can either specify a contacts parent contact or its account, but not both."); ErrorMessages.Add(AccountLoopBeingCreated, "Creating this parental association would create a loop in Accounts hierarchy."); ErrorMessages.Add(AccountLoopExists, "Loop exists in the accounts hierarchy."); ErrorMessages.Add(unManagedidsopportunitymissingparent, "The parent of the opportunity is missing."); ErrorMessages.Add(unManagedidsopportunityinvalidparent, "The parent of an opportunity must be an account or contact."); ErrorMessages.Add(ContactDoesNotExist, "Contact does not exist."); ErrorMessages.Add(AccountDoesNotExist, "Account does not exist."); ErrorMessages.Add(unManagedidsleaddoesnotexist, "Lead does not exist."); ErrorMessages.Add(unManagedidsopportunitydoesnotexist, "Opportunity does not exist."); ErrorMessages.Add(ReportDoesNotExist, "Report does not exist. ReportId:{0}"); ErrorMessages.Add(ReportLoopBeingCreated, "Creating this parental association would create a loop in Reports hierarchy."); ErrorMessages.Add(ReportLoopExists, "Loop exists in the reports hierarchy."); ErrorMessages.Add(ParentReportLinksToSameNameChild, "Parent report already links to another report with the same name."); ErrorMessages.Add(DuplicateReportVisibility, "A ReportVisibility with the same ReportId and VisibilityCode already exists. Duplicates are not allowed."); ErrorMessages.Add(ReportRenderError, "An error occurred during report rendering."); ErrorMessages.Add(SubReportDoesNotExist, "Subreport does not exist. ReportId:{0}"); ErrorMessages.Add(SrsDataConnectorNotInstalled, "MSCRM Data Connector Not Installed"); ErrorMessages.Add(InvalidCustomReportingWizardXml, "Invalid wizard xml"); ErrorMessages.Add(UpdateNonCustomReportFromTemplate, "Cannot update a report from a template if the report was not created from a template"); ErrorMessages.Add(SnapshotReportNotReady, "The selected report is not ready for viewing. The report is still being created or a report snapshot is not available. ReportId:{0}"); ErrorMessages.Add(ExistingExternalReport, "The report could not be published for external use because a report of the same name already exists. Delete that report in SQL Server Reporting Services or rename this report, and try again."); ErrorMessages.Add(ParentReportNotSupported, "Parent report is not supported for the type of report specified. Only SQL Reporting Services reports can have parent reports."); ErrorMessages.Add(ParentReportDoesNotReferenceChild, "Specified parent report does not reference the current one. Only SQL Reporting Services reports can have parent reports."); ErrorMessages.Add(MultipleParentReportsFound, "More than one report link found. Each report can have only one parent."); ErrorMessages.Add(ReportingServicesReportExpected, "The report is not a Reporting Services report."); ErrorMessages.Add(InvalidTransformationParameter, "A parameter for the transformation is either missing or invalid."); ErrorMessages.Add(ReflexiveEntityParentOrChildDoesNotExist, "Either the parent or child entity does not exist"); ErrorMessages.Add(EntityLoopBeingCreated, "Creating this parental association would create a loop in this entity hierarchy."); ErrorMessages.Add(EntityLoopExists, "Loop exists in this entity hierarchy."); ErrorMessages.Add(UnsupportedProcessCode, "The process code is not supported on this entity."); ErrorMessages.Add(NoOutputTransformationParameterMappingFound, "There is no output transformation parameter mapping defined. A transformation mapping must have atleast one output transformation parameter mapping."); ErrorMessages.Add(RequiredColumnsNotFoundInImportFile, "One or more source columns used in the transformation do not exist in the source file."); ErrorMessages.Add(InvalidTransformationParameterMapping, "The transformation parameter mapping defined is invalid. Check that the target attribute name exists."); ErrorMessages.Add(UnmappedTransformationOutputDataFound, "One or more outputs returned by the transformation is not mapped to target fields."); ErrorMessages.Add(InvalidTransformationParameterDataType, "The data type of one or more of the transformation parameters is unsupported."); ErrorMessages.Add(ArrayMappingFoundForSingletonParameter, "An array transformation parameter mapping is defined for a single parameter."); ErrorMessages.Add(SingletonMappingFoundForArrayParameter, "A single transformation parameter mapping is defined for an array parameter."); ErrorMessages.Add(IncompleteTransformationParameterMappingsFound, "One or more mandatory transformation parameters do not have mappings defined for them."); ErrorMessages.Add(InvalidTransformationParameterMappings, "One or more transformation parameter mappings are invalid or do not match the transformation parameter description."); ErrorMessages.Add(GenericTransformationInvocationError, "The transformation returned invalid data."); ErrorMessages.Add(InvalidTransformationType, "The specified transformation type is not supported."); ErrorMessages.Add(UnableToLoadTransformationType, "Unable to load the transformation type."); ErrorMessages.Add(UnableToLoadTransformationAssembly, "Unable to load the transformation assembly."); ErrorMessages.Add(InvalidColumnMapping, "ColumnMapping is Invalid. Check that the target attribute exists."); ErrorMessages.Add(CannotModifyOldDataFromImport, "The corresponding record in Microsoft Dynamics 365 has more recent data, so this record was ignored."); ErrorMessages.Add(ImportFileTooLargeToUpload, "The import file is too large to upload."); ErrorMessages.Add(InvalidImportFileContent, "The content of the import file is not valid. You must select a text file."); ErrorMessages.Add(EmptyRecord, "The record is empty"); ErrorMessages.Add(LongParseRow, "The row is too long to import"); ErrorMessages.Add(ParseMustBeCalledBeforeTransform, "Cannot call transform before parse."); ErrorMessages.Add(HeaderValueDoesNotMatchAttributeDisplayLabel, "The column heading does not match the attribute display label."); ErrorMessages.Add(InvalidTargetEntity, "The specified target record type does not exist."); ErrorMessages.Add(NoHeaderColumnFound, "A column heading is missing."); ErrorMessages.Add(ParsingMetadataNotFound, "Data required to parse the file, such as the data delimiter, field delimiter, or column headings, was not found."); ErrorMessages.Add(EmptyHeaderRow, "The first row of the file is empty."); ErrorMessages.Add(EmptyContent, "The file is empty."); ErrorMessages.Add(InvalidIsFirstRowHeaderForUseSystemMap, "The first row of the file does not contain column headings."); ErrorMessages.Add(InvalidGuid, "The globally unique identifier (GUID) in this row is invalid"); ErrorMessages.Add(GuidNotPresent, "The required globally unique identifier (GUID) in this row is not present"); ErrorMessages.Add(OwnerValueNotMapped, "The owner value is not mapped"); ErrorMessages.Add(PicklistValueNotMapped, "The record could not be processed as the Option set value could not be mapped."); ErrorMessages.Add(ErrorInDelete, "The Microsoft Dynamics 365 record could not be deleted"); ErrorMessages.Add(ErrorIncreate, "The Microsoft Dynamics 365 record could not be created"); ErrorMessages.Add(ErrorInUpdate, "The Microsoft Dynamics 365 record could not be updated"); ErrorMessages.Add(ErrorInSetState, "The status or status reason of the Microsoft Dynamics 365 record could not be set"); ErrorMessages.Add(InvalidDataFormat, "The source data is not in the required format"); ErrorMessages.Add(InvalidFormatForDataDelimiter, "Mismatched data delimiter: only one delimiter was found."); ErrorMessages.Add(CRMUserDoesNotExist, "No Microsoft Dynamics 365 user exists with the specified domain name and user ID"); ErrorMessages.Add(LookupNotFound, "The lookup reference could not be resolved"); ErrorMessages.Add(DuplicateLookupFound, "A duplicate lookup reference was found"); ErrorMessages.Add(InvalidImportFileData, "The data is not in the required format"); ErrorMessages.Add(InvalidXmlSSContent, "The data file can’t be imported because it contains invalid entity data or it’s in the wrong format. Make sure that the file contains correct data and that it’s in the XML Spreadsheet 2003 format, and then try uploading again."); ErrorMessages.Add(InvalidImportFileParseData, "Field and data delimiters for this file are not specified."); ErrorMessages.Add(InvalidValueForFileType, "The file type is invalid."); ErrorMessages.Add(EmptyImportFileRow, "Empty row."); ErrorMessages.Add(ErrorInParseRow, "The row could not be parsed. This is typically caused by a row that is too long."); ErrorMessages.Add(DataColumnsNumberMismatch, "The number of fields differs from the number of column headings."); ErrorMessages.Add(InvalidHeaderColumn, "The column heading contains an invalid combination of data delimiters."); ErrorMessages.Add(OwnerMappingExistsWithSourceSystemUserName, "The data map already contains this owner mapping."); ErrorMessages.Add(PickListMappingExistsWithSourceValue, "The data map already contains this list value mapping."); ErrorMessages.Add(InvalidValueForDataDelimiter, "The data delimiter is invalid."); ErrorMessages.Add(InvalidValueForFieldDelimiter, "The field delimiter is invalid."); ErrorMessages.Add(PickListMappingExistsForTargetValue, "This list value is mapped more than once. Remove any duplicate mappings, and then import this data map again."); ErrorMessages.Add(MappingExistsForTargetAttribute, "This attribute is mapped more than once. Remove any duplicate mappings, and then import this data map again."); ErrorMessages.Add(SourceEntityMappedToMultipleTargets, "This source entity is mapped to more than one Microsoft Dynamics 365 entity. Remove any duplicate mappings, and then import this data map again."); ErrorMessages.Add(AttributeNotOfTypePicklist, "This attribute is not mapped to a drop-down list, Boolean, or state/status attribute. However, you have included a ListValueMap element for it. Fix this inconsistency, and then import this data map again."); ErrorMessages.Add(AttributeNotOfTypeReference, "This attribute is not mapped as a reference attribute. However, you have included a ReferenceMap for it. Fix this inconsistency, and then import this data map again."); ErrorMessages.Add(TargetEntityNotFound, "The file specifies an entity that does not exist in Microsoft Dynamics 365."); ErrorMessages.Add(TargetAttributeNotFound, "The file specifies an attribute that does not exist in Microsoft Dynamics 365."); ErrorMessages.Add(PicklistValueNotFound, "The file specifies a list value that does not exist in Microsoft Dynamics 365."); ErrorMessages.Add(TargetAttributeInvalidForMap, "This attribute is not valid for mapping."); ErrorMessages.Add(TargetEntityInvalidForMap, "The file specifies an entity that is not valid for data migration."); ErrorMessages.Add(InvalidFileBadCharacters, "The file could not be uploaded because it contains invalid character(s)"); ErrorMessages.Add(ErrorsInImportFiles, "Invalid File(s) for Import"); ErrorMessages.Add(InvalidOperationWhenListIsNotActive, "List is not active. Cannot perform this operation."); ErrorMessages.Add(InvalidOperationWhenPartyIsNotActive, "The party is not active. Cannot perform this operation."); ErrorMessages.Add(AsyncOperationSuspendedOrLocked, ">A background job associated with this import is either suspended or locked. In order to delete this import, in the Workplace, click Imports, open the import, click System Jobs, and resume any suspended jobs."); ErrorMessages.Add(DuplicateHeaderColumn, "A duplicate column heading exists."); ErrorMessages.Add(EmptyHeaderColumn, "The column heading cannot be empty."); ErrorMessages.Add(InvalidColumnNumber, "The column number specified in the data map does not exist."); ErrorMessages.Add(TransformMustBeCalledBeforeImport, "Cannot call import before transform."); ErrorMessages.Add(OperationCanBeCalledOnlyOnce, "The specified action can be done only one time."); ErrorMessages.Add(DuplicateRecordsFound, "A record was not created or updated because a duplicate of the current record already exists."); ErrorMessages.Add(CampaignActivityClosed, "This Campaign Activity is closed or canceled. Campaign activities cannot be distributed after they have been closed or canceled."); ErrorMessages.Add(UnexpectedErrorInMailMerge, "There was an unexpected error during mail merge."); ErrorMessages.Add(UserCancelledMailMerge, "The mail merge operation was cancelled by the user."); ErrorMessages.Add(FilteredDuetoMissingEmailAddress, "This customer is filtered due to missing email address."); ErrorMessages.Add(CannotDeleteAsBackgroundOperationInProgress, "This record is currently being used by Microsoft Dynamics 365 and cannot be deleted. Try again later. If the problem persists, contact your system administrator."); ErrorMessages.Add(FilteredDuetoInactiveState, "This customer is filtered due to inactive state."); ErrorMessages.Add(MissingBOWFRules, "Bulk Operation related workflow rules are missing."); ErrorMessages.Add(AsyncOperationPostponed, "This operation has been postponed because it failed for more than {0} times in {1} minutes"); ErrorMessages.Add(CannotSpecifyOwnerForActivityPropagation, "Cannot specify owner on activity for distribution"); ErrorMessages.Add(CampaignActivityAlreadyPropagated, "This campaign activity has been distributed already. Campaign activities cannot be distributed more than one time."); ErrorMessages.Add(FilteredDuetoAntiSpam, "This customer is filtered due to AntiSpam settings."); ErrorMessages.Add(TemplateTypeNotSupportedForUnsubscribeAcknowledgement, "This template type is not supported for unsubscribe acknowledgement."); ErrorMessages.Add(ErrorInImportConfig, "Cannot process with Bulk Import as Import Configuration has some errors."); ErrorMessages.Add(ImportConfigNotSpecified, "Cannot process with Bulk Import as Import Configuration not specified."); ErrorMessages.Add(InvalidActivityType, "An invalid object type was specified for distributing activities."); ErrorMessages.Add(UnsupportedParameter, "A parameter specified is not supported by the Bulk Operation"); ErrorMessages.Add(MissingParameter, "A required parameter is missing for the Bulk Operation"); ErrorMessages.Add(CannotSpecifyCommunicationAttributeOnActivityForPropagation, "Cannot specify communication attribute on activity for distribution"); ErrorMessages.Add(CannotSpecifyRecipientForActivityPropagation, "Cannot specify a recipient for activity distribution."); ErrorMessages.Add(CannotSpecifyAttendeeForAppointmentPropagation, "Cannot specify an attendee for appointment distribution."); ErrorMessages.Add(CannotSpecifySenderForActivityPropagation, "Cannot specify a sender for appointment distribution"); ErrorMessages.Add(CannotSpecifyOrganizerForAppointmentPropagation, "Cannot specify an organizer for appointment distribution"); ErrorMessages.Add(InvalidRegardingObjectTypeCode, "The regarding Object Type Code is not valid for the Bulk Operation."); ErrorMessages.Add(UnspecifiedActivityXmlForCampaignActivityPropagate, "Must specify an Activity Xml for CampaignActivity Execute/Distribute"); ErrorMessages.Add(MoneySizeExceeded, "Supplied value exceeded the MIN/MAX value of Money Type field."); ErrorMessages.Add(ExtraPartyInformation, "Extra party information should not be provided for this operation."); ErrorMessages.Add(NotSupported, "This action is not supported."); ErrorMessages.Add(InvalidOperationForClosedOrCancelledCampaignActivity, "Can not add items to closed (cancelled) campaignactivity."); ErrorMessages.Add(InvalidEmailTemplate, "Must specify a valid Template Id"); ErrorMessages.Add(CannotCreateResponseForTemplate, "CampaignResponse can not be created for Template Campaign."); ErrorMessages.Add(CannotPropagateCamapaignActivityForTemplate, "Cannot execute (distribute) a CampaignActivity for a template Campaign."); ErrorMessages.Add(InvalidChannelForCampaignActivityPropagate, "Cannot distribute activities for campaign activities of the specified channel type."); ErrorMessages.Add(InvalidActivityTypeForCampaignActivityPropagate, "Must specify a valid CommunicationActivity"); ErrorMessages.Add(ObjectNotRelatedToCampaign, "Specified Object not related to the parent Campaign"); ErrorMessages.Add(CannotRelateObjectTypeToCampaignActivity, "Specified Object Type not supported"); ErrorMessages.Add(CannotUpdateCampaignForCampaignResponse, "Parent campaign is not updatable."); ErrorMessages.Add(CannotUpdateCampaignForCampaignActivity, "Parent campaign is not updatable."); ErrorMessages.Add(CampaignNotSpecifiedForCampaignResponse, "RegardingObjectId is a required field."); ErrorMessages.Add(CampaignNotSpecifiedForCampaignActivity, "RegardingObjectId is a required field."); ErrorMessages.Add(CannotRelateObjectTypeToCampaign, "Specified Object Type not supported"); ErrorMessages.Add(CannotCopyIncompatibleListType, "Cannot copy lists of different types."); ErrorMessages.Add(InvalidActivityTypeForList, "Cannot create activities of the specified list type."); ErrorMessages.Add(CannotAssociateInactiveItemToCampaign, "Cannot associate an inactive item to a Campaign."); ErrorMessages.Add(InvalidFetchXml, "Malformed FetchXml."); ErrorMessages.Add(InvalidOperationWhenListLocked, "List is Locked. Cannot perform this action."); ErrorMessages.Add(UnsupportedListMemberType, "Unsupported list member type."); ErrorMessages.Add(InvalidPrimaryKey, "Invalid primary key."); ErrorMessages.Add(IsvAborted, "ISV code aborted the operation."); ErrorMessages.Add(CannotAssignOutlookFilters, "Cannot assign outlook filters"); ErrorMessages.Add(CannotCreateOutlookFilters, "Cannot create outlook filters"); ErrorMessages.Add(CannotGrantAccessToOutlookFilters, "Cannot grant access to outlook filters"); ErrorMessages.Add(CannotModifyAccessToOutlookFilters, "Cannot modify access for outlook filters"); ErrorMessages.Add(CannotRevokeAccessToOutlookFilters, "Cannot revoke access for outlook filters"); ErrorMessages.Add(CannotGrantAccessToOfflineFilters, "Cannot grant access to offline filters"); ErrorMessages.Add(CannotModifyAccessToOfflineFilters, "Cannot modify access for offline filters"); ErrorMessages.Add(CannotRevokeAccessToOfflineFilters, "Cannot revoke access for offline filters"); ErrorMessages.Add(DuplicateOutlookAppointment, "The Appointment being promoted from Outlook is already tracked in Dynamics 365"); ErrorMessages.Add(AppointmentScheduleNotSet, "Scheduled End and Scheduled Start must be set for Appointments in order to sync with Outlook."); ErrorMessages.Add(PrivilegeCreateIsDisabledForOrganization, "Privilege Create is disabled for organization."); ErrorMessages.Add(UnauthorizedAccess, "Attempted to perform an unauthorized operation."); ErrorMessages.Add(InvalidCharactersInField, "The field '{0}' contains one or more invalid characters."); ErrorMessages.Add(CannotChangeStateOfNonpublicView, "Only public views can be deactivated and activated."); ErrorMessages.Add(CannotDeactivateDefaultView, "Default views cannot be deactivated."); ErrorMessages.Add(CannotSetInactiveViewAsDefault, "Inactive views cannot be set as default view."); ErrorMessages.Add(CannotExceedFilterLimit, "Cannot exceed synchronization filter limit."); ErrorMessages.Add(CannotHaveMultipleDefaultFilterTemplates, "Cannot have multiple default synchronization templates for a single entity."); ErrorMessages.Add(CrmConstraintParsingError, "Crm constraint parsing error occurred."); ErrorMessages.Add(CrmConstraintEvaluationError, "Crm constraint evaluation error occurred."); ErrorMessages.Add(CrmExpressionEvaluationError, "Crm expression evaluation error occurred."); ErrorMessages.Add(CrmExpressionParametersParsingError, "Crm expression parameters parsing error occurred."); ErrorMessages.Add(CrmExpressionBodyParsingError, "Crm expression body parsing error occurred."); ErrorMessages.Add(CrmExpressionParsingError, "Crm expression parsing error occurred."); ErrorMessages.Add(CrmMalformedExpressionError, "Crm malformed expression error occurred."); ErrorMessages.Add(CalloutException, "Callout Exception occurred."); ErrorMessages.Add(DateTimeFormatFailed, "Failed to produce a formatted datetime value."); ErrorMessages.Add(NumberFormatFailed, "Failed to produce a formatted numeric value."); ErrorMessages.Add(InvalidRestore, "RestoreCaller must be called after SwitchToSystemUser."); ErrorMessages.Add(InvalidCaller, "Cannot switch ExecutionContext to system user without setting Caller first."); ErrorMessages.Add(CrmSecurityError, "A failure occurred in CrmSecurity."); ErrorMessages.Add(TransactionAborted, "Transaction Aborted."); ErrorMessages.Add(CannotBindToSession, "Cannot bind to another session, session already bound."); ErrorMessages.Add(SessionTokenUnavailable, "Session token is not available unless there is a transaction in place."); ErrorMessages.Add(TransactionNotCommited, "Transaction not committed."); ErrorMessages.Add(TransactionNotStarted, "Transaction not started."); ErrorMessages.Add(MultipleChildPicklist, "Crm Internal Exception: Picklists with more than one childAttribute are not supported."); ErrorMessages.Add(InvalidSingletonResults, "Crm Internal Exception: Singleton Retrieve Query should not return more than 1 record."); ErrorMessages.Add(FailedToLoadAssembly, "Failed to load assembly"); ErrorMessages.Add(CrmQueryExpressionNotInitialized, "The QueryExpression has not been initialized. Please use the constructor that takes in the entity name to create a correctly initialized instance"); ErrorMessages.Add(InvalidRegistryKey, "Invalid registry key specified."); ErrorMessages.Add(InvalidPriv, "Invalid privilege type."); ErrorMessages.Add(MetadataNotFound, "Metadata not found."); ErrorMessages.Add(InvalidEntityClassException, "Invalid entity class."); ErrorMessages.Add(InvalidXmlEntityNameException, "Invalid Xml entity name."); ErrorMessages.Add(InvalidXmlCollectionNameException, "Invalid Xml collection name."); ErrorMessages.Add(InvalidRecurrenceRule, "Error in RecurrencePatternFactory."); ErrorMessages.Add(CrmImpersonationError, "Error occurred in the Crm AutoReimpersonator."); ErrorMessages.Add(ServiceInstantiationFailed, "Instantiation of an Entity failed."); ErrorMessages.Add(EntityInstantiationFailed, "Instantiation of an Entity instance Service failed."); ErrorMessages.Add(FormTransitionError, "The import has failed because the system cannot transition the entity form {0} from unmanaged to managed. Add at least one full (root) component to the managed solution, and then try to import it again."); ErrorMessages.Add(UserTimeConvertException, "Failed to convert user time zone information."); ErrorMessages.Add(UserTimeZoneException, "Failed to retrieve user time zone information."); ErrorMessages.Add(InvalidConnectionString, "The connection string not found or invalid."); ErrorMessages.Add(OpenCrmDBConnection, "Db Connection is Open, when it should be Closed."); ErrorMessages.Add(UnpopulatedPrimaryKey, "Primary Key must be populated for calls to platform on rich client in offline mode."); ErrorMessages.Add(InvalidVersion, "Unhandled Version mismatch found."); ErrorMessages.Add(InvalidOperation, "Invalid Operation performed."); ErrorMessages.Add(InvalidMetadata, "Invalid Metadata."); ErrorMessages.Add(InvalidDateTime, "The date-time format is invalid, or value is outside the supported range."); ErrorMessages.Add(unManagedidscannotdefaultprivateview, "Private views cannot be default."); ErrorMessages.Add(DuplicateRecord, "Operation failed due to a SQL integrity violation."); ErrorMessages.Add(unManagedidsnorelationship, "No relationship exists between the objects specified."); ErrorMessages.Add(MissingQueryType, "The query type is missing."); ErrorMessages.Add(InvalidRollupType, "The rollup type is invalid."); ErrorMessages.Add(InvalidState, "The object is not in a valid state to perform this operation."); ErrorMessages.Add(unManagedidsviewisnotsharable, "The view is not sharable."); ErrorMessages.Add(PrincipalPrivilegeDenied, "Target user or team does not hold required privileges."); ErrorMessages.Add(CannotUpdateObjectBecauseItIsInactive, "The object cannot be updated because it is inactive."); ErrorMessages.Add(CannotDeleteCannedView, "System-defined views cannot be deleted."); ErrorMessages.Add(CannotUpdateBecauseItIsReadOnly, "The object cannot be updated because it is read-only."); ErrorMessages.Add(CaseAlreadyResolved, "This case has already been resolved. Close and reopen the case record to see the updates."); ErrorMessages.Add(InvalidCustomer, "The customer is invalid."); ErrorMessages.Add(unManagedidsdataoutofrange, "Data out of range"); ErrorMessages.Add(unManagedidsownernotenabled, "The specified owner has been disabled."); ErrorMessages.Add(BusinessManagementObjectAlreadyExists, "An object with the specified name already exists."); ErrorMessages.Add(InvalidOwnerID, "The owner ID is invalid or missing."); ErrorMessages.Add(CannotDeleteAsItIsReadOnly, "The object cannot be deleted because it is read-only."); ErrorMessages.Add(CannotDeleteDueToAssociation, "The object you tried to delete is associated with another object and cannot be deleted."); ErrorMessages.Add(unManagedidsanonymousenabled, "The logged-in user was not found in the Active Directory."); ErrorMessages.Add(unManagedidsusernotenabled, "The specified user is either disabled or is not a member of any business unit."); ErrorMessages.Add(BusinessNotEnabled, "The specified business unit is disabled."); ErrorMessages.Add(CannotAssignToDisabledBusiness, "The specified business unit cannot be assigned to because it is disabled."); ErrorMessages.Add(IsvUnExpected, "An unexpected error occurred from ISV code."); ErrorMessages.Add(OnlyOwnerCanRevoke, "Only the owner of an object can revoke the owner's access to that object."); ErrorMessages.Add(unManagedidsoutofmemory, "Out of memory."); ErrorMessages.Add(unManagedidscannotassigntobusiness, "Cannot assign an object to a merchant."); ErrorMessages.Add(PrivilegeDenied, "The user does not hold the necessary privileges."); ErrorMessages.Add(InvalidObjectTypes, "Invalid object type."); ErrorMessages.Add(unManagedidscannotgrantorrevokeaccesstobusiness, "Cannot grant or revoke access rights to a merchant."); ErrorMessages.Add(unManagedidsinvaliduseridorbusinessidorusersbusinessinvalid, "One of the following occurred: invalid user id, invalid business id or the user does not belong to the business."); ErrorMessages.Add(unManagedidspresentuseridandteamid, "Both the user id and team id are present. Only one should be present."); ErrorMessages.Add(MissingUserId, "The user id or the team id is missing."); ErrorMessages.Add(MissingBusinessId, "The business id is missing or invalid."); ErrorMessages.Add(NotImplemented, "The requested functionality is not yet implemented."); ErrorMessages.Add(InvalidPointer, "The object is disposed."); ErrorMessages.Add(ObjectDoesNotExist, "The specified object was not found."); ErrorMessages.Add(UnExpected, "An unexpected error occurred."); ErrorMessages.Add(MissingOwner, "Item does not have an owner."); ErrorMessages.Add(CannotShareWithOwner, "An item cannot be shared with the owning user."); ErrorMessages.Add(unManagedidsinvalidvisibilitymodificationaccess, "User does not have access to modify the visibility of this item."); ErrorMessages.Add(unManagedidsinvalidowninguser, "Item does not have an owning user."); ErrorMessages.Add(unManagedidsinvalidassociation, "Invalid association."); ErrorMessages.Add(InvalidAssigneeId, "Invalid assignee id."); ErrorMessages.Add(unManagedidsfailureinittoken, "Failure in obtaining user token."); ErrorMessages.Add(unManagedidsinvalidvisibility, "Invalid visibility."); ErrorMessages.Add(InvalidAccessRights, "Invalid access rights."); ErrorMessages.Add(InvalidSharee, "Invalid share id."); ErrorMessages.Add(unManagedidsinvaliditemid, "Invalid item id."); ErrorMessages.Add(unManagedidsinvalidorgid, "Invalid organization id."); ErrorMessages.Add(unManagedidsinvalidbusinessid, "Invalid business id."); ErrorMessages.Add(unManagedidsinvalidteamid, "Invalid team id."); ErrorMessages.Add(unManagedidsinvaliduserid, "The user id is invalid or missing."); ErrorMessages.Add(InvalidParentId, "The parent id is invalid or missing."); ErrorMessages.Add(InvalidParent, "The parent object is invalid or missing."); ErrorMessages.Add(InvalidUserAuth, "User does not have the privilege to act on behalf another user."); ErrorMessages.Add(InvalidArgument, "Invalid argument."); ErrorMessages.Add(EmptyXml, "Empty XML."); ErrorMessages.Add(InvalidXml, "Invalid XML."); ErrorMessages.Add(RequiredFieldMissing, "Required field missing."); ErrorMessages.Add(SearchTextLenExceeded, "Search Text Length Exceeded."); ErrorMessages.Add(CannotAssignOfflineFilters, "Cannot assign offline filters"); ErrorMessages.Add(ArticleIsPublished, "The article cannot be updated or deleted because it is in published state"); ErrorMessages.Add(InvalidArticleTemplateState, "The article template state is undefined"); ErrorMessages.Add(InvalidArticleStateTransition, "This article state transition is invalid because of the current state of the article"); ErrorMessages.Add(InvalidArticleState, "The article state is undefined"); ErrorMessages.Add(NullKBArticleTemplateId, "The kbarticletemplateid cannot be NULL"); ErrorMessages.Add(NullArticleTemplateStructureXml, "The article template structurexml cannot be NULL"); ErrorMessages.Add(NullArticleTemplateFormatXml, "The article template formatxml cannot be NULL"); ErrorMessages.Add(NullArticleXml, "The article xml cannot be NULL"); ErrorMessages.Add(InvalidContractDetailId, "The Contract detail id is invalid"); ErrorMessages.Add(InvalidTotalPrice, "The total price is invalid"); ErrorMessages.Add(InvalidTotalDiscount, "The total discount is invalid"); ErrorMessages.Add(InvalidNetPrice, "The net price is invalid"); ErrorMessages.Add(InvalidAllotmentsRemaining, "The allotments remaining is invalid"); ErrorMessages.Add(InvalidAllotmentsUsed, "The allotments used is invalid"); ErrorMessages.Add(InvalidAllotmentsTotal, "The total allotments is invalid"); ErrorMessages.Add(InvalidAllotmentsCalc, "Allotments: remaining + used != total"); ErrorMessages.Add(CannotRouteToSameQueue, "The queue item cannot be routed to the same queue"); ErrorMessages.Add(CannotAddSingleQueueEnabledEntityToQueue, "The entity record cannot be added to the queue as it already exists in other queue."); ErrorMessages.Add(CannotUpdateDeactivatedQueueItem, "This item is deactivated. To work with this item, reactivate it and then try again."); ErrorMessages.Add(CannotCreateQueueItemInactiveObject, "Deactivated object cannot be added to queue."); ErrorMessages.Add(InsufficientPrivilegeToQueueOwner, "The owner of this queue does not have sufficient privileges to work with the queue."); ErrorMessages.Add(NoPrivilegeToWorker, "You cannot add items to an inactive queue. Select another queue and try again."); ErrorMessages.Add(CannotAddQueueItemsToInactiveQueue, "The selected user does not have sufficient permissions to work on items in this queue."); ErrorMessages.Add(EmailAlreadyExistsInDestinationQueue, "You cannot add this e-mail to the selected queue. A queue item for this e-mail already exists in the queue. You can delete the item from the queue, and then try again."); ErrorMessages.Add(CouldNotFindQueueItemInQueue, "Could not find any queue item associated with the Target in the specified SourceQueueId. Either the SourceQueueId or Target is invalid or the queue item does not exist."); ErrorMessages.Add(MultipleQueueItemsFound, "This item occurs in more than one queue and cannot be routed from this list. Locate the item in a queue and try to route the item again."); ErrorMessages.Add(ActiveQueueItemAlreadyExists, "An active queue item already exists for the given object. Cannot create more than one active queue item for this object."); ErrorMessages.Add(CannotRouteInactiveQueueItem, "You can't route a queue item that has been deactivated."); ErrorMessages.Add(QueueIdNotPresent, "You must enter the target queue. Provide a valid value in the Queue field and try again."); ErrorMessages.Add(QueueItemNotPresent, "You must enter the name of the record that you would like to put in the queue. Provide a valid value in the Queue Item field and try again."); ErrorMessages.Add(CannotUpdatePrivateOrWIPQueue, "The private or WIP Bin queue is not allowed to be updated or deleted"); ErrorMessages.Add(CannotFindUserQueue, "Cannot find user queue"); ErrorMessages.Add(CannotFindObjectInQueue, "The object was not found in the given queue"); ErrorMessages.Add(CannotRouteToQueue, "Cannot route to Work in progress queue"); ErrorMessages.Add(RouteTypeUnsupported, "The route type is unsupported"); ErrorMessages.Add(UserIdOrQueueNotSet, "Primary User Id or Destination Queue Type code not set"); ErrorMessages.Add(RoutingNotAllowed, "This object type can not be routed."); ErrorMessages.Add(CannotUpdateMetricOnChildGoal, "You cannot update metric on a child goal."); ErrorMessages.Add(CannotUpdateGoalPeriodInfoChildGoal, "You cannot update goal period related attributes on a child goal."); ErrorMessages.Add(CannotUpdateMetricOnGoalWithChildren, "You cannot update metric on a goal which has associated child goals."); ErrorMessages.Add(FiscalPeriodGoalMissingInfo, "For a goal of fiscal period type, the fiscal period attribute must be set."); ErrorMessages.Add(CustomPeriodGoalHavingExtraInfo, "For a goal of custom period type, fiscal year and fiscal period attributes must be left blank."); ErrorMessages.Add(ParentChildMetricIdDiffers, "The metricid of child goal should be same as the parent goal."); ErrorMessages.Add(ParentChildPeriodAttributesDiffer, "The period settings of child goal should be same as the parent goal."); ErrorMessages.Add(CustomPeriodGoalMissingInfo, "For a goal of custom period type, goalstartdate and goalenddate attributes must have data."); ErrorMessages.Add(GoalMissingPeriodTypeInfo, "Goal Period Type needs to be specified when creating a goal. This field cannot be null."); ErrorMessages.Add(ParticipatingQueryEntityMismatch, "The entitytype of participating query should be the same as the entity specified in fetchxml."); ErrorMessages.Add(CannotUpdateGoalPeriodInfoClosedGoal, "You cannot change the time period of this goal because there are one or more closed subordinate goals."); ErrorMessages.Add(CannotUpdateRollupFields, "You cannot write on rollup fields if isoverride is not set to true in your create/update request."); ErrorMessages.Add(CannotDeleteMetricWithGoals, "This goal metric is being used by one or more goals and cannot be deleted."); ErrorMessages.Add(CannotUpdateRollupAttributeWithClosedGoals, "The changes made to the roll-up field definition cannot be saved because the related goal metric is being used by one or more closed goals."); ErrorMessages.Add(MetricNameAlreadyExists, "A goal metric with the same name already exists. Specify a different name, and try again."); ErrorMessages.Add(CannotUpdateMetricWithGoals, "The changes made to this record cannot be saved because this goal metric is being used by one or more goals."); ErrorMessages.Add(CannotCreateUpdateSourceAttribute, "Source Attribute Not Valid For Create/Update if Metric Type is Count."); ErrorMessages.Add(InvalidDateAttribute, "Date Attribute specified is not an attribute of Source Entity."); ErrorMessages.Add(InvalidSourceEntityAttribute, "Attribute {0} is not an attribute of Entity {1}."); ErrorMessages.Add(GoalAttributeAlreadyMapped, "The Metric Detail for Specified Goal Attribute already exists."); ErrorMessages.Add(InvalidSourceAttributeType, "Source Attribute Type does not match the Amount Data Type specified."); ErrorMessages.Add(MaxLimitForRollupAttribute, "Only three metric details per metric can be created."); ErrorMessages.Add(InvalidGoalAttribute, "Goal Attribute does not match the specified metric type."); ErrorMessages.Add(CannotUpdateParentAndDependents, "Cannot update metric or period attributes when parent is being updated."); ErrorMessages.Add(UserDoesNotHaveSendAsAllowed, "User does not have send-as privilege"); ErrorMessages.Add(CannotUpdateQuoteCurrency, "The currency cannot be changed because this quote has Products associated with it. If you want to change the currency please delete all of the Products and then change the currency or create a new quote with the appropriate currency."); ErrorMessages.Add(UserDoesNotHaveSendAsForQueue, "You do not have sufficient privileges to send e-mail as the selected queue. Contact your system administrator for assistance."); ErrorMessages.Add(InvalidSourceStateValue, "The source state specified for the entity is invalid."); ErrorMessages.Add(InvalidSourceStatusValue, "The source status specified for the entity is invalid."); ErrorMessages.Add(InvalidEntityForDateAttribute, "Entity For Date Attribute can be either source entity or its parent."); ErrorMessages.Add(InvalidEntityForRollup, "The entity {0} is not a valid entity for rollup."); ErrorMessages.Add(InvalidFiscalPeriod, "The fiscal period {0} does not fall in the permitted range of fiscal periods as per organization's fiscal settings."); ErrorMessages.Add(unManagedchildentityisnotchild, "The child entity supplied is not a child."); ErrorMessages.Add(unManagedmissingparententity, "The parent entity could not be located."); ErrorMessages.Add(unManagedunablegetexecutioncontext, "Failed to retrieve execution context (TLS)."); ErrorMessages.Add(unManagedpendingtrxexists, "A pending transaction already exists."); ErrorMessages.Add(unManagedinvalidtrxcountforcommit, "The transaction count was expected to be 1 in order to commit."); ErrorMessages.Add(unManagedinvalidtrxcountforrollback, "The transaction count was expected to be 1 in order to rollback."); ErrorMessages.Add(unManagedunableswitchusercontext, "Cannot set to a different user context."); ErrorMessages.Add(unManagedmissingdataaccess, "The data access could not be retrieved from the ExecutionContext."); ErrorMessages.Add(unManagedinvalidcharacterdataforaggregate, "Character data is not valid when clearing an aggregate."); ErrorMessages.Add(unManagedtrxinterophandlerset, "The TrxInteropHandler has already been set."); ErrorMessages.Add(unManagedinvalidbinaryfield, "The platform cannot handle binary fields."); ErrorMessages.Add(unManagedinvaludidispatchfield, "The platform cannot handle idispatch fields."); ErrorMessages.Add(unManagedinvaliddbdatefield, "The platform cannot handle dbdate fields."); ErrorMessages.Add(unManagedinvalddbtimefield, "The platform cannot handle dbtime fields."); ErrorMessages.Add(unManagedinvalidfieldtype, "The platform cannot handle the specified field type."); ErrorMessages.Add(unManagedinvalidstreamfield, "The platform cannot handle stream fields."); ErrorMessages.Add(unManagedinvalidparametertypeforparameterizedquery, "A parameterized query is not supported for the supplied parameter type."); ErrorMessages.Add(unManagedinvaliddynamicparameteraccessor, "SetParam failed processing the DynamicParameterAccessor parameter."); ErrorMessages.Add(unManagedunablegetsessiontokennotrx, "Unable to retrieve the session token as there are no pending transactions."); ErrorMessages.Add(unManagedunablegetsessiontoken, "Unable to retrieve the session token."); ErrorMessages.Add(unManagedinvalidsecurityprincipal, "The security principal is invalid or missing."); ErrorMessages.Add(unManagedmissingpreviousownertype, "Unable to determine the previous owner's type."); ErrorMessages.Add(unManagedinvalidprivilegeid, "The privilege id is invalid or missing."); ErrorMessages.Add(unManagedinvalidprivilegeusergroup, "The privilege user group id is invalid or missing."); ErrorMessages.Add(unManagedunexpectedpropertytype, "Unexpected type for the property."); ErrorMessages.Add(unManagedmissingaddressentity, "The address entity could not be found."); ErrorMessages.Add(unManagederroraddingfiltertoqueryplan, "An error occurred adding a filter to the query plan."); ErrorMessages.Add(unManagedmissingreferencesfromrelationship, "Unable to access a relationship in an entity's ReferencesFrom collection."); ErrorMessages.Add(unManagedmissingreferencingattribute, "The relationship's ReferencingAttribute is missing or invalid."); ErrorMessages.Add(unManagedinvalidoperator, "The operator provided is not valid."); ErrorMessages.Add(unManagedunabletoaccessqueryplanfilter, "Unable to access a filter in the query plan."); ErrorMessages.Add(unManagedmissingattributefortag, "An expected attribute was not found for the tag specified."); ErrorMessages.Add(unManagederrorprocessingfilternodes, "An unexpected error occurred processing the filter nodes."); ErrorMessages.Add(unManagedunabletolocateconditionfilter, "Unexpected error locating the filter for the condition."); ErrorMessages.Add(unManagedinvalidpagevalue, "The page value is invalid or missing."); ErrorMessages.Add(unManagedinvalidcountvalue, "The count value is invalid or missing."); ErrorMessages.Add(unManagedinvalidversionvalue, "The version value is invalid or missing."); ErrorMessages.Add(unManagedinvalidvaluettagoutsideconditiontag, "A invalid value tag was found outside of it's condition tag."); ErrorMessages.Add(unManagedinvalidorganizationid, "The organizationid is missing or invalid."); ErrorMessages.Add(unManagedinvalidowninguser, "The owninguser is mising or invalid."); ErrorMessages.Add(unManagedinvalidowningbusinessunitorbusinessunitid, "The owningbusinessunit or businessunitid is missing or invalid."); ErrorMessages.Add(unManagedinvalidprivilegeedepth, "Invalid privilege depth for user."); ErrorMessages.Add(unManagedinvalidlinkobjects, "Invalid link entity, link to attribute, or link from attribute."); ErrorMessages.Add(unManagedpartylistattributenotsupported, "Attributes of type partylist are not supported."); ErrorMessages.Add(unManagedinvalidargumentsforcondition, "An invalid number of arguments was supplied to a condition."); ErrorMessages.Add(unManagedunknownaggregateoperation, "An unknown aggregate operation was supplied."); ErrorMessages.Add(unManagedmissingparentattributeonentity, "The parent attribute was not found on the expected entity."); ErrorMessages.Add(unManagedinvalidprocesschildofcondition, "ProcessChildOfCondition was called with non-child-of condition."); ErrorMessages.Add(unManagedunexpectedrimarykey, "Primary key attribute was not as expected."); ErrorMessages.Add(unManagedmissinglinkentity, "Unexpected error locating link entity."); ErrorMessages.Add(unManagedinvalidprocessliternalcondition, "ProcessLiteralCondition is only valid for use with Rollup queries."); ErrorMessages.Add(unManagedemptyprocessliteralcondition, "No data specified for ProcessLiteralCondition."); ErrorMessages.Add(unManagedunusablevariantdata, "Variant supplied contains data in an unusable format."); ErrorMessages.Add(unManagedfieldnotvalidatedbyplatform, "A field was not validated by the platform."); ErrorMessages.Add(unManagedmissingfilterattribute, "Missing filter attribute."); ErrorMessages.Add(unManagedinvalidequalityoperand, "Only QB_LITERAL is supported for equality operand."); ErrorMessages.Add(unManagedfilterindexoutofrange, "The filter index is out of range."); ErrorMessages.Add(unManagedentityisnotintersect, "The entity is not an intersect entity."); ErrorMessages.Add(unManagedcihldofconditionforoffilefilters, "Child-of condition is only allowed on offline filters."); ErrorMessages.Add(unManagedinvalidowningbusinessunit, "The owningbusinessunit is missing or invalid."); ErrorMessages.Add(unManagedinvalidbusinessunitid, "The businessunitid is missing or invalid."); ErrorMessages.Add(unManagedmorethanonesortattribute, "More than one sort attributes were defined."); ErrorMessages.Add(unManagedunabletoaccessqueryplan, "Unable to access the query plan."); ErrorMessages.Add(unManagedparentattributenotfound, "The parent attribute was not found for the child attribute."); ErrorMessages.Add(unManagedinvalidtlsmananger, "Failed to retrieve TLS Manager."); ErrorMessages.Add(unManagedinvalidescapedxml, "Escaped xml size not as expected."); ErrorMessages.Add(unManagedunabletoretrieveprivileges, "Failed to retrieve privileges."); ErrorMessages.Add(unManagedproxycreationfailed, "Cannot create an instance of managed proxy."); ErrorMessages.Add(unManagedinvalidprincipal, "The principal id is missing or invalid."); ErrorMessages.Add(RestrictInheritedRole, "Inherited roles cannot be modified."); ErrorMessages.Add(unManagedidsfetchbetweentext, "between, not-between, in, and not-in operators are not allowed on attributes of type text or ntext."); ErrorMessages.Add(unManagedidscantdisable, "The user cannot be disabled because they have workflow rules running under their context."); ErrorMessages.Add(CascadeInvalidLinkTypeTransition, "Invalid link type for system entity cascading actions."); ErrorMessages.Add(InvalidOrgOwnedCascadeLinkType, "Cascade User-Owned is not a valid cascade link type for org-owned entity relationships."); ErrorMessages.Add(CallerCannotChangeOwnDomainName, "The caller cannot change their own domain name"); ErrorMessages.Add(AsyncOperationInvalidStateChange, "The target state could not be set because the state transition is not valid."); ErrorMessages.Add(AsyncOperationInvalidStateChangeUnexpected, "The target state could not be set because the state was changed by another process."); ErrorMessages.Add(AsyncOperationMissingId, "The AsyncOperationId is required to do the update."); ErrorMessages.Add(AsyncOperationInvalidStateChangeToComplete, "The target state could not be set to complete because the state transition is not valid."); ErrorMessages.Add(AsyncOperationInvalidStateChangeToReady, "The target state could not be set to ready because the state transition is not valid."); ErrorMessages.Add(AsyncOperationInvalidStateChangeToSuspended, "The target state could not be set to suspended because the state transition is not valid."); ErrorMessages.Add(AsyncOperationCannotUpdateNonrecurring, "Cannot update recurrence pattern for a job that is not recurring."); ErrorMessages.Add(AsyncOperationCannotUpdateRecurring, "Cannot update recurrence pattern for a job type that is not supported."); ErrorMessages.Add(AsyncOperationCannotDeleteUnlessCompleted, "Cannot delete async operation unless it is in Completed state."); ErrorMessages.Add(SdkInvalidMessagePropertyName, "Message property name '{0}' is not valid on message {1}."); ErrorMessages.Add(PluginAssemblyMustHavePublicKeyToken, "Public assembly must have public key token."); ErrorMessages.Add(SdkMessageInvalidImageTypeRegistration, "Message {0} does not support this image type."); ErrorMessages.Add(SdkMessageDoesNotSupportPostImageRegistration, "PreEvent step registration does not support Post Image."); ErrorMessages.Add(CannotDeserializeRequest, "The SDK request could not be deserialized."); ErrorMessages.Add(InvalidPluginRegistrationConfiguration, "The plug-in assembly registration configuration is invalid."); ErrorMessages.Add(SandboxClientPluginTimeout, "The plug-in execution failed because the operation has timed-out at the Sandbox Client."); ErrorMessages.Add(SandboxHostPluginTimeout, "The plug-in execution failed because the operation has timed-out at the Sandbox Host."); ErrorMessages.Add(SandboxWorkerPluginTimeout, "The plug-in execution failed because the operation has timed-out at the Sandbox Worker."); ErrorMessages.Add(SandboxSdkListenerStartFailed, "The plug-in execution failed because the Sandbox Client encountered an error during initialization."); ErrorMessages.Add(ServiceBusPostFailed, "The service bus post failed."); ErrorMessages.Add(ServiceBusIssuerNotFound, "Cannot find service integration issuer information."); ErrorMessages.Add(ServiceBusIssuerCertificateError, "Service integration issuer certificate error."); ErrorMessages.Add(ServiceBusExtendedTokenFailed, "Failed to retrieve the additional token for service bus post."); ErrorMessages.Add(ServiceBusPostPostponed, "Service bus post is being postponed."); ErrorMessages.Add(ServiceBusPostDisabled, "Service bus post is disabled for the organization."); ErrorMessages.Add(SdkMessageNotSupportedOnServer, "The message requested is not supported on the server."); ErrorMessages.Add(SdkMessageNotSupportedOnClient, "The message requested is not supported on the client."); ErrorMessages.Add(SdkCorrelationTokenDepthTooHigh, "This workflow job was canceled because the workflow that started it included an infinite loop. Correct the workflow logic and try again. For information about workflow logic, see Help."); ErrorMessages.Add(OnlyStepInPredefinedStagesCanBeModified, "Invalid plug-in registration stage. Steps can only be modified in stages BeforeMainOperationOutsideTransaction, BeforeMainOperationInsideTransaction, AfterMainOperationInsideTransaction and AfterMainOperationOutsideTransaction."); ErrorMessages.Add(OnlyStepInServerOnlyCanHaveSecureConfiguration, "Only SdkMessageProcessingStep with ServerOnly supported deployment can have secure configuration."); ErrorMessages.Add(OnlyStepOutsideTransactionCanCreateCrmService, "Only SdkMessageProcessingStep in parent pipeline and in stages outside transaction can create CrmService to prevent deadlock."); ErrorMessages.Add(SdkCustomProcessingStepIsNotAllowed, "Custom SdkMessageProcessingStep is not allowed on the specified message and entity."); ErrorMessages.Add(SdkEntityOfflineQueuePlaybackIsNotAllowed, "Entity '{0}' is not allowed in offline queue playback."); ErrorMessages.Add(SdkMessageDoesNotSupportImageRegistration, "Message '{0}' does not support image registration."); ErrorMessages.Add(RequestLengthTooLarge, "Request message length is too large."); ErrorMessages.Add(SandboxWorkerNotAvailable, "The plug-in execution failed because no Sandbox Worker processes are currently available. Please try again."); ErrorMessages.Add(SandboxHostNotAvailable, "The plug-in execution failed because no Sandbox Hosts are currently available. Please check that you have a Sandbox server configured and that it is running."); ErrorMessages.Add(PluginAssemblyContentSizeExceeded, "\"The assembly content size '{0} bytes' has exceeded the maximum value allowed for isolated plug-ins '{1} bytes'.\""); ErrorMessages.Add(UnableToLoadPluginType, "Unable to load plug-in type."); ErrorMessages.Add(UnableToLoadPluginAssembly, "Unable to load plug-in assembly."); ErrorMessages.Add(InvalidPluginAssemblyContent, "Plug-in assembly does not contain the required types or assembly content cannot be updated."); ErrorMessages.Add(InvalidPluginTypeImplementation, "Plug-in type must implement exactly one of the following classes or interfaces: Microsoft.Crm.Sdk.IPlugin, Microsoft.Xrm.Sdk.IPlugin, System.Activities.Activity and System.Workflow.ComponentModel.Activity."); ErrorMessages.Add(InvalidPluginAssemblyVersion, "Plug-in assembly fullnames must be unique (ignoring the version build and revision number)."); ErrorMessages.Add(PluginTypeMustBeUnique, "Multiple plug-in types from the same assembly and with the same typename are not allowed."); ErrorMessages.Add(InvalidAssemblySourceType, "The given plugin assembly source type is not supported for isolated plugin assemblies."); ErrorMessages.Add(InvalidAssemblyProcessorArchitecture, "The given plugin assembly was built with an unsupported target platform and cannot be loaded."); ErrorMessages.Add(CyclicReferencesNotSupported, "The input contains a cyclic reference, which is not supported."); ErrorMessages.Add(InvalidQuery, "The query specified for this operation is invalid"); ErrorMessages.Add(SandboxWorkerPluginExecuteTimeout, "Didn’t receive a response from the {0} plug-in within the 2:20-minute limit."); ErrorMessages.Add(ServiceBusEndpointNotConfigured, "Configuration of required credentials must be completed before messages can be sent."); ErrorMessages.Add(VirtualEntityFCBOFF, "Feature Bit for VirtualEntity not enabled."); ErrorMessages.Add(InvalidEmailAddressFormat, "Invalid e-mail address. For more information, contact your system administrator."); ErrorMessages.Add(ContractInvalidDiscount, "Discount cannot be greater than total price."); ErrorMessages.Add(InvalidLanguageCode, "The specified language code is not valid for this organization."); ErrorMessages.Add(ConfigNullPrimaryKey, "Primary Key cannot be nullable."); ErrorMessages.Add(ConfigMissingDescription, "Description must be specified."); ErrorMessages.Add(AttributeDoesNotSupportLocalizedLabels, "The specified attribute does not support localized labels."); ErrorMessages.Add(NoLanguageProvisioned, "There is no language provisioned for this organization."); ErrorMessages.Add(CannotImportNullStringsForBaseLanguage, "The base language translation string present in worksheet {0}, row {1}, column {2} is null."); ErrorMessages.Add(CannotUpdateNonCustomizableString, "The translation string present in worksheet {0}, row {1}, column {2} is not customizable."); ErrorMessages.Add(InvalidOrganizationId, "The Organization ID present in the translations file does not match the current Organization ID."); ErrorMessages.Add(InvalidTranslationsFile, "The translations file is invalid or does not confirm to the required schema."); ErrorMessages.Add(MetadataRecordNotDeletable, "The metadata record being deleted cannot be deleted by the end user"); ErrorMessages.Add(InvalidImportJobTemplateFile, "The ImportJobTemplate.xml file is invalid."); ErrorMessages.Add(InvalidImportJobId, "The requested importjob does not exist."); ErrorMessages.Add(MissingCrmAuthenticationToken, "CrmAuthenticationToken is missing."); ErrorMessages.Add(IntegratedAuthenticationIsNotAllowed, "Integrated authentication is not allowed."); ErrorMessages.Add(RequestIsNotAuthenticated, "Request is not authenticated."); ErrorMessages.Add(AsyncOperationTypeIsNotRecognized, "The operation type of the async operation was not recognized."); ErrorMessages.Add(FailedToDeserializeAsyncOperationData, "Failed to deserialize async operation data."); ErrorMessages.Add(UserSettingsOverMaxPagingLimit, "Paging limit over maximum configured value."); ErrorMessages.Add(AsyncNetworkError, "An error occurred while accessing the network."); ErrorMessages.Add(AsyncCommunicationError, "A communication error occurred while processing the async operation."); ErrorMessages.Add(MissingCrmAuthenticationTokenOrganizationName, "Organization Name must be specified in CrmAuthenticationToken."); ErrorMessages.Add(SdkNotEnoughPrivilegeToSetCallerOriginToken, "Caller does not have enough privilege to set CallerOriginToken to the specified value."); ErrorMessages.Add(OverRetrievalUpperLimitWithoutPagingCookie, "Over upper limit of records that can be requested without a paging cookie. A paging cookie is required when retrieving a high page number."); ErrorMessages.Add(InvalidAllotmentsOverage, "Allotment overage is invalid."); ErrorMessages.Add(TooManyConditionsInQuery, "Number of conditions in query exceeded maximum limit."); ErrorMessages.Add(TooManyLinkEntitiesInQuery, "Number of link entities in query exceeded maximum limit."); ErrorMessages.Add(TooManyConditionParametersInQuery, "Number of parameters in a condition exceeded maximum limit."); ErrorMessages.Add(InvalidOneToManyRelationshipForRelatedEntitiesQuery, "An invalid OneToManyRelationship has been specified for RelatedEntitiesQuery. Referenced Entity {0} should be the same as primary entity {1}"); ErrorMessages.Add(PicklistValueNotUnique, "The picklist value already exists. Picklist values must be unique."); ErrorMessages.Add(UnableToLogOnUserFromUserNameAndPassword, "The specified user name and password can not logon."); ErrorMessages.Add(PicklistValueOutOfRange, "The picklist value is out of the range."); ErrorMessages.Add(WrongNumberOfBooleanOptions, "Boolean attributes must have exactly two option values."); ErrorMessages.Add(BooleanOptionOutOfRange, "Boolean attribute options must have a value of either 0 or 1."); ErrorMessages.Add(CannotAddNewBooleanValue, "You cannot add an option to a Boolean attribute."); ErrorMessages.Add(CannotAddNewStateValue, "You cannot add state options to a State attribute."); ErrorMessages.Add(NoMoreCustomOptionValuesExist, "All available custom option values have been used."); ErrorMessages.Add(InsertOptionValueInvalidType, "You can add option values only to picklist and status attributes."); ErrorMessages.Add(NewStatusRequiresAssociatedState, "The new status option must have an associated state value."); ErrorMessages.Add(NewStatusHasInvalidState, "The state value that was provided for this new status option does not exist."); ErrorMessages.Add(CannotDeleteEnumOptionsFromAttributeType, "You can delete options only from picklist and status attributes."); ErrorMessages.Add(OptionReorderArrayIncorrectLength, "The array of option values that were provided for reordering does not match the number of options for the attribute."); ErrorMessages.Add(ValueMissingInOptionOrderArray, "The options array is missing a value."); ErrorMessages.Add(NavPaneOrderValueNotAllowed, "The provided nav pane order value is not allowed"); ErrorMessages.Add(EntityRelationshipRoleCustomLabelsMissing, "Custom labels must be provided if an entity relationship role has a display option of UseCustomLabels"); ErrorMessages.Add(NavPaneNotCustomizable, "The nav pane properties for this relationship are not customizable"); ErrorMessages.Add(EntityRelationshipSchemaNameRequired, "Entity relationships require a name"); ErrorMessages.Add(EntityRelationshipSchemaNameNotUnique, "A relationship with the specified name already exists. Please specify a unique name."); ErrorMessages.Add(CustomReflexiveRelationshipNotAllowedForEntity, "This entity is not valid for a custom reflexive relationship"); ErrorMessages.Add(EntityCannotBeChildInCustomRelationship, "This entity is either not valid as a child in a custom parental relationship or is already a child in a parental relationship"); ErrorMessages.Add(ReferencedEntityHasLogicalPrimaryNameField, "This entity has a primary field that is logical and therefore cannot be the referenced entity in a one-to-many relationship"); ErrorMessages.Add(IntegerValueOutOfRange, "A validation error occurred. An integer provided is outside of the allowed values for this attribute."); ErrorMessages.Add(DecimalValueOutOfRange, "A validation error occurred. A decimal value provided is outside of the allowed values for this attribute."); ErrorMessages.Add(StringLengthTooLong, "A validation error occurred. A string value provided is too long."); ErrorMessages.Add(EntityCannotParticipateInEntityAssociation, "This entity cannot participate in an entity association"); ErrorMessages.Add(DataMigrationManagerUnknownProblem, "The Data Migration Manager encountered an unknown problem and cannot continue. To try again, restart the Data Migration Manager."); ErrorMessages.Add(ImportOperationChildFailure, "One or more of the Import Child Jobs Failed"); ErrorMessages.Add(AttributeDeprecated, "\"Attribute '{0}' on entity '{1}' is deprecated.\""); ErrorMessages.Add(DataMigrationManagerMandatoryUpdatesNotInstalled, "First-time configuration of the Data Migration Manager has been canceled. You will not be able to use the Data Migration Manager until configuration is completed."); ErrorMessages.Add(ReferencedEntityMustHaveLookupView, "Referenced entities of a relationship must have a lookup view"); ErrorMessages.Add(ReferencingEntityMustHaveAssociationView, "Referencing entities of a relationship must have an association view"); ErrorMessages.Add(CouldNotObtainLockOnResource, "Database resource lock could not be obtained"); ErrorMessages.Add(SourceAttributeHeaderTooBig, "Column headers must be 160 or fewer characters. Fix the column headers, and then run Data Migration Manager again."); ErrorMessages.Add(CannotDeleteDefaultStatusOption, "Default Status options cannot be deleted."); ErrorMessages.Add(CannotFindDomainAccount, "Invalid domain account"); ErrorMessages.Add(CannotUpdateAppDefaultValueForStateAttribute, "The default value for a status (statecode) attribute cannot be updated."); ErrorMessages.Add(CannotUpdateAppDefaultValueForStatusAttribute, "The default value for a status reason (statuscode) attribute is not used. The default status reason is set in the associated status (statecode) attribute option."); ErrorMessages.Add(InvalidOptionSetSchemaName, "An OptionSet with the specified name already exists. Please specify a unique name."); ErrorMessages.Add(ReferencingEntityCannotBeSolutionAware, "Referencing entities in a relationship cannot be a component in a solution."); ErrorMessages.Add(ErrorInFieldWidthIncrease, "An error occurred while increasing the field width."); ErrorMessages.Add(ExpiredVersionStamp, "Version stamp associated with the client has expired. Please perform a full sync."); ErrorMessages.Add(OrgIdNotDetermined, "Error. The current organization ID couldn’t be determined"); ErrorMessages.Add(AsyncOperationCannotCancel, "This system job cannot be canceled."); ErrorMessages.Add(AsyncOperationCannotPause, "This system job cannot be paused."); ErrorMessages.Add(CannotDeleteOrCancelSystemJobs, "You can't cancel or delete this system job because it's required by the system. You can only pause, resume, or postpone this job."); ErrorMessages.Add(WorkflowCompileFailure, "An error has occurred during compilation of the workflow."); ErrorMessages.Add(UpdatePublishedWorkflowDefinition, "Cannot update a published workflow definition."); ErrorMessages.Add(UpdateWorkflowActivation, "Cannot update a workflow activation."); ErrorMessages.Add(DeleteWorkflowActivation, "Cannot delete a workflow activation."); ErrorMessages.Add(DeleteWorkflowActivationWorkflowDependency, "Cannot delete a workflow dependency associated with a workflow activation."); ErrorMessages.Add(DeletePublishedWorkflowDefinitionWorkflowDependency, "Cannot delete a workflow dependency for a published workflow definition."); ErrorMessages.Add(UpdateWorkflowActivationWorkflowDependency, "Cannot update a workflow dependency associated with a workflow activation."); ErrorMessages.Add(UpdatePublishedWorkflowDefinitionWorkflowDependency, "Cannot update a workflow dependency for a published workflow definition."); ErrorMessages.Add(CreateWorkflowActivationWorkflowDependency, "Cannot create a workflow dependency associated with a workflow activation."); ErrorMessages.Add(CreatePublishedWorkflowDefinitionWorkflowDependency, "Cannot create a workflow dependency for a published workflow definition."); ErrorMessages.Add(WorkflowPublishedByNonOwner, "The workflow cannot be published or unpublished by someone who is not its owner."); ErrorMessages.Add(PublishedWorkflowOwnershipChange, "A published workflow can only be assigned to the caller."); ErrorMessages.Add(OnlyWorkflowDefinitionOrTemplateCanBePublished, "Only workflow definition or draft workflow template can be published."); ErrorMessages.Add(OnlyWorkflowDefinitionOrTemplateCanBeUnpublished, "Only workflow definition or workflow template can be unpublished."); ErrorMessages.Add(DeleteWorkflowActiveDefinition, "Cannot delete an active workflow definition."); ErrorMessages.Add(WorkflowConditionIncorrectUnaryOperatorFormation, "Incorrect formation of unary operator."); ErrorMessages.Add(WorkflowConditionIncorrectBinaryOperatorFormation, "Incorrect formation of binary operator."); ErrorMessages.Add(WorkflowConditionOperatorNotSupported, "Condition operator not supported for specified type."); ErrorMessages.Add(WorkflowConditionTypeNotSupport, "Invalid type specified on condition."); ErrorMessages.Add(WorkflowValidationFailure, "Validation failed on the specified workflow."); ErrorMessages.Add(PublishedWorkflowLimitForSkuReached, "This workflow cannot be published because your organization has reached its limit for the number of workflows that can be published at the same time. (There is no limit on the number of draft workflows.) You can publish this workflow by unpublishing a different workflow, or by upgrading your license to a license that supports more workflows."); ErrorMessages.Add(NoPrivilegeToPublishWorkflow, "User does not have sufficient privileges to publish workflows."); ErrorMessages.Add(WorkflowSystemPaused, "Workflow should be paused by system."); ErrorMessages.Add(WorkflowPublishNoActivationParameters, "Automatic workflow cannot be published if no activation parameters have been specified."); ErrorMessages.Add(CreateWorkflowDependencyForPublishedTemplate, "Cannot create a workflow dependency for a published workflow template."); ErrorMessages.Add(DeleteActiveWorkflowTemplateDependency, "Cannot delete workflow dependency from a published workflow template ."); ErrorMessages.Add(UpdatePublishedWorkflowTemplate, "Cannot update a published workflow template."); ErrorMessages.Add(DeleteWorkflowActiveTemplate, "Cannot delete an active workflow template."); ErrorMessages.Add(CustomActivityInvalid, "Invalid custom activity."); ErrorMessages.Add(PrimaryEntityInvalid, "Invalid primary entity."); ErrorMessages.Add(CannotDeserializeWorkflowInstance, "Workflow instance cannot be deserialized. A possible reason for this failure is a workflow referencing a custom activity that has been unregistered."); ErrorMessages.Add(CannotDeserializeXamlWorkflow, "Xaml representing workflow cannot be deserialized into a DynamicActivity."); ErrorMessages.Add(CannotDeleteCustomEntityUsedInWorkflow, "Cannot delete entity because it is used in a workflow."); ErrorMessages.Add(BulkMailOperationFailed, "The bulk e-mail job completed with {0} failures. The failures might be caused by missing e-mail addresses or because you do not have permission to send e-mail. To find records with missing e-mail addresses, use Advanced Find. If you need increased e-mail permissions, contact your system administrator."); ErrorMessages.Add(WorkflowExpressionOperatorNotSupported, "Expression operator not supported for specified type."); ErrorMessages.Add(ChildWorkflowNotFound, "This workflow cannot run because one or more child workflows it uses have not been published or have been deleted. Please check the child workflows and try running this workflow again."); ErrorMessages.Add(CannotDeleteAttributeUsedInWorkflow, "This attribute cannot be deleted because it is used in one or more workflows. Cancel any system jobs for workflows that use this attribute, then delete or modify any workflows that use the attribute, and then try to delete the attribute again."); ErrorMessages.Add(CannotLocateRecordForWorkflowActivity, "A record required by this workflow job could not be found."); ErrorMessages.Add(PublishWorkflowWhileActingOnBehalfOfAnotherUserError, "Publishing Workflows while acting on behalf of another user is not allowed."); ErrorMessages.Add(CannotDisableInternetMarketingUser, "You cannot disable the Internet Marketing Partner user. This user does not consume a user license and is not charged to your organization."); ErrorMessages.Add(CannotSetWindowsLiveIdForInternetMarketingUser, "You cannot change the Windows Live ID for the Internet Marketing Partner user. This user does not consume a user license and is not charged to your organization."); ErrorMessages.Add(CannotChangeAccessModeForInternetMarketingUser, "Internet Marketing User is a system user. You cannot change its access mode."); ErrorMessages.Add(CannotChangeInvitationStatusForInternetMarketingUser, "Internet Marketing User is a system user. You cannot change its invitation status."); ErrorMessages.Add(UIDataGenerationFailed, "There was an error generating the UIData from XAML."); ErrorMessages.Add(WorkflowReferencesInvalidActivity, "The workflow definition contains a step that references and invalid custom activity. Remove the invalid references and try again."); ErrorMessages.Add(PublishWorkflowWhileImpersonatingError, "Publishing Workflows while impersonating another user is not allowed."); ErrorMessages.Add(ExchangeAutodiscoverError, "Autodiscover could not find the Exchange Web Services URL for the specified mailbox. Verify that the mailbox address and the credentials provided are correct and that Autodiscover is enabled and has been configured correctly."); ErrorMessages.Add(NonCrmUIWorkflowsNotSupported, "This workflow cannot be created, updated or published because it was created outside the Microsoft Dynamics 365 Web application. Your organization does not allow this type of workflow."); ErrorMessages.Add(NotEnoughPrivilegesForXamlWorkflows, "Not enough privileges to complete the operation. Only the deployment administrator can create or update workflows that are created outside the Microsoft Dynamics 365 Web application."); ErrorMessages.Add(WorkflowAutomaticallyDeactivated, "The original workflow definition has been deactivated and replaced."); ErrorMessages.Add(StepAutomaticallyDisabled, "The original sdkmessageprocessingstep has been disabled and replaced."); ErrorMessages.Add(NonCrmUIInteractiveWorkflowNotSupported, "This interactive workflow cannot be created, updated or published because it was created outside the Microsoft Dynamics 365 Web application."); ErrorMessages.Add(WorkflowActivityNotSupported, "This workflow cannot be created, updated or published because it's referring unsupported workflow step."); ErrorMessages.Add(ExecuteNotOnDemandWorkflow, "Workflow must be marked as on-demand or child workflow."); ErrorMessages.Add(ExecuteUnpublishedWorkflow, "Workflow must be in Published state."); ErrorMessages.Add(ChildWorkflowParameterMismatch, "This workflow cannot run because arguments provided by parent workflow does not match with the specified parameters in linked child workflow. Check the child workflow reference in parent workflow and try running this workflow again."); ErrorMessages.Add(InvalidProcessStateData, "ProcessState is not valid for given ProcessSession instance."); ErrorMessages.Add(OutOfScopeSlug, "The data required to display the next dialog page cannot be found. To resolve this issue, contact the dialog owner or the system administrator."); ErrorMessages.Add(CustomWorkflowActivitiesNotSupported, "Custom Workflow Activities are not enabled."); ErrorMessages.Add(CustomOperationNotActivated, "Process action associated with this process is not activated."); ErrorMessages.Add(ProcessActionIsNotActive, "Process Action should be active to be used on Action Step."); ErrorMessages.Add(ProcessActionDoesNotExist, "Process Action does not exist."); ErrorMessages.Add(WorkflowIsNotActive, "Workflow must be active to be used on Action Step."); ErrorMessages.Add(ProcessActionWithInvalidOutputParam, "Process Action contains a field in output parameter that is unsupported on Action Steps. Refer to {0}."); ErrorMessages.Add(ProcessActionWithInvalidInputParam, "Process Action contains a field in input parameter that is unsupported on Action Steps. Refer to {0} "); ErrorMessages.Add(ProcessActionWithInvalidInputOutputParam, "Process Action contains a parameter that is not supported. Name: {0}, type: {1}, direction: {2}."); ErrorMessages.Add(WorkflowIsNotOnDemand, "Workflow must be marked as On Demand."); ErrorMessages.Add(CrmSqlGovernorDatabaseRequestDenied, "The server is busy and the request was not completed. Try again later."); ErrorMessages.Add(AsyncOperationTypeThrottled, "The job could not be completed because the server is busy. We will retry the job again soon."); ErrorMessages.Add(AsyncOperationPostponedByExceptionCountThrottle, "Currently, we are unable to complete this action. It has been postponed. We will try again later."); ErrorMessages.Add(InvalidAuthTicket, "The ticket specified for authentication didn't pass validation"); ErrorMessages.Add(ExpiredAuthTicket, "The ticket specified for authentication is expired"); ErrorMessages.Add(BadAuthTicket, "The ticket specified for authentication is invalid"); ErrorMessages.Add(InsufficientAuthTicket, "The ticket specified for authentication didn't meet policy"); ErrorMessages.Add(OrganizationDisabled, "The Dynamics 365 organization you are attempting to access is currently disabled. Please contact your system administrator"); ErrorMessages.Add(TamperedAuthTicket, "The ticket specified for authentication has been tampered with or invalidated."); ErrorMessages.Add(ExpiredKey, "The key specified to compute a hash value is expired, only active keys are valid. Expired Key : {0}."); ErrorMessages.Add(ScaleGroupDisabled, "The specified scalegroup is disabled. Access to organizations in this scalegroup are not allowed."); ErrorMessages.Add(SupportLogOnExpired, "Support login is expired"); ErrorMessages.Add(InvalidPartnerSolutionCustomizationProvider, "Invalid partner solution customization provider type"); ErrorMessages.Add(MultiplePartnerSecurityRoleWithSameInformation, "More than one security role found for partner user"); ErrorMessages.Add(MultiplePartnerUserWithSameInformation, "More than one partner user found with same information"); ErrorMessages.Add(MultipleRootBusinessUnit, "More than one root business unit found"); ErrorMessages.Add(CannotDeletePartnerWithPartnerSolutions, "Can not delete partner as one or more solutions are associated with it"); ErrorMessages.Add(CannotDeletePartnerSolutionWithOrganizations, "Can not delete partner solution as one or more organizations are associated with it"); ErrorMessages.Add(CannotProvisionPartnerSolution, "Can not provision partner solution as it is either already provisioned or going through provisioning."); ErrorMessages.Add(CannotActOnBehalfOfAnotherUser, "User does not have the privilege to act on behalf another user."); ErrorMessages.Add(SystemUserDisabled, "The system user was disabled therefore the ticket expired."); ErrorMessages.Add(UserDoesNotHaveAdminOnlyModePermissions, "User does not have required privileges (or role membership) to access the org when it is in Admin Only mode."); ErrorMessages.Add(PluginDoesNotImplementCorrectInterface, "The plug-in specified does not implement the required interface Microsoft.Xrm.Sdk.IPlugin or Microsoft.Crm.Sdk.IPlugin."); ErrorMessages.Add(CannotCreatePluginInstance, "Can not create instance of a plug-in. Verify that plug-in type is not defined as abstract and it has a public constructor supported by Dynamics 365 SDK."); ErrorMessages.Add(CrmLiveGenericError, "An error has occurred while processing your request."); ErrorMessages.Add(CrmLiveOrganizationProvisioningFailed, "An error has occurred when provisioning the organization."); ErrorMessages.Add(CrmLiveMissingActiveDirectoryGroup, "The specified Active Directory Group does not exist."); ErrorMessages.Add(CrmLiveInternalProvisioningError, "An unexpected error happened in the provisioning system."); ErrorMessages.Add(CrmLiveQueueItemDoesNotExist, "The specified queue item does not exist in the queue. It may have been deleted or its ID may not have been specified correctly"); ErrorMessages.Add(CrmLiveInvalidSetupParameter, "The parameter to Dynamics 365 Online Setup is incorrect or not specified."); ErrorMessages.Add(CrmLiveMultipleWitnessServersInScaleGroup, "The ScaleGroup has multiple witness servers specified. There should be only 1 witness server in a scale group."); ErrorMessages.Add(CrmLiveMissingServerRolesInScaleGroup, "The scalegroup is missing some required server roles. 1 Witness Server and 2 Sql Servers are required for Provisioning."); ErrorMessages.Add(CrmLiveServerCannotHaveWitnessAndDataServerRoles, "A server cannot have both Witness and Data Server Roles."); ErrorMessages.Add(IsNotLiveToSendInvitation, "This functionality is not supported, its only available for Online solution."); ErrorMessages.Add(MissingOrganizationFriendlyName, "Cannot install Dynamics 365 without an organization friendly name."); ErrorMessages.Add(MissingOrganizationUniqueName, "Cannot install Dynamics 365 without an organization unique name."); ErrorMessages.Add(OfferingCategoryAndTokenNull, "Offer category and Billing Token are both missing, but at least one is required."); ErrorMessages.Add(OfferingIdNotSupported, "This version does not support search for offering id."); ErrorMessages.Add(OrganizationTakenByYou, "The organization {0} is already purchased by you."); ErrorMessages.Add(OrganizationTakenBySomeoneElse, "The organization {0} is already purchased by another customer."); ErrorMessages.Add(InvalidTemplate, "The Invitation Email template is not valid"); ErrorMessages.Add(InvalidUserQuota, "You have reached the maximum number of user quota"); ErrorMessages.Add(InvalidRole, "You have not assigned roles to this user"); ErrorMessages.Add(ErrorGeneratingInvitation, "Some Internal error occurred in generating invitation token, Please try again later"); ErrorMessages.Add(CrmLiveOrganizationUpgradeFailed, "Upgrade Of Crm Organization Failed."); ErrorMessages.Add(UnableToSendEmail, "Some Internal error occurred in sending invitation, Please try again later"); ErrorMessages.Add(InvalidEmail, "Email generated from the template is not valid"); ErrorMessages.Add(VersionMismatch, "Unsupported version - This is {0} version {1}, but version {2} was requested."); ErrorMessages.Add(MissingParameterToMethod, "Missing parameter {0} to method {1}"); ErrorMessages.Add(InvalidValueForCountryCode, "Account Country/Region code must not be {0}"); ErrorMessages.Add(InvalidValueForCurrency, "Account currency code must not be {0}"); ErrorMessages.Add(InvalidValueForLocale, "Account locale code must not be {0}"); ErrorMessages.Add(CrmLiveSupportOrganizationExistsInScaleGroup, "Only one support organization is allowed in a scalegroup."); ErrorMessages.Add(CrmLiveMonitoringOrganizationExistsInScaleGroup, "Only one monitoring organization is allowed in a scalegroup."); ErrorMessages.Add(InvalidUserLicenseCount, "Cannot purchase {0} user licenses for the Offering {1}."); ErrorMessages.Add(MissingColumn, "The property bag is missing an entry for {0}."); ErrorMessages.Add(InvalidResourceType, "The requested action is not valid for resource type {0}."); ErrorMessages.Add(InvalidMinimumResourceLimit, "The resource type {0} cannot have a minimum limit of {1}."); ErrorMessages.Add(InvalidMaximumResourceLimit, "The resource type {0} cannot have a maximum limit of {1}."); ErrorMessages.Add(ConflictingProvisionTypes, "The service component {0} has conflicting provision types."); ErrorMessages.Add(InvalidAmountProvided, "The service component {0} cannot have a provide {1} of resource type {2}."); ErrorMessages.Add(CrmLiveOrganizationDeleteFailed, "An error has occurred when deleting the organization."); ErrorMessages.Add(OnlyDisabledOrganizationCanBeDeleted, "Can not delete enabled organization. Organization must be disabled before it can be deleted."); ErrorMessages.Add(CrmLiveOrganizationDetailsNotFound, "Unable to find organization details."); ErrorMessages.Add(CrmLiveOrganizationFriendlyNameTooShort, "The organization name provided is too short."); ErrorMessages.Add(CrmLiveOrganizationFriendlyNameTooLong, "The organization name provided is too long."); ErrorMessages.Add(CrmLiveOrganizationUniqueNameTooShort, "The unique name provided is too short."); ErrorMessages.Add(CrmLiveOrganizationUniqueNameTooLong, "The unique name provided is too long."); ErrorMessages.Add(CrmLiveOrganizationUniqueNameInvalid, "The unique name provided is not valid."); ErrorMessages.Add(CrmLiveOrganizationUniqueNameReserved, "The unique name is already reserved."); ErrorMessages.Add(ValueParsingError, "Error parsing parameter {0} of type {1} with value {2}"); ErrorMessages.Add(InvalidGranularityValue, "The Granularity column value is incorrect. Each rule part must be a name-value pair separated by an equal sign (=). For example: FREQ=Minutes;INTERVAL=15"); ErrorMessages.Add(CrmLiveInvalidQueueItemSchedule, "The QueueItem has an invalid schedule of start time {0} and end time {1}."); ErrorMessages.Add(CrmLiveQueueItemTimeInPast, "A QueueItem cannot be scheduled to start or end in the past."); ErrorMessages.Add(CrmLiveUnknownSku, "This Sku specified is not valid."); ErrorMessages.Add(ExceedCustomEntityQuota, "The custom entity limit has been reached."); ErrorMessages.Add(ImportWillExceedCustomEntityQuota, "This import process is trying to import {0} new custom entities. This would exceed the custom entity limits for this organization."); ErrorMessages.Add(OrganizationMigrationUnderway, "Organization migration is already underway."); ErrorMessages.Add(CrmLiveInvoicingAccountIdMissing, "Invoicing Account Number (SAP Id) cannot be empty for an invoicing sku."); ErrorMessages.Add(CrmLiveDuplicateWindowsLiveId, "A user with this username already exists."); ErrorMessages.Add(CrmLiveDnsDomainNotFound, "Domain was not found in the DNS table."); ErrorMessages.Add(CrmLiveDnsDomainAlreadyExists, "Domain already exists in the DNS table."); ErrorMessages.Add(InvalidInteractiveUserQuota, "You have reached the maximum number of interactive/full users."); ErrorMessages.Add(InvalidNonInteractiveUserQuota, "You have reached the maximum number of non-interactive users/"); ErrorMessages.Add(CrmLiveCannotFindExternalMessageProvider, "External Message Provider could not be located for queue item type of: {0}."); ErrorMessages.Add(CrmLiveInvalidExternalMessageData, "External Message Data has some invalid data. Data: {0} External Message: {1}"); ErrorMessages.Add(CrmLiveOrganizationEnableFailed, "Enabling Organization Failed."); ErrorMessages.Add(CrmLiveOrganizationDisableFailed, "Disabling Organization Failed."); ErrorMessages.Add(CrmLiveAddOnUnexpectedError, "There was an error contacting the billing system. Your request cannot be processed at this time. No changes have been made to your account. Close this wizard, and try again later. If the problem persists, please contact our sales organization at 1-877-Dynamics 365-CHOICE (276-2464)."); ErrorMessages.Add(CrmLiveAddOnAddLicenseLimitReached, "Your subscription has the maximum number of user licenses available. For additional licenses, please contact our sales organization at 1-877-Dynamics 365-CHOICE (276-2464)."); ErrorMessages.Add(CrmLiveAddOnAddStorageLimitReached, "Your subscription has the maximum amount of storage available. For additional storage, please contact our sales organization at 1-877-Dynamics 365-CHOICE (276-2464)."); ErrorMessages.Add(CrmLiveAddOnRemoveStorageLimitReached, "Your organization has the minimum amount of storage allowed. You can remove only storage that has been added to your organization, and is not being used."); ErrorMessages.Add(CrmLiveAddOnOrgInNoUpdateMode, "Your changes cannot be processed at this time. Your organization is currently being updated. No changes have been made to your account. Close this wizard, and try again later. If the problem persists, please contact our sales organization at 1-877-Dynamics 365-CHOICE (276-2464)."); ErrorMessages.Add(CrmLiveUnknownCategory, "This Category specified is not valid."); ErrorMessages.Add(CrmLiveInvalidInvoicingAccountNumber, "This Invoicing Account Number is not valid because it contains an invalid character."); ErrorMessages.Add(CrmLiveAddOnDataChanged, "Due to recent changes you have made to your account, these changes cannot be made at this time. Close this wizard, and try again later. If the problem persists, please contact our sales organization at 1-877-Dynamics 365-CHOICE (276-2464)."); ErrorMessages.Add(CrmLiveInvalidEmail, "Invalid email address entered."); ErrorMessages.Add(CrmLiveInvalidPhone, "Invalid phone number entered."); ErrorMessages.Add(CrmLiveInvalidZipCode, "Invalid zip code entered."); ErrorMessages.Add(InvalidAmountFreeResourceLimit, "The resource type {0} cannot have an amount free value of {1}."); ErrorMessages.Add(InvalidToken, "The token is invalid."); ErrorMessages.Add(CrmLiveRegisterCustomCodeDisabled, "Registration of custom code feature for this organization is disabled."); ErrorMessages.Add(CrmLiveExecuteCustomCodeDisabled, "Execution of custom code feature for this organization is disabled."); ErrorMessages.Add(CrmLiveInvalidTaxId, "Invalid TaxId entered."); ErrorMessages.Add(DatacenterNotAvailable, "This datacenter endpoint is not currently available for this organization."); ErrorMessages.Add(ErrorConnectingToDiscoveryService, "Error when trying to connect to customer's discovery service."); ErrorMessages.Add(OrgDoesNotExistInDiscoveryService, "Organization not found in customer's discovery service"); ErrorMessages.Add(ErrorConnectingToOrganizationService, "Error when trying to connect to customer's organization service."); ErrorMessages.Add(UserIsNotSystemAdminInOrganization, "Current user is not a system admin in customer's organization"); ErrorMessages.Add(MobileServiceError, "Error communicating with mobile service"); ErrorMessages.Add(LivePlatformGeneralEmailError, "An Email Error Occurred"); ErrorMessages.Add(LivePlatformEmailInvalidTo, "The \"To\" parameter is blank or null"); ErrorMessages.Add(LivePlatformEmailInvalidFrom, "The \"From\" parameter is blank or null"); ErrorMessages.Add(LivePlatformEmailInvalidSubject, "The \"Subject\" parameter is blank or null"); ErrorMessages.Add(LivePlatformEmailInvalidBody, "The \"Body\" parameter is blank or null"); ErrorMessages.Add(BillingPartnerCertificate, "Could not determine the right Partner certificate to use with Billing. Issuer: {0} Subject: {1} Distinguished matches: [{2}] Name matches: [{3}] All valid certificates: [{4}]."); ErrorMessages.Add(BillingNoSettingError, "No Billing application configuration setting [{0}] was found."); ErrorMessages.Add(BillingTestConnectionError, "Billing is not available: Call to IsServiceAvailable returned 'False'."); ErrorMessages.Add(BillingTestConnectionException, "Billing TestConnection exception."); ErrorMessages.Add(BillingUserPuidNullError, "User Puid is required, but is null."); ErrorMessages.Add(BillingUnmappedErrorCode, "Billing error code [{0}] was thrown with exception {1}"); ErrorMessages.Add(BillingUnknownErrorCode, "Billing error code [{0}] was thrown with exception {1}"); ErrorMessages.Add(BillingUnknownException, "Billing error was thrown with exception {0}"); ErrorMessages.Add(BillingRetrieveKeyError, "Could not retrieve Billing session key: \"{0}\""); ErrorMessages.Add(BDK_E_ADDRESS_VALIDATION_FAILURE, "{0} "); ErrorMessages.Add(BDK_E_AGREEMENT_ALREADY_SIGNED, "{0} "); ErrorMessages.Add(BDK_E_AUTHORIZATION_FAILED, "{0} "); ErrorMessages.Add(BDK_E_AVS_FAILED, "{0} "); ErrorMessages.Add(BDK_E_BAD_CITYNAME_LENGTH, "{0} "); ErrorMessages.Add(BDK_E_BAD_STATECODE_LENGTH, "{0} "); ErrorMessages.Add(BDK_E_BAD_ZIPCODE_LENGTH, "{0} "); ErrorMessages.Add(BDK_E_BADXML, "{0} "); ErrorMessages.Add(BDK_E_BANNED_PAYMENT_INSTRUMENT, "{0} "); ErrorMessages.Add(BDK_E_BANNEDPERSON, "{0} "); ErrorMessages.Add(BDK_E_CANNOT_EXCEED_MAX_OWNERSHIP, "{0} "); ErrorMessages.Add(BDK_E_COUNTRY_CURRENCY_PI_MISMATCH, "{0} "); ErrorMessages.Add(BDK_E_CREDIT_CARD_EXPIRED, "{0} "); ErrorMessages.Add(BDK_E_DATE_EXPIRED, "{0} "); ErrorMessages.Add(BDK_E_ERROR_COUNTRYCODE_MISMATCH, "{0} "); ErrorMessages.Add(BDK_E_ERROR_COUNTRYCODE_REQUIRED, "{0} "); ErrorMessages.Add(BDK_E_EXTRA_REFERRAL_DATA, "{0} "); ErrorMessages.Add(BDK_E_GUID_EXISTS, "{0} "); ErrorMessages.Add(BDK_E_INVALID_ADDRESS_ID, "{0} "); ErrorMessages.Add(BDK_E_INVALID_BILLABLE_ACCOUNT_ID, "{0} The specified Billing account is invalid. Or, although the objectID is of the correct type, the account it identifies does not exist in the system."); ErrorMessages.Add(BDK_E_INVALID_BUF_SIZE, "{0} "); ErrorMessages.Add(BDK_E_INVALID_CATEGORY_NAME, "{0} "); ErrorMessages.Add(BDK_E_INVALID_COUNTRY_CODE, "{0} "); ErrorMessages.Add(BDK_E_INVALID_CURRENCY, "{0} "); ErrorMessages.Add(BDK_E_INVALID_CUSTOMER_TYPE, "{0} "); ErrorMessages.Add(BDK_E_INVALID_DATE, "{0} "); ErrorMessages.Add(BDK_E_INVALID_EMAIL_ADDRESS, "{0} "); ErrorMessages.Add(BDK_E_INVALID_FILTER, "{0} "); ErrorMessages.Add(BDK_E_INVALID_GUID, "{0} "); ErrorMessages.Add(BDK_E_INVALID_INPUT_TO_TAXWARE_OR_VERAZIP, "{0} "); ErrorMessages.Add(BDK_E_INVALID_LOCALE, "{0} "); ErrorMessages.Add(BDK_E_INVALID_OBJECT_ID, "{0} The Billing system cannot find the object (e.g. account or subscription or offering)."); ErrorMessages.Add(BDK_E_INVALID_OFFERING_GUID, "{0} "); ErrorMessages.Add(BDK_E_INVALID_PAYMENT_INSTRUMENT_STATUS, "{0} "); ErrorMessages.Add(BDK_E_INVALID_PAYMENT_METHOD_ID, "{0} "); ErrorMessages.Add(BDK_E_INVALID_PHONE_TYPE, "{0} "); ErrorMessages.Add(BDK_E_INVALID_POLICY_ID, "{0} "); ErrorMessages.Add(BDK_E_INVALID_REFERRALDATA_XML, "{0} "); ErrorMessages.Add(BDK_E_INVALID_STATE_FOR_COUNTRY, "{0} "); ErrorMessages.Add(BDK_E_INVALID_SUBSCRIPTION_ID, "{0} The subscription id specified is invalid. Or, although the objectID is of correct type and also points to a valid account in SCS, the subscription it identifies does not exist in SCS."); ErrorMessages.Add(BDK_E_INVALID_TAX_EXEMPT_TYPE, "{0} "); ErrorMessages.Add(BDK_E_MEG_CONFLICT, "{0} "); ErrorMessages.Add(BDK_E_MULTIPLE_CITIES_FOUND, "{0} "); ErrorMessages.Add(BDK_E_MULTIPLE_COUNTIES_FOUND, "{0} "); ErrorMessages.Add(BDK_E_NON_ACTIVE_ACCOUNT, "{0} "); ErrorMessages.Add(BDK_E_NOPERMISSION, "{0} The calling partner does not have access to this method or when the requester does not have permission to search against the supplied search PUID."); ErrorMessages.Add(BDK_E_OBJECT_ROLE_LIMIT_EXCEEDED, "{0} "); ErrorMessages.Add(BDK_E_OFFERING_ACCOUNT_CURRENCY_MISMATCH, "{0} "); ErrorMessages.Add(BDK_E_OFFERING_COUNTRY_ACCOUNT_MISMATCH, "{0} "); ErrorMessages.Add(BDK_E_OFFERING_NOT_PURCHASEABLE, "{0} "); ErrorMessages.Add(BDK_E_OFFERING_PAYMENT_INSTRUMENT_MISMATCH, "{0} "); ErrorMessages.Add(BDK_E_OFFERING_REQUIRES_PI, "{0} "); ErrorMessages.Add(BDK_E_PARTNERNOTINBILLING, "{0} "); ErrorMessages.Add(BDK_E_PAYMENT_PROVIDER_CONNECTION_FAILED, "{0} "); ErrorMessages.Add(BDK_E_PRIMARY_PHONE_REQUIRED, "{0} "); ErrorMessages.Add(BDK_E_POLICY_DEAL_COUNTRY_MISMATCH, "{0} "); ErrorMessages.Add(BDK_E_PUID_ROLE_LIMIT_EXCEEDED, "{0} "); ErrorMessages.Add(BDK_E_RATING_FAILURE, "{0} "); ErrorMessages.Add(BDK_E_REQUIRED_FIELD_MISSING, "{0} "); ErrorMessages.Add(BDK_E_STATE_CITY_INVALID, "{0} "); ErrorMessages.Add(BDK_E_STATE_INVALID, "{0} "); ErrorMessages.Add(BDK_E_STATE_ZIP_CITY_INVALID, "{0} "); ErrorMessages.Add(BDK_E_STATE_ZIP_CITY_INVALID2, "{0} "); ErrorMessages.Add(BDK_E_STATE_ZIP_CITY_INVALID3, "{0} "); ErrorMessages.Add(BDK_E_STATE_ZIP_CITY_INVALID4, "{0} "); ErrorMessages.Add(BDK_E_STATE_ZIP_COVERS_MULTIPLE_CITIES, "{0} "); ErrorMessages.Add(BDK_E_STATE_ZIP_INVALID, "{0} "); ErrorMessages.Add(BDK_E_TAXID_EXPDATE, "{0} "); ErrorMessages.Add(BDK_E_TOKEN_BLACKLISTED, "{0} "); ErrorMessages.Add(BDK_E_TOKEN_EXPIRED, "{0} "); ErrorMessages.Add(BDK_E_TOKEN_NOT_VALID_FOR_OFFERING, "{0} "); ErrorMessages.Add(BDK_E_TOKEN_RANGE_BLACKLISTED, "{0} "); ErrorMessages.Add(BDK_E_TRANS_BALANCE_TO_PI_INVALID, "{0} "); ErrorMessages.Add(BDK_E_UNKNOWN_SERVER_FAILURE, "{0} Unknown server failure."); ErrorMessages.Add(BDK_E_UNSUPPORTED_CHAR_EXIST, "{0} "); ErrorMessages.Add(BDK_E_VATID_DOESNOTHAVEEXPDATE, "{0} "); ErrorMessages.Add(BDK_E_ZIP_CITY_MISSING, "{0} "); ErrorMessages.Add(BDK_E_ZIP_INVALID, "{0} Billing zip code error."); ErrorMessages.Add(BDK_E_ZIP_INVALID_FOR_ENTERED_STATE, "{0} Billing zip code error."); ErrorMessages.Add(BDK_E_USAGE_COUNT_FOR_TOKEN_EXCEEDED, "{0} Billing token is already spent."); ErrorMessages.Add(MissingParameterToStoredProcedure, "Missing parameter to stored procedure: {0}"); ErrorMessages.Add(SqlErrorInStoredProcedure, "SQL error {0} occurred in stored procedure {1}"); ErrorMessages.Add(StoredProcedureContext, "Dynamics 365 error {0} in {1}:{2}"); ErrorMessages.Add(InvitingOrganizationNotFound, "{0} -- Inviting organization not found -- {1}"); ErrorMessages.Add(InvitingUserNotInOrganization, "{0} -- Inviting user is not in the inviting organization -- {1}"); ErrorMessages.Add(InvitedUserAlreadyExists, "{0} -- Invited user is already in an organization -- {1}"); ErrorMessages.Add(InvitedUserIsOrganization, "{0} -- The user {1} has authentication {2} and is already related to organization {3} with relation id {4}"); ErrorMessages.Add(InvitationNotFound, "{0} -- Invitation not found or status is not Open -- Token={1} Puid={2} Id={3} Status={4}"); ErrorMessages.Add(InvitedUserAlreadyAdded, "{0} -- The crm user {1} is already added, but to organization {2} instead of the inviting organization {3}"); ErrorMessages.Add(InvitationWrongUserOrgRelation, "{0} -- The pre-created userorg relation {1} is wrong. Authentication {2} is already used by another user"); ErrorMessages.Add(InvitationIsExpired, "{0} -- Invitation is expired -- Token={1} Puid={2} Id={3} Status={4}"); ErrorMessages.Add(InvitationIsAccepted, "{0} -- Invitation has already been accepted -- Token={1} Puid={2} Id={3} Status={4}"); ErrorMessages.Add(InvitationIsRejected, "{0} -- Invitation has already been rejected by the new user-- Token={1} Puid={2} Id={3} Status={4}"); ErrorMessages.Add(InvitationIsRevoked, "{0} -- Invitation has been revoked by the organization -- Token={1} Puid={2} Id={3} Status={4}"); ErrorMessages.Add(InvitedUserMultipleTimes, "The Dynamics 365 user {0} has been invited multiple times."); ErrorMessages.Add(InvitationStatusError, "\"The invitation has status {0}.\""); ErrorMessages.Add(InvalidInvitationToken, "The invitation token {0} is not correctly formatted."); ErrorMessages.Add(InvalidInvitationLiveId, "A user with this e-mail address was not found. Sign in to Windows Live ID with the same e-mail address where you received the invitation. If you do not have a Windows Live ID, please create one using that e-mail address."); ErrorMessages.Add(InvitationSendToSelf, "The invitation cannot be sent to yourself."); ErrorMessages.Add(InvitationCannotBeReset, "The invitation for the user cannot be reset."); ErrorMessages.Add(UserDataNotFound, "The user data could not be found."); ErrorMessages.Add(CannotInviteDisabledUser, "An invitation cannot be sent to a disabled user"); ErrorMessages.Add(InvitationBillingAdminUnknown, "You are not a billing administrator for this organization and therefore, you cannot send invitations. You can either contact your billing administrator and ask him or her to send the invitation, or the billing administrator can visit https://billing.microsoft.com and make you a delegate billing administrator. You can then send invitations."); ErrorMessages.Add(CannotResetSysAdminInvite, "An invitation cannot be reset for a user if they are the only user that has the System Administrator Role."); ErrorMessages.Add(CannotSendInviteToDuplicateWindowsLiveId, "An invitation cannot be sent because there are multiple users with this WLID."); ErrorMessages.Add(UserInviteDisabled, "Invitation cannot be sent because user invitations are disabled."); ErrorMessages.Add(InvitationOrganizationNotEnabled, "The organization for the invitation is not enabled."); ErrorMessages.Add(ClientAuthSignedOut, "The user signed out."); ErrorMessages.Add(ClientAuthSyncIssue, "Synchronization between processes failed."); ErrorMessages.Add(ClientAuthCanceled, "Authentication was canceled by the user."); ErrorMessages.Add(ClientAuthNoConnectivityOffline, "There is no connectivity when running in offline mode."); ErrorMessages.Add(ClientAuthNoConnectivity, "There is no connectivity."); ErrorMessages.Add(ClientAuthOfflineInvalidCallerId, "Offline SDK calls must be made in the offline user context."); ErrorMessages.Add(AuthenticateToServerBeforeRequestingProxy, "Authenticate to serverType: {0} before requesting a proxy."); ErrorMessages.Add(ConfigDBObjectDoesNotExist, "'{0}' with Value = ({1}) does not exist in MSCRM_CONFIG database"); ErrorMessages.Add(ConfigDBDuplicateRecord, "Duplicate '{0}' with Value = ({1}) exists in MSCRM_CONFIG database"); ErrorMessages.Add(ConfigDBCannotDeleteObjectDueState, "Cannot delete '{0}' with Value = ({1}) in this State = ({2}) from MSCRM_CONFIG database"); ErrorMessages.Add(ConfigDBCascadeDeleteNotAllowDelete, "Cannot delete '{0}' with Value = ({1}) due to child '{2}' references from MSCRM_CONFIG database"); ErrorMessages.Add(MoveBothToPrimary, "Move operation would put both instances on the same server: Database = {0} Old Primary = {1} Old Secondary = {2} New Secondary = {3}"); ErrorMessages.Add(MoveBothToSecondary, "Move operation would put both instances on the same server: Database = {0} Old Primary = {1} Old Secondary = {2} New Secondary = {3}"); ErrorMessages.Add(MoveOrganizationFailedNotDisabled, "Move operation failed because organization {0} is not disabled"); ErrorMessages.Add(ConfigDBCannotUpdateObjectDueState, "Cannot update '{0}' with Value = ({1}) in this State = ({2}) from MSCRM_CONFIG database"); ErrorMessages.Add(LiveAdminUnknownObject, "Unknown administration target {0}"); ErrorMessages.Add(LiveAdminUnknownCommand, "Unknown administration command {0}"); ErrorMessages.Add(OperationOrganizationNotFullyDisabled, "The {1} operation failed because organization {0} is not fully disabled yet. Use FORCE to override"); ErrorMessages.Add(ConfigDBCannotDeleteDefaultOrganization, "The default {0} organization cannot be deleted from the MSCRM_CONFIG database."); ErrorMessages.Add(LicenseNotEnoughToActivate, "There are not enough licenses available for the number of users being activated."); ErrorMessages.Add(UserNotAssignedRoles, "The user has not been assigned any roles."); ErrorMessages.Add(TeamNotAssignedRoles, "The team has not been assigned any roles."); ErrorMessages.Add(InvalidLicenseKey, "Invalid license key ({0})."); ErrorMessages.Add(NoLicenseInConfigDB, "No license exists in MSCRM_CONFIG database."); ErrorMessages.Add(InvalidLicensePid, "Invalid license. Invalid PID (Product Id) ({0})."); ErrorMessages.Add(InvalidLicensePidGenCannotLoad, "Invalid license. PidGen.dll cannot be loaded from this path {0}"); ErrorMessages.Add(InvalidLicensePidGenOtherError, "Invalid license. Cannot generate PID (Product Id) from License key. PidGen error code ({0})."); ErrorMessages.Add(InvalidLicenseCannotReadMpcFile, "Invalid license. MPC code cannot be read from MPC.txt file with this path {0}."); ErrorMessages.Add(InvalidLicenseMpcCode, "Invalid license. Invalid MPC code ({0})."); ErrorMessages.Add(LicenseUpgradePathNotAllowed, "Cannot upgrade to specified license type."); ErrorMessages.Add(OrgsInaccessible, "The client access license (CAL) results were not returned because one or more organizations in the deployment cannot be accessed."); ErrorMessages.Add(UserNotAssignedLicense, "The user has not been assigned any License"); ErrorMessages.Add(UserCannotEnableWithoutLicense, "Cannot enable an unlicensed user"); ErrorMessages.Add(LicenseConfigFileInvalid, "The provided configuration file {0} has invalid formatting."); ErrorMessages.Add(LicenseTrialExpired, "The trial installation of Microsoft Dynamics 365 has expired."); ErrorMessages.Add(LicenseRegistrationExpired, "The registration period for Microsoft Dynamics 365 has expired."); ErrorMessages.Add(LicenseTampered, "The licensing for this installation of Microsoft Dynamics 365 has been tampered with. The system is unusable. Please contact Microsoft Product Support Services."); ErrorMessages.Add(NonInteractiveUserCannotAccessUI, "Non-interactive users cannot access the web user interface. Contact your organization system administrator."); ErrorMessages.Add(InvalidOrganizationUniqueName, "Invalid organization unique name ({0}). Reason: ({1})"); ErrorMessages.Add(InvalidOrganizationFriendlyName, "Invalid organization friendly name ({0}). Reason: ({1})"); ErrorMessages.Add(OrganizationNotConfigured, "Organization is not configured yet"); ErrorMessages.Add(InvalidDeviceToConfigureOrganization, "Mobile device cannot be used to configured organization"); ErrorMessages.Add(InvalidBrowserToConfigureOrganization, "Browser not compatible to configure organization"); ErrorMessages.Add(DeploymentServiceNotAllowSetToThisState, "Deployment Service for {0} allows the state Enabled or Disabled. Cannot set state to {1}."); ErrorMessages.Add(DeploymentServiceNotAllowOperation, "Deployment Service for {0} does not allow {1} operation."); ErrorMessages.Add(DeploymentServiceCannotChangeStateForDeploymentService, "You cannot change the state of this server because it contains the Deployment Service server role."); ErrorMessages.Add(DeploymentServiceRequestValidationFailure, "The Deployment Service cannot process the request because one or more validation checks failed."); ErrorMessages.Add(DeploymentServiceOperationIdentifierNotFound, "The Deployment Service could not find a deferred operation having the specified identifier."); ErrorMessages.Add(DeploymentServiceCannotDeleteOperationInProgress, "The Deployment Service cannot delete the specified operation because it is currently in progress."); ErrorMessages.Add(ConfigureClaimsBeforeIfd, "You must configure claims-based authentication before you can configure an Internet-facing deployment."); ErrorMessages.Add(EndUserNotificationTypeNotValidForEmail, "Cannot send Email for EndUserNotification Type: {0}."); ErrorMessages.Add(ClientUpdateAvailable, "There's an update available for Dynamics 365 for Outlook."); ErrorMessages.Add(InvalidRecurrenceRuleForBulkDeleteAndDuplicateDetection, "Bulk Delete and Duplicate Detection recurrence must be specified as daily."); ErrorMessages.Add(InvalidRecurrenceInterval, "To set recurrence, you must specify an interval that is between 1 and 365."); ErrorMessages.Add(InvalidRecurrenceIntervalForRollupJobs, "To set recurrence, you must specify an interval that should be greater than 1 hour."); ErrorMessages.Add(QueriesForDifferentEntities, "The Inner and Outer Queries must be for the same entity."); ErrorMessages.Add(AggregateInnerQuery, "The Inner Query must not be an aggregate query."); ErrorMessages.Add(InvalidDataDescription, "The data description for the visualization is invalid."); ErrorMessages.Add(NonPrimaryEntityDataDescriptionFound, "The data description for the visualization is invalid .The data description for the visualization can only have attributes either from the primary entity of the view or the linked entities."); ErrorMessages.Add(InvalidPresentationDescription, "The presentation description is invalid."); ErrorMessages.Add(SeriesMeasureCollectionMismatch, "Number of series for chart area and number of measure collections for category should be same."); ErrorMessages.Add(YValuesPerPointMeasureMismatch, "Number of YValuesPerPoint for series and number of measures for measure collection for category should be same."); ErrorMessages.Add(ChartAreaCategoryMismatch, "Number of chart areas and number of categories should be same."); ErrorMessages.Add(MultipleSubcategoriesFound, "The data XML for the visualization cannot contain more than two Group By clauses."); ErrorMessages.Add(MultipleMeasuresFound, "More than one measure is not supported for charts with subcategory i.e. comparison charts"); ErrorMessages.Add(MultipleChartAreasFound, "Multiple Chart Areas are not supported."); ErrorMessages.Add(InvalidCategory, "Category is invalid. All the measures in the category either do not have same primary group by or are a mix of aggregate and non-aggregate data."); ErrorMessages.Add(InvalidMeasureCollection, "Measure collection is invalid. Not all the measures in the measure collection have the same group bys."); ErrorMessages.Add(DuplicateAliasFound, "Data Description is invalid. Duplicate alias found."); ErrorMessages.Add(EntityNotEnabledForCharts, "Charts are not enabled on the specified primary entity type code: {0}."); ErrorMessages.Add(InvalidPageResponse, "Invalid Page Response generated."); ErrorMessages.Add(VisualizationRenderingError, "An error occurred while the chart was rendering"); ErrorMessages.Add(InvalidGroupByAlias, "Data Description is invalid. Same group by alias cannot be used for different attributes."); ErrorMessages.Add(MeasureDataTypeInvalid, "The Data Description for the visualization is invalid. The attribute type for one of the non aggregate measures is invalid. Correct the Data Description."); ErrorMessages.Add(NoDataForVisualization, "There is no data to create this visualization."); ErrorMessages.Add(VisualizationModuleNotFound, "No visualization module found with the given name."); ErrorMessages.Add(ImportVisualizationDeletedError, "A saved query visualization with id {0} is marked for deletion in the system. Please publish the customized entity first and then import again."); ErrorMessages.Add(ImportVisualizationExistingError, "A saved query visualization with id {0} already exists in the system, and cannot be resused by a new custom entity."); ErrorMessages.Add(VisualizationOtcNotFoundError, "Object type code is not specified for the visualization."); ErrorMessages.Add(InvalidDundasPresentationDescription, "The presentation description is not valid for dundas chart."); ErrorMessages.Add(InvalidWebResourceForVisualization, "The web resource type {0} is not supported for visualizations."); ErrorMessages.Add(ChartTypeNotSupportedForComparisonChart, "This chart type is not supported for comparison charts."); ErrorMessages.Add(InvalidFetchCollection, "The fetch collection for the visualization is invalid."); ErrorMessages.Add(CategoryDataTypeInvalid, "The Data Description for the visualization is invalid. The attribute type for the group by of one of the categories is invalid. Correct the Data Description."); ErrorMessages.Add(DuplicateGroupByFound, "Data Description is invalid. Same attribute cannot be used as a group by more than once."); ErrorMessages.Add(MultipleMeasureCollectionsFound, "More than one measure collection is not supported for charts with subcategory i.e. comparison charts"); ErrorMessages.Add(InvalidGroupByColumn, "Group by not allowed on the attribute."); ErrorMessages.Add(InvalidFilterCriteriaForVisualization, "The visualization cannot be rendered for the given filter criteria."); ErrorMessages.Add(CountSpecifiedWithoutOrder, "The Data Description for the visualization is invalid as it does not specify an order node for the count attribute."); ErrorMessages.Add(NoPreviewForCustomWebResource, "This chart uses a custom Web resource. You cannot preview this chart."); ErrorMessages.Add(ChartTypeNotSupportedForMultipleSeriesChart, "Series of chart type {0} is not supported for multi-series charts."); ErrorMessages.Add(InsufficientColumnsInSubQuery, "One or more columns required by the outer query are not available from the sub-query."); ErrorMessages.Add(AggregateQueryRecordLimitExceeded, "The maximum record limit is exceeded. Reduce the number of records."); ErrorMessages.Add(RollupAggregateQueryRecordLimitExceeded, "Calculations can't be performed online because the calculation limit of {0} related records has been reached."); ErrorMessages.Add(CurrencyFieldMissing, "Record currency is required to calculate rollup field of type currency. Provide a currency and try again."); ErrorMessages.Add(QuickFindQueryRecordLimitExceeded, "QuickFindQueryRecordLimit exceeded. Cannot perform this operation."); ErrorMessages.Add(RollupFieldNoWriteAccess, "User does not have write permission on {0} record {1} with ID:{2} to calculate rollup field."); ErrorMessages.Add(CannotAddOrActonBehalfAnotherUserPrivilege, "Act on Behalf of Another User privilege cannot be added or removed."); ErrorMessages.Add(HipNoSettingError, "No Hip application configuration setting [{0}] was found."); ErrorMessages.Add(HipInvalidCertificate, "Invalid Certificate for using HIP."); ErrorMessages.Add(NoSettingError, "No configdb configuration setting [{0}] was found."); ErrorMessages.Add(AppLockTimeout, "Timeout expired before applock could be acquired."); ErrorMessages.Add(InvalidRecurrencePattern, "Invalid recurrence pattern."); ErrorMessages.Add(CreateRecurrenceRuleFailed, "Cannot create the recurrence rule."); ErrorMessages.Add(PartialExpansionSettingLoadError, "Failed to retrieve partial expansion settings from the configuration database."); ErrorMessages.Add(InvalidCrmDateTime, "Invalid CrmDateTime."); ErrorMessages.Add(InvalidAppointmentInstance, "Invalid appointment entity instance."); ErrorMessages.Add(InvalidSeriesId, "SeriesId is null or invalid."); ErrorMessages.Add(AppointmentDeleted, "The appointment entity instance is already deleted."); ErrorMessages.Add(InvalidInstanceTypeCode, "Invalid instance type code."); ErrorMessages.Add(OverlappingInstances, "Two instances of the series cannot overlap."); ErrorMessages.Add(InvalidSeriesIdOriginalStart, "Invalid seriesid or original start date."); ErrorMessages.Add(ValidateNotSupported, "Validate method is not supported for recurring appointment master."); ErrorMessages.Add(RecurringSeriesCompleted, "The series has invalid ExpansionStateCode."); ErrorMessages.Add(ExpansionRequestIsOutsideExpansionWindow, "The series is already expanded for CutOffWindow."); ErrorMessages.Add(InvalidInstanceEntityName, "Invalid instance entity name."); ErrorMessages.Add(BookFirstInstanceFailed, "Failed to book first instance."); ErrorMessages.Add(InvalidSeriesStatus, "Invalid series status."); ErrorMessages.Add(RecurrenceRuleUpdateFailure, "Cannot update a rule that is attached to an existing rule master. Update the rule by using the parent entity."); ErrorMessages.Add(RecurrenceRuleDeleteFailure, "Cannot delete a rule that is attached to an existing rule master. Delete the rule by using the parent entity."); ErrorMessages.Add(EntityNotRule, "The collection name is not a recurrence rule."); ErrorMessages.Add(RecurringSeriesMasterIsLocked, "The recurring series master record is locked by some other process."); ErrorMessages.Add(UpdateRecurrenceRuleFailed, "Failed to update the recurrence rule. A corresponding recurrence rule cannot be found."); ErrorMessages.Add(InstanceOutsideEffectiveRange, "Cannot perform the operation. An instance is outside of series effective expansion range."); ErrorMessages.Add(RecurrenceCalendarTypeNotSupported, "The calendar type is not supported."); ErrorMessages.Add(RecurrenceHasNoOccurrence, "The recurrence pattern has no occurrences."); ErrorMessages.Add(RecurrenceStartDateTooSmall, "The recurrence pattern start date is invalid."); ErrorMessages.Add(RecurrenceEndDateTooBig, "The recurrence pattern end date is invalid."); ErrorMessages.Add(OccurrenceCrossingBoundary, "Two occurrences cannot overlap."); ErrorMessages.Add(OccurrenceTimeSpanTooBig, "Cannot perform the operation. An instance is outside of series effective expansion range."); ErrorMessages.Add(OccurrenceSkipsOverForward, "Cannot reschedule an occurrence of the recurring appointment if it skips over a later occurrence of the same appointment."); ErrorMessages.Add(OccurrenceSkipsOverBackward, "Cannot reschedule an occurrence of the recurring appointment if it skips over an earlier occurrence of the same appointment."); ErrorMessages.Add(InvalidDaysInFebruary, "February 29 can occur only when pattern start date is in a leap year."); ErrorMessages.Add(InvalidOccurrenceNumber, "The effective end date of the series cannot be earlier than today. Select a valid occurrence number."); ErrorMessages.Add(InvalidNumberOfPartitions, "You cannot delete audit data in the partitions that are currently in use, or delete the partitions that are created for storing future audit data."); ErrorMessages.Add(InvalidElementFound, "A dashboard Form XML cannot contain element: {0}."); ErrorMessages.Add(MaximumControlsLimitExceeded, "The dashboard Form XML contains more than the maximum allowed number of control elements: {0}."); ErrorMessages.Add(UserViewsOrVisualizationsFound, "A system dashboard cannot contain user views and visualizations."); ErrorMessages.Add(InvalidAttributeFound, "A dashboard Form XML cannot contain attribute: {0}."); ErrorMessages.Add(MultipleFormElementsFound, "A dashboard Form XML can contain only one form element."); ErrorMessages.Add(NullDashboardName, "The name of a dashboard cannot be null."); ErrorMessages.Add(InvalidFormType, "The type of the form must be set to {0} in the Form XML."); ErrorMessages.Add(InvalidControlClass, "The dashboard Form XML cannot contain controls elements with class id: {0}."); ErrorMessages.Add(ImportDashboardDeletedError, "A dashboard with the same id is marked as deleted in the system. Please first publish the system form entity and import again."); ErrorMessages.Add(PersonalReportFound, "A system dashboard cannot contain personal reports."); ErrorMessages.Add(ObjectAlreadyExists, "An object with id {0} already exists. Please change the id and try again."); ErrorMessages.Add(EntityTypeSpecifiedForDashboard, "An entity type cannot be specified for a dashboard."); ErrorMessages.Add(UnrestrictedIFrameInUserDashboard, "A user dashboard Form XML cannot have Security = false."); ErrorMessages.Add(MultipleLabelsInUserDashboard, "A user dashboard can have at most one label for a form element."); ErrorMessages.Add(UnsupportedDashboardInEditor, "The dashboard could not be opened."); ErrorMessages.Add(InvalidUrlProtocol, "The specified URL is invalid."); ErrorMessages.Add(CannotRemoveComponentFromDefaultSolution, "A Solution Component cannot be removed from the Default Solution."); ErrorMessages.Add(InvalidSolutionUniqueName, "Invalid character specified for solution unique name. Only characters within the ranges [A-Z], [a-z], [0-9] or _ are allowed. The first character may only be in the ranges [A-Z], [a-z] or _."); ErrorMessages.Add(CannotUndeleteLabel, "Attempting to undelete a label that is not marked as delete."); ErrorMessages.Add(ErrorReactivatingComponentInstance, "After undeleting a label, there is no underlying label to reactivate."); ErrorMessages.Add(CannotDeleteRestrictedSolution, "Attempting to delete a restricted solution."); ErrorMessages.Add(CannotDeleteRestrictedPublisher, "Attempting to delete a restricted publisher."); ErrorMessages.Add(ImportRestrictedSolutionError, "Solution ID provided is restricted and cannot be imported."); ErrorMessages.Add(CannotSetSolutionSystemAttributes, "System attributes ({0}) cannot be set outside of installation or upgrade."); ErrorMessages.Add(CannotUpdateDefaultSolution, "Default solution attribute{0} {1} can only be set on installation or upgrade. The value{0} cannot be modified."); ErrorMessages.Add(CannotUpdateRestrictedSolution, "Restricted solution ({0}) cannot be updated."); ErrorMessages.Add(CannotAddWorkflowActivationToSolution , "Cannot add Workflow Activation to solution "); ErrorMessages.Add(CannotQueryBaseTableWithAggregates, "Invalid query on base table. Aggregates cannot be included in base table query."); ErrorMessages.Add(InvalidStateTransition, "The {0} (Id={1}) entity or component has attempted to transition from an invalid state: {2}."); ErrorMessages.Add(CannotUpdateUnpublishedDeleteInstance, "The component that you are trying to update has been deleted."); ErrorMessages.Add(UnsupportedComponentOperation, "{0} is not recognized as a supported operation."); ErrorMessages.Add(InvalidCreateOnProtectedComponent, "You cannot create {0} {1}. Creation cannot be performed when {0} is managed."); ErrorMessages.Add(InvalidUpdateOnProtectedComponent, "You cannot update {0} {1}. Updates cannot be performed when {0} is managed."); ErrorMessages.Add(InvalidDeleteOnProtectedComponent, "You cannot delete {0} {1}. Deletion cannot be performed when {0} is managed."); ErrorMessages.Add(InvalidPublishOnProtectedComponent, "You cannot publish {0} {1}. Publish cannot be performed when {0} is managed."); ErrorMessages.Add(CannotAddNonCustomizableComponent, "The component {0} {1} cannot be added to the solution because it is not customizable"); ErrorMessages.Add(CannotOverwriteActiveComponent, "A managed solution cannot overwrite the {0} component with Id={1} which has an unmanaged base instance. The most likely scenario for this error is that an unmanaged solution has installed a new unmanaged {0} component on the target system, and now a managed solution from the same publisher is trying to install that same {0} component as managed. This will cause an invalid layering of solutions on the target system and is not allowed."); ErrorMessages.Add(CannotUpdateRestrictedPublisher, "Restricted publisher ({0}) cannot be updated."); ErrorMessages.Add(CannotAddSolutionComponentWithoutRoots , "This item is not a valid solution component. For more information about solution components, see the Microsoft Dynamics 365 SDK documentation."); ErrorMessages.Add(ComponentDefinitionDoesNotExists, "No component definition exists for the component type {0}."); ErrorMessages.Add(DependencyAlreadyExists, "A {0} dependency already exists between {1}({2}) and {3}({4}). Cannot also create {5} dependency."); ErrorMessages.Add(DependencyTableNotEmpty, "The dependency table must be empty for initialization to complete successfully."); ErrorMessages.Add(InvalidPublisherUniqueName, "Publisher uniquename is required."); ErrorMessages.Add(CannotUninstallWithDependencies, "Solution dependencies exist, cannot uninstall."); ErrorMessages.Add(InvalidSolutionVersion, "An invalid solution version was specified."); ErrorMessages.Add(CannotDeleteInUseComponent, "The {0}({1}) component cannot be deleted because it is referenced by {2} other components. For a list of referenced components, use the RetrieveDependenciesForDeleteRequest."); ErrorMessages.Add(CannotUninstallReferencedProtectedSolution, "This solution cannot be uninstalled because the '{0}' with id '{1}' is required by the '{2}' solution. Uninstall the {2} solution and try again."); ErrorMessages.Add(CannotRemoveComponentFromSolution, "Cannot find solution component {0} {1} in solution {2}."); ErrorMessages.Add(RestrictedSolutionName, "The solution unique name '{0}' is restricted and can only be used by internal solutions."); ErrorMessages.Add(SolutionUniqueNameViolation, "The solution unique name '{0}' is already being used and cannot be used again."); ErrorMessages.Add(CannotUpdateManagedSolution, "Cannot update solution '{0}' because it is a managed solution."); ErrorMessages.Add(DependencyTrackingClosed, "Invalid attempt to process a dependency after the current transaction context has been closed."); ErrorMessages.Add(GenericManagedPropertyFailure, "The evaluation of the current component(name={0}, id={1}) in the current operation ({2}) failed during managed property evaluation of condition: {3}"); ErrorMessages.Add(CombinedManagedPropertyFailure, "The evaluation of the current component(name={0}, id={1}) in the current operation ({2}) failed during at least one managed property evaluations: {3}"); ErrorMessages.Add(ReportImportCategoryOptionNotFound, "A category option for the reports was not found."); ErrorMessages.Add(RequiredChildReportHasOtherParent, "A category option for the reports was not found."); ErrorMessages.Add(InvalidManagedPropertyException, "Managed property {0} does not contain enough information to be created. Please provide (assembly, class), or (entity, attribute) or set the managed property to custom."); ErrorMessages.Add(OnlyOwnerCanSetManagedProperties, "Cannot import component {0}: {1} because managed property {2} with value {3} is different than the current value {4} and the publisher of the solution that is being imported does not match the publisher of the solution that installed this component."); ErrorMessages.Add(CannotDeleteMetadata, "The '{2}' operation on the current component(name='{0}', id='{1}') failed during managed property evaluation of condition: '{3}'"); ErrorMessages.Add(CannotUpdateReadOnlyPublisher, "Attempting to update a readonly publisher."); ErrorMessages.Add(CannotSelectReadOnlyPublisher, "Attempting to select a readonly publisher for solution."); ErrorMessages.Add(CannotRemoveComponentFromSystemSolution, "A Solution Component cannot be removed from the System Solution."); ErrorMessages.Add(InvalidDependency, "The {2} component {1} (Id={0}) does not exist. Failure trying to associate it with {3} (Id={4}) as a dependency. Missing dependency lookup type = {5}."); ErrorMessages.Add(InvalidDependencyFetchXml, "The FetchXml ({2}) is invalid. Failure while calculating dependencies for {1} (Id={0})."); ErrorMessages.Add(CannotModifyReportOutsideSolutionIfManaged, "Managed solution cannot update reports which are not present in solution package."); ErrorMessages.Add(DuplicateDetectionRulesWereUnpublished, "The duplicate detection rules for this entity have been unpublished due to possible modifications to the entity."); ErrorMessages.Add(InvalidDependencyComponent, "The required component {1} (Id={0}) that was defined for the {2} could not be found in the system."); ErrorMessages.Add(InvalidDependencyEntity, "The required component {1} (Name={0}) that was defined for the {2} could not be found in the system."); ErrorMessages.Add(CannotUpdateSolutionPatch, "Solution patch with version {0} already exists. Updating patch is not supported."); ErrorMessages.Add(SPFolderCreationFailure, "Cannot Create Folder with this name"); ErrorMessages.Add(SharePointUnableToAddUserToGroup, "Microsoft Dynamics 365 cannot add this user {0} to the group {1} in SharePoint. Verify that the information for this user and group are correct and that the group exists in SharePoint, and then try again."); ErrorMessages.Add(SharePointUnableToRemoveUserFromGroup, "Unable to remove user {0} from group {1} in SharePoint."); ErrorMessages.Add(SharePointSiteNotPresentInSharePoint, "Site {0} does not exists in SharePoint."); ErrorMessages.Add(SharePointUnableToRetrieveGroup, "Unable to retrieve the group {0} from SharePoint."); ErrorMessages.Add(SharePointUnableToAclSiteWithPrivilege, "Unable to ACL site {0} with privilege {1} in SharePoint."); ErrorMessages.Add(SharePointUnableToAclSite, "Unable to ACL site {0} in SharePoint."); ErrorMessages.Add(SharePointUnableToCreateSiteGroup, "Unable to create site group {0} in SharePoint."); ErrorMessages.Add(SharePointSiteCreationFailure, "Failed to create the site {0} in SharePoint."); ErrorMessages.Add(SharePointTeamProvisionJobAlreadyExists, "A system job to provision the selected team is pending. Any changes made to the team record before this system job starts will be applied to this system job."); ErrorMessages.Add(SharePointRoleProvisionJobAlreadyExists, "A system job to provision the selected security role is pending. Any changes made to the security role record before this system job starts will be applied to this system job."); ErrorMessages.Add(SharePointSiteWideProvisioningJobFailed, "SharePoint provisioning job has failed."); ErrorMessages.Add(DataTypeMismatchForLinkedAttribute, "Data type mismatch found for linked attribute."); ErrorMessages.Add(InvalidEntityForLinkedAttribute, "Not a valid entity for linked attribute."); ErrorMessages.Add(AlreadyLinkedToAnotherAttribute, "Given linked attribute is alreadly linked to other attribute."); ErrorMessages.Add(DocumentManagementDisabled, "Document Management has been disabled for this organization."); ErrorMessages.Add(DefaultSiteCollectionUrlChanged, "Default site collection url has been changed this organization after this operation was created."); ErrorMessages.Add(RibbonImportHidingBasicHomeTab, "The definition of the ribbon being imported will remove the Microsoft Dynamics 365 home tab. Include a home tab definition, or a ribbon will not be displayed in areas of the application that display the home tab."); ErrorMessages.Add(RibbonImportInvalidPrivilegeName, "The RibbonDiffXml in this solution contains a reference to an invalid privilege: {0}. Update the RibbonDiffXml to reference a valid privilege and try importing again."); ErrorMessages.Add(RibbonImportEntityNotSupported, "The solution cannot be imported because the {0} entity contains a Ribbon definition, which is not supported for that entity. Remove the RibbonDiffXml node from the entity definition and try to import again."); ErrorMessages.Add(RibbonImportDependencyMissingEntity, "The ribbon item '{0}' is dependent on entity {1}."); ErrorMessages.Add(RibbonImportDependencyMissingRibbonElement, "The ribbon item '{0}' is dependent on <{1} Id=\"{2}\" />."); ErrorMessages.Add(RibbonImportDependencyMissingWebResource, "The ribbon item '{0}' is dependent on Web resource id='{1}'."); ErrorMessages.Add(RibbonImportDependencyMissingRibbonControl, "The ribbon item '{0}' is dependent on ribbon control id='{1}'."); ErrorMessages.Add(RibbonImportModifyingTopLevelNode, "Ribbon customizations cannot be made to the following top-level ribbon nodes: <Ribbon>, <ContextualGroups>, and <Tabs>."); ErrorMessages.Add(RibbonImportLocationAndIdDoNotMatch, "CustomAction Id '{0}' cannot override '{1}' because '{2}' does not match the CustomAction Location value."); ErrorMessages.Add(RibbonImportHidingJewel, "Ribbon customizations cannot hide the <Jewel> node. Any ribbon customization that hides this node is ignored during import and will not be exported."); ErrorMessages.Add(RibbonImportDuplicateElementId, "The ribbon element with the Id:{0} cannot be imported because an existing ribbon element with the same Id already exists."); ErrorMessages.Add(WebResourceInvalidType, "Invalid web resource type specified."); ErrorMessages.Add(WebResourceEmptySilverlightVersion, "Silverlight version cannot be empty for silverlight web resources."); ErrorMessages.Add(WebResourceInvalidSilverlightVersion, "Silverlight version can only be of the format xx.xx[.xx.xx]."); ErrorMessages.Add(WebResourceContentSizeExceeded, "Webresource content size is too big."); ErrorMessages.Add(WebResourceDuplicateName, "A webresource with the same name already exists. Use a different name."); ErrorMessages.Add(WebResourceEmptyName, "Webresource name cannot be null or empty."); ErrorMessages.Add(WebResourceNameInvalidCharacters, "Web resource names may only include letters, numbers, periods, and nonconsecutive forward slash characters."); ErrorMessages.Add(WebResourceNameInvalidPrefix, "Webresource name does not contain a valid prefix."); ErrorMessages.Add(WebResourceNameInvalidFileExtension, "A Web resource cannot have the following file extensions: .aspx, .ascx, .asmx or .ashx."); ErrorMessages.Add(WebResourceImportMissingFile, "The file for this Web resource does not exist in the solution file."); ErrorMessages.Add(WebResourceImportError, "An error occurred while importing a Web resource. Try importing this solution again. For further assistance, contact Microsoft Dynamics 365 technical support."); ErrorMessages.Add(InvalidActivityOwnershipTypeMask, "A custom entity defined as an activity must be user or team owned."); ErrorMessages.Add(ActivityCannotHaveRelatedActivities, "A custom entity defined as an activity must not have a relationship with Activities."); ErrorMessages.Add(CustomActivityMustHaveOfflineAvailability, "A custom entity defined as an activity must have Offline Availability."); ErrorMessages.Add(ActivityMustHaveRelatedNotes, "A custom entity defined as an activity must have a relationship to Notes by default."); ErrorMessages.Add(CustomActivityCannotBeMailMergeEnabled, "A custom entity defined as an activity already cannot have MailMerge enabled."); ErrorMessages.Add(InvalidCustomActivityType, "A custom entity defined as an activity must be of communicaton activity type."); ErrorMessages.Add(ActivityMetadataUpdate, "The metadata specified for activity is invalid."); ErrorMessages.Add(InvalidPrimaryFieldForActivity, "A custom entity defined as an activity cannot have primary attribute other than subject."); ErrorMessages.Add(CannotDeleteNonLeafNode, "Only a leaf statement can be deleted. This statement is parenting some other statement."); ErrorMessages.Add(DuplicateUIStatementRootsFound, "There can be only one root statement for a given uiscript."); ErrorMessages.Add(ErrorUpdateStatementTextIsReferenced, "You cannot update this UI script statement text because it is being referred to by one or more published ui scripts."); ErrorMessages.Add(ErrorDeleteStatementTextIsReferenced, "You cannot delete the UI script statement text because it is being referred by one or more ui script statements."); ErrorMessages.Add(ErrorScriptSessionCannotCreateForDraftScript, "You cannot create a UI script session for a UI script which is not published."); ErrorMessages.Add(ErrorScriptSessionCannotUpdateForDraftScript, "You cannot update a UI script session for a UI script which is not published."); ErrorMessages.Add(ErrorScriptLanguageNotInstalled, "The language specified is not supported in your Dynamics 365 install. Please check with your system administrator on the list of \"enabled\" languages."); ErrorMessages.Add(ErrorScriptInitialStatementNotInScript, "The initial statement for this script does not belong to this script."); ErrorMessages.Add(ErrorScriptInitialStatementNotRoot, "The initial statement should the root statement and cannot have a previous statement set."); ErrorMessages.Add(ErrorScriptCannotDeletePublishedScript, "You cannot delete a UI script that is published. You must unpublish it first."); ErrorMessages.Add(ErrorScriptPublishMissingInitialStatement, "The selected UI script cannot be published. Provide a value for \"First statement number\" and try to publish again."); ErrorMessages.Add(ErrorScriptPublishMalformedScript, "The selected UI script cannot be published. The UI script contains one or more paths which do not end in an end-script or next-script action node. Correct the paths and try to publish again."); ErrorMessages.Add(ErrorScriptUnpublishActiveScript, "This script is in use and has active sessions (status-reason=incomplete). Please terminate the active sessions (i.e. status-reason=cancelled) and try to unpublish again."); ErrorMessages.Add(ErrorScriptSessionCannotSetStateForDraftScript, "You cannot set the state of a UI script session for a UI script which is not published."); ErrorMessages.Add(ErrorScriptStatementResponseTypeOnlyForPrompt, "You cannot associate the response control type for a statement which is not a prompt."); ErrorMessages.Add(ErrorStatementOnlyForDraftScript, "You cannot create a UI script statement for a UI script which is not draft."); ErrorMessages.Add(ErrorStatementDeleteOnlyForDraftScript, "You cannot delete a UI script statement for a UI script which is not draft."); ErrorMessages.Add(ErrorInvalidUIScriptImportFile, "File type is not supported. Select an xml file for import."); ErrorMessages.Add(ErrorScriptFileParse, "Error occurred while parsing the XML file."); ErrorMessages.Add(ErrorScriptCannotUpdatePublishedScript, "You cannot update a UI script that is published. You must unpublish it first."); ErrorMessages.Add(ErrorInvalidFileNameChars, "The Microsoft Excel file name cannot contain the following characters: * \\ : > < | ? \" /. Rename the file using valid characters, and try again."); ErrorMessages.Add(ErrorMimeTypeNullOrEmpty, "The MimeType property value of the UploadFromBase64DataUIScriptRequest method is null or empty. Specify a valid property value, and try again."); ErrorMessages.Add(ErrorImportInvalidForPublishedScript, "You cannot save data to a published UI script. Unpublish the UI script, and try again."); ErrorMessages.Add(UIScriptIdentifierDuplicate, "A variable or input argument with the same name already exists. Choose a different name, and try again."); ErrorMessages.Add(UIScriptIdentifierInvalid, "The variable or input argument name is invalid. The name can only contain '_', numerical, and alphabetical characters. Choose a different name, and try again."); ErrorMessages.Add(UIScriptIdentifierInvalidLength, "The variable or input argument name is too long. Choose a smaller name, and try again."); ErrorMessages.Add(ErrorNoQueryData, "An error has occurred. Either the data does not exist or you do not have sufficient privileges to view the data. Contact your system administrator for help."); ErrorMessages.Add(ErrorUIScriptPromptMissing, "The dialog that is being activated has no prompt/response."); ErrorMessages.Add(SharePointUrlHostValidator, "The URL cannot be resolved into an IP."); ErrorMessages.Add(SharePointCrmDomainValidator, "The SharePoint and Microsoft Dynamics 365 Servers are on different domains. Please ensure a trust relationship between the two domains."); ErrorMessages.Add(SharePointServerDiscoveryValidator, "The URL is incorrect or the site is not running."); ErrorMessages.Add(SharePointServerVersionValidator, "The SharePoint Site Collection must be running a supported version of Microsoft Office SharePoint Server or Microsoft Windows SharePoint Services. Please refer the implementation guide."); ErrorMessages.Add(SharePointSiteCollectionIsAccessibleValidator, "The URL is incorrect or the site is not running."); ErrorMessages.Add(SharePointUrlIsRootWebValidator, "The URL is not valid. The URL must be a valid site collection and cannot include a subsite. The URL must be in a valid form, such as http://SharePointServer/sites/CrmSite."); ErrorMessages.Add(SharePointSitePermissionsValidator, "The current user does not have the appropriate privileges. You must be a SharePoint site administrator on the SharePoint site."); ErrorMessages.Add(SharePointServerLanguageValidator, "Microsoft Dynamics 365 and Microsoft Office SharePoint Server must have the same base language."); ErrorMessages.Add(SharePointCrmGridIsInstalledValidator, "The Microsoft Dynamics 365 Grid component must be installed on the SharePoint server. This component is required for SharePoint integration to work correctly."); ErrorMessages.Add(SharePointErrorRetrieveAbsoluteUrl, "An error occurred while retrieving the absolute and site collection url for a SharePoint object."); ErrorMessages.Add(SharePointInvalidEntityForValidation, "Entity Does not support SharePoint Url Validation."); ErrorMessages.Add(DocumentManagementIsDisabled, "Document Management is not enabled for this Organization."); ErrorMessages.Add(DocumentManagementNotEnabledNoPrimaryField, "Document management could not be enabled because a primary field is not defined for this entity."); ErrorMessages.Add(SharePointErrorAbsoluteUrlClipped, "The URL exceeds the maximum number of 256 characters. Use shorter names for sites and folders, and try again."); ErrorMessages.Add(SiteMapXsdValidationError, "Sitemap xml failed XSD validation with the following error: '{0}' at line {1} position {2}."); ErrorMessages.Add(CannotSecureAttribute, "The field '{0}' is not securable"); ErrorMessages.Add(AttributePrivilegeCreateIsMissing, "The user does not have create permissions to a secured field. The requested operation could not be completed."); ErrorMessages.Add(AttributePermissionUpdateIsMissingDuringShare, "The user does not have update permissions to a secured field. The requested operation could not be completed."); ErrorMessages.Add(AttributePermissionReadIsMissing, "The user does not have read permissions to a secured field. The requested operation could not be completed."); ErrorMessages.Add(CannotRemoveSysAdminProfileFromSysAdminUser, "The Sys Admin Profile cannot be removed from a user with a Sys Admin Role"); ErrorMessages.Add(QueryContainedSecuredAttributeWithoutAccess, "The Query contained a secured attribute to which the caller does not have access"); ErrorMessages.Add(AttributePermissionUpdateIsMissingDuringUpdate, "The user doesn't have AttributePrivilegeUpdate and not granted shared access for a secured attribute during update operation"); ErrorMessages.Add(AttributeNotSecured, "One or more fields are not enabled for field level security. Field level security is not enabled until you publish the customizations."); ErrorMessages.Add(AttributeSharingCreateShouldSetReadOrAndUpdateAccess, "You must set read and/or update access when you share a secured attribute. Attribute ID: {0}"); ErrorMessages.Add(AttributeSharingUpdateInvalid, "Both readAccess and updateAccess are false: call Delete instead of Update."); ErrorMessages.Add(AttributeSharingCreateDuplicate, "Attribute has already been shared."); ErrorMessages.Add(AdminProfileCannotBeEditedOrDeleted, "The System Administrator field security profile cannot be modified or deleted."); ErrorMessages.Add(AttributePrivilegeInvalidToUnsecure, "You must have sufficient permissions for a secured field before you can change its field level security."); ErrorMessages.Add(AttributePermissionIsInvalid, "Permission '{0}' for field '{1}' with id={2} is invalid."); ErrorMessages.Add(ApplicationUserAllowCustomRoleOnly, "Application user must have a custom security role. Role = {0} can not be assigned to Application UserId = {1} "); ErrorMessages.Add(AzureApplicationIdNotFound, "We didn’t find that application ID {0} in your Azure Active Directory (Azure AD). Make sure your application is registered in Azure AD."); ErrorMessages.Add(DuplicateApplicationUser, "You are attempting to create an Application ID = {0} that already exists."); ErrorMessages.Add(AzureApplicationIdNotFoundInOrgDB, "Azure applicationid not found. We didn’t find the application ID {0} in your CRM database. Correct the application ID and resubmit the update."); ErrorMessages.Add(RequireValidImportMapForUpdate, "The update operation cannot be completed because the import map used for the update is invalid."); ErrorMessages.Add(InvalidFormatForUpdateMode, "The file that you uploaded is invalid and cannot be used for updating records."); ErrorMessages.Add(MaximumCountForUpdateModeExceeded, "In an update operation, you can import only one file at a time."); ErrorMessages.Add(RecordResolutionFailed, "The record could not be updated because the original record no longer exists in Microsoft Dynamics 365."); ErrorMessages.Add(InvalidOperationForDynamicList, "This action is not available for a dynamic marketing list."); ErrorMessages.Add(QueryNotValidForStaticList, "Query cannot be specified for a static list."); ErrorMessages.Add(LockStatusNotValidForDynamicList, "Lock Status cannot be specified for a dynamic list."); ErrorMessages.Add(CannotCopyStaticList, "This action is valid only for dynamic list."); ErrorMessages.Add(CannotDeleteSystemForm, "System forms cannot be deleted."); ErrorMessages.Add(CannotUpdateSystemEntityIcons, "System entity icons cannot be updated."); ErrorMessages.Add(FallbackFormDeletion, "You cannot delete this form because it is the only fallback form of type {0} for the {1} entity. Each entity must have at least one fallback form for each form type."); ErrorMessages.Add(SystemFormImportMissingRoles, "The unmanaged solution you are importing has displaycondition XML attributes that refer to security roles that are missing from the target system. Any displaycondition attributes that refer to these security roles will be removed."); ErrorMessages.Add(SystemFormCopyUnmatchedEntity, "The entity for the Target and the SourceId must match."); ErrorMessages.Add(SystemFormCopyUnmatchedFormType, "The form type of the SourceId is not valid for the Target entity."); ErrorMessages.Add(SystemFormCreateWithExistingLabel, "The label '{0}', id: '{1}' already exists. Supply unique labelid values."); ErrorMessages.Add(QuickFormNotCustomizableThroughSdk, "The SDK does not support creating a form of type \"Quick\". This form type is reserved for internal use only."); ErrorMessages.Add(InvalidDeactivateFormType, "You can’t deactivate {0} forms. Only Main forms can be inactive."); ErrorMessages.Add(FallbackFormDeactivation, "This operation can’t be completed. You must have at least one active Main form."); ErrorMessages.Add(DeprecatedFormActivation, "This form has been deprecated in the previous release and cannot be used anymore. Please migrate your changes to a different form. Deprecated forms will be removed from the system in the future."); ErrorMessages.Add(CannotUpdateEntitySetName, "EntitySetName cannot be updated for OOB entities"); ErrorMessages.Add(FallbackCardFormDeactivation, "This operation can’t be completed. You must have at least one active Card form."); ErrorMessages.Add(FallbackQuickFormDeactivation, "This operation can’t be completed. You must have at least one active Quick form."); ErrorMessages.Add(FallbackMainInteractionCentricFormDeactivation, "This operation can’t be completed. You must have at least one active MainInteractionCentric form."); ErrorMessages.Add(DeprecatedMobileFormsCreation, "Mobile forms have been deprecated. Cannot create new mobile express forms."); ErrorMessages.Add(DeprecatedMobileFormsEdit, "Mobile forms have been deprecated. Cannot open mobile forms editor."); ErrorMessages.Add(RuntimeRibbonXmlValidation, "The most recent customized ribbon for a tab on this page cannot be generated. The out-of-box version of the ribbon is displayed instead."); ErrorMessages.Add(InitializeErrorNoReadOnSource, "The operation could not be completed because you donot have read access on some of the fields in {0} record."); ErrorMessages.Add(NoRollupAttributesDefined, "For rollup to succeed atleast one rollup attribute needs to be associated with the goal metric"); ErrorMessages.Add(GoalPercentageAchievedValueOutOfRange, "The percentage achieved value has been set to 0 because the calculated value is not in the allowed range."); ErrorMessages.Add(InvalidRollupQueryAttributeSet, "A Rollup Query cannot be set for a Rollup Field that is not defined in the Goal Metric."); ErrorMessages.Add(InvalidGoalManager, "The manager of a goal can only be a user and not a team."); ErrorMessages.Add(InactiveRollupQuerySetOnGoal, "An inactive rollup query cannot be set on a goal."); ErrorMessages.Add(InactiveMetricSetOnGoal, "An inactive metric cannot be set on a goal."); ErrorMessages.Add(MetricEntityOrFieldDeleted, "The entity or field that is referenced in the goal metric is not valid"); ErrorMessages.Add(ExceededNumberOfRecordsCanFollow, "You have exceeded the number of records you can follow. Please unfollow some records to start following again."); ErrorMessages.Add(EntityIsNotEnabledForFollowUser, "This entity is not enabled to be followed. "); ErrorMessages.Add(EntityIsNotEnabledForFollow, "This entity is not enabled to be followed. "); ErrorMessages.Add(CannotFollowInactiveEntity, "Can't follow inactive record. "); ErrorMessages.Add(MustContainAtLeastACharInMention, "The display name must contain atleast one non-whitespace character."); ErrorMessages.Add(LanguageProvisioningSrsDataConnectorNotInstalled, "The Microsoft Dynamics 365 Reporting Extensions must be installed before the language can be provisioned for this organization."); ErrorMessages.Add(BidsInvalidConnectionString, "Input connection string is invalid. Usage: ServerUrl[;OrganizationName][;HomeRealmUrl]"); ErrorMessages.Add(BidsInvalidUrl, "Input url {0} is invalid."); ErrorMessages.Add(BidsServerConnectionFailed, "Failed to connect to server {0}."); ErrorMessages.Add(BidsAuthenticationError, "An error occured while authenticating with server {0}."); ErrorMessages.Add(BidsNoOrganizationsFound, "No organizations found for the user."); ErrorMessages.Add(BidsOrganizationNotFound, "Organization {0} cannot be found for the user."); ErrorMessages.Add(BidsAuthenticationFailed, "Authentication failed when trying to connect to server {0}. The username or password is incorrect."); ErrorMessages.Add(TransactionNotSupported, "The operation that you are trying to perform does not support transactions."); ErrorMessages.Add(IndexOutOfRange, "The index {0} is out of range for {1}. Number of elements present are {2}."); ErrorMessages.Add(InvalidAttribute, "Attribute {0} cannot be found for entity {1}."); ErrorMessages.Add(MultiValueParameterFound, "Fetch xml parameter {0} cannot obtain multiple values. Change report parameter {0} to single value parameter and try again."); ErrorMessages.Add(QueryParameterNotUnique, "Query parameter {0} must be defined only once within the data set."); ErrorMessages.Add(InvalidEntity, "Entity {0} cannot be found."); ErrorMessages.Add(UnsupportedAttributeType, "Attribute type {0} is not supported. Remove attribute {1} from the query and try again."); ErrorMessages.Add(FetchDataSetQueryTimeout, "The fetch data set query timed out after {0} seconds. Increase the query timeout, and try again."); ErrorMessages.Add(InvalidCommand, "Invalid command."); ErrorMessages.Add(InvalidDataXml, "Invalid data xml."); ErrorMessages.Add(InvalidLanguageForProcessConfiguration, "Process configuration is not available since your language does not match system base language."); ErrorMessages.Add(InvalidComplexControlId, "The complex control id is invalid."); ErrorMessages.Add(InvalidProcessControlEntity, "The process control definition contains an invalid entity or invalid entity order."); ErrorMessages.Add(InvalidProcessControlAttribute, "The process control definition contains an invalid attribute."); ErrorMessages.Add(BadRequest, "The request could not be understood by the server."); ErrorMessages.Add(AccessTokenExpired, "The requested resource requires authentication."); ErrorMessages.Add(Forbidden, "The server refuses to fulfill the request."); ErrorMessages.Add(Throttling, "Too many requests."); ErrorMessages.Add(NetworkIssue, "Request failed due to unknown network issues or GateWay issues or server issues."); ErrorMessages.Add(CouldNotReadAccessToken, "The system was not able to read users Yammer access token although a non-empty code was passed."); ErrorMessages.Add(NotVerifiedAdmin, "You need an enterprise account with Yammer in order to complete this setup. Please sign in with a Yammer administrator account or contact a Yammer administrator for help."); ErrorMessages.Add(YammerAuthTimedOut, "You have waited too long to complete the Yammer authorization. Please try again."); ErrorMessages.Add(NoYammerNetworksFound, "You are not authorized for any Yammer network. Please reauthorize the Yammer setup with a Yammer administrator account or contact a Yammer administrator for help."); ErrorMessages.Add(OAuthTokenNotFound, "Yammer OAuth token is not found. You should configure Yammer before accessing any related feature."); ErrorMessages.Add(CouldNotDecryptOAuthToken, "Yammer OAuth token could not be decrypted. Please try to reconfigure Yammer once again."); ErrorMessages.Add(UserNeverLoggedIntoYammer, "To follow other users, you must be logged in to Yammer. Log in to your Yammer account, and try again."); ErrorMessages.Add(StepNotSupportedForClientBusinessRule, "Step {0} is not supported for client side business rule."); ErrorMessages.Add(EventNotSupportedForBusinessRule, "Event {0} is not supported for client side business rule."); ErrorMessages.Add(CannotUpdateTriggerForPublishedRules, "A trigger cannot be added/deleted/updated for a published rule."); ErrorMessages.Add(EventTypeAndControlNameAreMismatched, "This combination of event type and control name is unexpected"); ErrorMessages.Add(ExpressionNotSupportedForEditor, "Rule contain an expression that is not supported by the editor."); ErrorMessages.Add(EditorOnlySupportAndOperatorForLogicalConditions, "The rule expression contains logical operator which is not supported. The editor only support And operator for Logical conditions."); ErrorMessages.Add(UnexpectedRightOperandCount, "The right operand array in the expression contain unexpected no. of operand."); ErrorMessages.Add(RuleNotSupportedForEditor, "The current rule definition cannot be edited in the Business rule editor."); ErrorMessages.Add(BusinessRuleEditorSupportsOnlyIfConditionBranch, "The business rule editor only supports one if condition. Please fix the rule."); ErrorMessages.Add(UnsupportedStepForBusinessRuleEditor, "The rule contain a step which is not supported by the editor."); ErrorMessages.Add(UnsupportedAttributeForEditor, "The rule contain an attribute which is not supported."); ErrorMessages.Add(ExpectingAtLeastOneBusinessRuleStep, "There should be a minimum of one Business rule step."); ErrorMessages.Add(RuleCreationNotAllowedForCyclicReferences, "You can't create this rule because it contains a cyclical reference. Fix the rule and try again."); ErrorMessages.Add(NoConditionRuleCreationNotAllowedForSetValueShowError, "The \"Show error message\" and \"Set value\" actions can't be used in a business rule that doesn't have a condition."); ErrorMessages.Add(RuleActivationNotAllowedWithDeletedStages, "You can't activate this rule because it contains a deleted stage or stage category. Fix the rule and try again."); ErrorMessages.Add(EntityLimitExceeded, "MultiEntitySearch exceeded Entity Limit defined for the Organization."); ErrorMessages.Add(InvalidSearchEntity, "Invalid Search Entity - {0}."); ErrorMessages.Add(InvalidSearchEntities, "Search - {0} did not find any valid Entities."); ErrorMessages.Add(NoQuickFindFound, "Entity - {0} did not have a valid Quickfind query."); ErrorMessages.Add(InvalidSearchName, "Invalid Search Name - {0}."); ErrorMessages.Add(EntityGroupNameOrEntityNamesMustBeProvided, "Missing parameter. You must provide EntityGroupName or EntityNames."); ErrorMessages.Add(OnlyOneSearchParameterMustBeProvided, "Extra parameter. You only need to provide EntityGroupName or EntityNames, not both."); ErrorMessages.Add(ExternalSearchAttributeLimitExceeded, "The maximum number of indexed fields has been reached. Update the Relevance Search configuration to reduce the total number of indexed fields {1} below {0}."); ErrorMessages.Add(CannotEnableEntityForRelevanceSearch, "Entity {0} can’t be enabled for relevance search because of the configuration of its managed properties."); ErrorMessages.Add(CannotDisableRelevanceSearchManagedProperty, "The {0} entity is currently syncing to an external search index. You must remove the entity from the external search index before you can set the \"Can Enable Sync to External Search Index\" property to False."); ErrorMessages.Add(DuplicateAttributePhysicalName, "Attrtibute {0} already exists for entity {1}."); ErrorMessages.Add(AttributeIsNotFacetable, "Cannot set user search facets for entity {0} as attribute {1} is not facetable. Kindly remove it from the list to proceed."); ErrorMessages.Add(ExceededLimitForAllowedFacetableAttributes, "Cannot set user search facets for entity {0} as the limit for allowed facetable attributes is 4. Kindly remove few attributes to proceed."); ErrorMessages.Add(BusinessProcessFlowDefinitionOutdated, "This action cannot be completed because the Business Process Flow definition is out of sync with the Process Action. Please contact your Dynamics 365 System Administrator to update the Business Process Flow."); ErrorMessages.Add(InvalidExportProcessFlowNotActivated, "Failed to export Business Process “{0}” because solution does not include corresponding Business Process entity “{1}”. If this is a newly created Business Process in Draft state, activate it once to generate the Business Process entity and include it in the solution."); ErrorMessages.Add(InvalidStageTransitionOnInactiveInstance, "Invalid stage transition. Stage transition is not allowed on inactive processes."); ErrorMessages.Add(InputParameterFieldIncorrect, "Input parameter “{0}” does not match the input parameter field configured. Contact your system administrator to check the configuration metadata if the error persists."); ErrorMessages.Add(ProcessActionNameIncorrect, "Process Action “{0}” does not match the name configured: “{1}”. Contact your system administrator to check the configuration metadata if the error persists."); ErrorMessages.Add(ProcessActionWorkflowNotEnabledForOnDemand, "Process Action or Workflow must be enabled for on-demand execution to be available for action steps."); ErrorMessages.Add(CustomActionMustBeMarked, "Custom Action must be marked ‘As a Business Process Flow action step’ to use as BPF action step."); ErrorMessages.Add(ActionSupportNotEnabled, " Business Processes containing an Action Step cannot be exported because Action Step support is still a Public Preview feature and it is not currently enabled for this organization."); ErrorMessages.Add(ManagedBpfDeletionInvalid, " The business process flow is part of a managed solution and cannot be individually deleted. Uninstall the parent solution to remove the business process flow."); ErrorMessages.Add(BPFEntityAlreadyExists, "BPF entity with this name already exists."); ErrorMessages.Add(MissingControlStep, "Required control step is missing."); ErrorMessages.Add(InvalidUniqueName, "Invalid unique name for action."); ErrorMessages.Add(ArgumentTypeMismatch, "Type mismatch for argument {0}."); ErrorMessages.Add(ArgumentDirectionMismatch, "Direction mismatch for argument {0}."); ErrorMessages.Add(InvalidBusinessProcess, "Invalid Business Process."); ErrorMessages.Add(UnsupportedActionType, "Missing Control Step."); ErrorMessages.Add(NotExistBusinessProcess, "Business Process does not exist."); ErrorMessages.Add(InvalidTaskFlow, "Task Flow is invalid."); ErrorMessages.Add(NotExistArgumentInAction, "Argument {0} does not exist in Action."); ErrorMessages.Add(UnsupportedArgumentsMarkedRequired, "Unsupported arguments should not be marked as required."); ErrorMessages.Add(EntityReferenceArgumentsNotBound, "Required arguments of type EntityReference must be bound to some entity."); ErrorMessages.Add(NoDefaultValueForOptionSetArgument, "Arguments of type OptionSet must have a default value set."); ErrorMessages.Add(BpfInstanceAlreadyExists, "A business process flow already exists for the target record and could not be created. Please contact your system administrator."); ErrorMessages.Add(ProcessNameContainsInvalidCharacters, "The business process name contains invalid characters."); ErrorMessages.Add(ProcessEmptyBranches, "This process contains empty branches. Define or delete these branches and try again."); ErrorMessages.Add(WorkflowIdIsNull, "Workflow Id cannot be NULL while creating business process flow category"); ErrorMessages.Add(PrimaryEntityIsNull, "Primary Entity cannot be NULL while creating business process flow category"); ErrorMessages.Add(TypeNotSetToDefinition, "Type should be set to Definition while creating business process flow category"); ErrorMessages.Add(ScopeNotSetToGlobal, "Scope should be set to Global while creating business process flow category"); ErrorMessages.Add(CategoryNotSetToBusinessProcessFlow, "Category should be set to BusinessProcessFlow while creating business process flow category"); ErrorMessages.Add(BusinessProcessFlowStepHasInvalidParent, "{0} parent is not of type {1}"); ErrorMessages.Add(NullOrEmptyAttributeInXaml, "Attribute - {0} of {1} cannot be null or empty"); ErrorMessages.Add(InvalidGuidInXaml, "Guid - {0} in the Xaml is not valid"); ErrorMessages.Add(NoLabelsAssociatedWithStep, "{0} does not have any labels associated with it"); ErrorMessages.Add(StepStepDoesNotHaveAnyControlStepAsItsChildren, "StepStep does not have any ControlStep as its children"); ErrorMessages.Add(InvalidXmlForParameters, "Parameters node for ControlStep have invalid XML in it"); ErrorMessages.Add(ControlIdIsNotUnique, "Control id {0} in the Xaml is not unique"); ErrorMessages.Add(InvalidAttributeInXaml, "Attribute - {0} in the XAML is invalid"); ErrorMessages.Add(AttributeCannotBeUpdated, "Attribute - {0} cannot be updated for a Business Process Flow"); ErrorMessages.Add(StepCountInXamlExceedsMaxAllowed, "There are {0} {1} in the Xaml. Max allowed is {2}."); ErrorMessages.Add(EntitiesExceedMaxAllowed, "You can't cover more than five entities in a process flow. Remove some entities and try again."); ErrorMessages.Add(StepDoesNotHaveAnyChildInXaml, "{0} does not have at least one {1} as its child."); ErrorMessages.Add(InvalidXaml, "XAML for workflow is NULL or Empty"); ErrorMessages.Add(ProcessNameIsNullOrEmpty, "The business process flow name is NULL or empty. "); ErrorMessages.Add(LabelIdDoesNotMatchStepId, "The label ID {0} doesn’t match the step ID {1}."); ErrorMessages.Add(RequiredProcessStepIsNull, "To move to the next stage, complete the required steps."); ErrorMessages.Add(EntityExceedsMaxActiveBusinessProcessFlows, "The {0} entity exceeds the maximum number of active business process flows. The limit is {1}."); ErrorMessages.Add(EntityIsNotBusinessProcessFlowEnabled, "The IsBusinessProcessEnabled property of the {0} entity is false."); ErrorMessages.Add(BusinessProcessFlowMissingEntityErrorMessage, "Failed to import Business Process '{0}' because solution does not include corresponding Business Process entity '{1}'."); ErrorMessages.Add(ParticipatingEntityDoesNotAppearInTraversedPath, "Error displaying Business Process control. Participating entity must be part of traversed path, but entity '{0}' does not appear in path '{1}'. Please contact your system administrator."); ErrorMessages.Add(ValidationContextIsNull, "Error creating or updating Business Process: validation context cannot be null."); ErrorMessages.Add(FinalMergedEntityIsNull, "Error creating or updating Business Process: final merged entity cannot be null."); ErrorMessages.Add(EntityInstanceIsNull, "Error creating or updating Business Process: entity instance cannot be null."); ErrorMessages.Add(ContextIsNull, "Error creating or updating Business Process: context cannot be null."); ErrorMessages.Add(BpfEntityServiceIsNull, "Error creating or updating Business Process: BpfEntityService cannot be null."); ErrorMessages.Add(BpfFactoryIsNull, "Error creating or updating Business Process: BpfFactory cannot be null."); ErrorMessages.Add(BpfVisitorIsNull, "Error creating or updating Business Process: BpfVisitor cannot be null."); ErrorMessages.Add(ActiveStageIDIsNull, "Error updating the Business Process: Active Stage ID cannot be empty."); ErrorMessages.Add(StageIdIsNotPresentInBusinessProcess, "Validation error: Stage ID ‘{0}’ is not present in Business Process. Please contact your system administrator."); ErrorMessages.Add(StageEntityIsNull, "Validation error: stage entity cannot be null."); ErrorMessages.Add(InvalidStage, "Validation error: invalid stage."); ErrorMessages.Add(PrimaryParticipatingEntityIsNotPresent, "Validation error: primary participating entity is not present and is required for every Business Process entity record."); ErrorMessages.Add(StageIdIsEmpty, "Validation error: Stage ID cannot be empty."); ErrorMessages.Add(ActiveStageIdDoesNotMatchLastStageInTraversedPath, "Active Stage ID ‘{0}’ does not match last Stage ID in Traversed Path ‘{1}’. Please contact your system administrator."); ErrorMessages.Add(FirstStageIdInTraversedPathDoesNotMatchFirstStageIdInBusinessProcess, "First Stage ID in traversed path ‘{0}’ does not match first Stage ID in Business Process ‘{1}’. Please contact your system administrator."); ErrorMessages.Add(StageIdIsNotValid, "Validation error: Stage ID is not valid for Business Process."); ErrorMessages.Add(ProcessIdIsEmpty, "Validation error: Process ID cannot be empty."); ErrorMessages.Add(ProcessIdDoesNotMatchBusinessProcessDefinition, "Validation error: Process ID does not match Business Process definition."); ErrorMessages.Add(ProcessStageIdIsEmpty, "Validation error: Primary Stage ID cannot be empty."); ErrorMessages.Add(CalculatedFieldsFeatureNotEnabled, "Calculated Field feature is not available"); ErrorMessages.Add(CalculatedFieldsInvalidEntity, "The formula contains an invalid reference: {0}."); ErrorMessages.Add(CalculatedFieldsInvalidXaml, "The {0} field has an invalid XAML formula definition."); ErrorMessages.Add(CalculatedFieldsNonCalculatedFieldAssignment, "Only calculated fields can have a formula definition."); ErrorMessages.Add(CalculatedFieldsTypeMismatch, "You can't use {0}, which is of type {1}, with the current operator."); ErrorMessages.Add(CalculatedFieldsInvalidFunction, "The {0} function doesn't exist."); ErrorMessages.Add(CalculatedFieldsInvalidAttribute, "The {0} field doesn't exist."); ErrorMessages.Add(TooManyCalculatedFieldsInQuery, "Number of calculated fields in query exceeded maximum limit of {0}."); ErrorMessages.Add(CalculatedFieldsPrimitiveOverflow, "Cannot convert the value {0} into type {1}."); ErrorMessages.Add(CalculatedFieldsAssignmentMismatch, "You can’t set the value {0}, which is of type {1}, to type {2}."); ErrorMessages.Add(CalculatedFieldsFunctionMismatch, "You can't use {0}, which is of type {1}, with the current function."); ErrorMessages.Add(CalculatedFieldsDivideByZero, "You cannot divide by {0}, which evaluates to zero."); ErrorMessages.Add(CalculatedFieldsInvalidAttributes, "The formula references the following attributes that don't exist: {0}."); ErrorMessages.Add(CalculatedFieldsInvalidValue, "The formula references a value that doesn't exist."); ErrorMessages.Add(CalculatedFieldsInvalidValues, "The formula references the following values that don't exist: {0}."); ErrorMessages.Add(CalculatedFieldsCyclicReference, "Field {0} cannot be used in calculated field {1} because it would create a circular reference."); ErrorMessages.Add(CalculatedFieldsDepthExceeded, "You can’t create or update the {0} field because the {1} field already has a calculated field chain of {2} deep."); ErrorMessages.Add(CalculatedFieldsEntitiesExceeded, "Field {0} cannot be created or updated because field {1} contains an additional formula that uses a parent record."); ErrorMessages.Add(InvalidSourceType, "SourceType {0} isn't valid for the {1} data type."); ErrorMessages.Add(CalculatedFieldsInvalidSourceTypeMask, "The formula can't be saved because it contains references to the following fields that have invalid definitions: {0}."); ErrorMessages.Add(AttributeFormulaDefinitionIsEmpty, "The formula is empty."); ErrorMessages.Add(InvalidWorkflowOrWorkflowDoesNotExist, "Invalid workflow or workflow does not exist."); ErrorMessages.Add(WorkflowDoesNotExist, "Workflow does not exist."); ErrorMessages.Add(ActionStepInvalidStageid, "ActionStep references invalid Stage Id."); ErrorMessages.Add(ActionStepInvalidProcessid, "ActionStep references invalid Process Id."); ErrorMessages.Add(ActionStepInvalidPipelineStageid, "ActionStep references invalid Pipeline Stage Id."); ErrorMessages.Add(DatafieldNameShouldBeNull, "ActionStep {0} references invalid DataFieldName {1}."); ErrorMessages.Add(ActionStepInvalidProcessAction, "ActionStep {0} references invalid Process Action {1}."); ErrorMessages.Add(CalculatedFieldsDateOnlyBehaviorTypeMismatch, "You can only use a Date Only type of field."); ErrorMessages.Add(CalculatedFieldsTimeInvBehaviorTypeMismatch, "You can only use a Time-Zone Independent Date Time type of field."); ErrorMessages.Add(CalculatedFieldsUserLocBehaviorTypeMismatch, "You can only use a User Local Date Time type of field."); ErrorMessages.Add(RollupFieldsTargetRelationshipNull, "The related entity is empty. It must be provided when the source entity hierarchy isn’t used for the rollup."); ErrorMessages.Add(RollupFieldsTargetRelationshipNotPartOfOneToNRelationship, "1:N relationship {0} from the source entity {1} to the related entity {2} doesn’t exist."); ErrorMessages.Add(RollupFieldsSourceEntityNotHierarchical, "The source entity {0} hierarchy doesn’t exist."); ErrorMessages.Add(RollupFieldsAggregateNotDefined, "An aggregate function and an aggregated field must be provided for the rollup."); ErrorMessages.Add(RollupFieldsAggregateFieldNotPartOfEntity, "Aggregated field {0} does not belong to entity {1}"); ErrorMessages.Add(RollupFieldsSourceFilterConditionInvalid, "The source entity {0} filter condition {1} isn’t valid."); ErrorMessages.Add(RollupFieldsTargetFilterConditionInvalid, "The related entity {0} filter condition {1} isn’t valid."); ErrorMessages.Add(RollupFieldsAggregateFunctionTypeMismatch, "The {0} data type isn’t allowed for the aggregated field when the aggregate function is {1}."); ErrorMessages.Add(RollupFieldsGeneric, "The rollup field definition isn't valid."); ErrorMessages.Add(RollupFieldsAggregateOnRollupFieldOrComplexCalcFieldNotAllowed, "The aggregated field must be either a simple field or a basic calculated field."); ErrorMessages.Add(RollupFieldsAggregateFieldDataTypeNotAllowedSimilarRollupFieldDataType, "The {0} data type isn’t allowed for the aggregated field when the rollup field is a {1} data type."); ErrorMessages.Add(RollupFieldsDataTypeNotValid, "The {0} data type isn’t valid for the rollup field."); ErrorMessages.Add(RollupFieldsAggregateFieldNotBelongToSourceEntity, "The aggregated field {0} doesn’t belong to the source entity {1}."); ErrorMessages.Add(RollupFieldsAggregateFieldNotBelongToRelatedEntity, "The aggregated field {0} doesn’t belong to the related entity {1}."); ErrorMessages.Add(RollupFieldDependentFieldCannotDeleted, "Rollup field {0} depends on this field. It can only be deleted by deleting the corresponding rollup field {0}."); ErrorMessages.Add(ExceededRollupFieldsPerOrgQuota, "You can't add a rollup field. You’ve reached the maximum number of {0} allowed for your organization."); ErrorMessages.Add(ExceededRollupFieldsPerEntityQuota, "You can't add a rollup field. You’ve reached the maximum number of {0} allowed for this record type."); ErrorMessages.Add(RollupFieldAndAggregateFieldDataTypeFormatMismatch, "The {0} data type with format {1} isn’t allowed for the aggregated field when the rollup field is a {2} data type with format {3}."); ErrorMessages.Add(RollupFieldAggregateFunctionNotAllowedForRollupFieldDataType, "The aggregate function {0} isn’t allowed when the rollup field is a {1} data type."); ErrorMessages.Add(RollupFieldAggregateFunctionNotAllowed, "The aggregate function {0} isn’t allowed."); ErrorMessages.Add(HierarchyCalculateLimitReached, "Calculations can't be performed online because the master record hierarchy depth limit of {0} has been reached."); ErrorMessages.Add(RollupFieldSourceFilterFieldNotAllowed, "The source entity filter must use either a simple field or a basic calculated field. It can't use a rollup field, or a calculated field that is using a rollup field."); ErrorMessages.Add(RollupFieldTargetFilterFieldNotAllowed, "The target entity filter must use either a simple field or a basic calculated field. It can't use a rollup field, or a calculated field that is using a rollup field."); ErrorMessages.Add(CalculatedFieldUsedInRollupFieldCannotBeComplex, "One or more rollup fields depend on this calculated field. This calculated field can't use a rollup field, another calculated field that is using a rollup field or a field from related entity."); ErrorMessages.Add(RollupFieldsTargetSameAsSourceEntity, "Self referential 1:N relationships are not allowed for the rollup field."); ErrorMessages.Add(RollupFieldsTargetEntityNotValid, "Related entity {0} is not allowed for rollups."); ErrorMessages.Add(RollupFieldDefinitionNotValid, "The calculation failed because the rollup field definition is invalid. Contact your system administrator."); ErrorMessages.Add(RecalculateNotSupportedOnNonRollupField, "Field {0} of type {1} does not support Recalculate action. Recalculate action can only be invoked for rollup field."); ErrorMessages.Add(CannotModifyRollupDependentField, "Rollup field {0} created this field. It can’t be modified directly."); ErrorMessages.Add(RollupDependentFieldNameAlreadyExists, "Required dependent field {0} for rollup field cannot be created as another field with same name already exists. Please use an alternative name to create the rollup field."); ErrorMessages.Add(RollupOrCalcNotAllowedInWorkflowWaitCondition, "The field {0} is either a rollup field or a rollup dependent field or a calculated field. Such fields are not allowed in workflow wait condition."); ErrorMessages.Add(CalculateNowOverflowError, "The calculation failed due to an overflow error."); ErrorMessages.Add(AttributeCannotBeUsedInAggregate, "The {0} attribute cannot be used with an aggregation function in a formula."); ErrorMessages.Add(RollupFormulaFieldInvalid, "The formula field isn’t valid."); ErrorMessages.Add(RollupCalculationLimitReached, "Calculations can't be performed at this time because the calculation limit has been reached. Please wait and try again."); ErrorMessages.Add(RollupTargetLinkedEntityOnlySupportedForActivityEntities, "Target related entity is only supported for rollup over {0} type entities."); ErrorMessages.Add(RollupTargetLinkedEntityCanOnlyUsedForActivityPartyEntities, "Target related entity can only be used for {0} entity for rollup over {1} type entities."); ErrorMessages.Add(RollupInvalidAttributeForFilterCondition, "The {0} attribute is not allowed for filter condition."); ErrorMessages.Add(RollupFieldsV2FeatureNotEnabled, "The feature is not supported in the current version of the product"); ErrorMessages.Add(RollupTargetLinkedRelationshipNotValid, "Target Linked Relationship {0} is not valid."); ErrorMessages.Add(ConditionBranchDoesHaveSetNextStageOnlyChildInXaml, "Branch condition can contain only SetNextStage as a child."); ErrorMessages.Add(ConditionStepCountInXamlExceedsMaxAllowed, "{0} cannot have more than one {1}."); ErrorMessages.Add(ConditionAttributesNotAnSubsetOfStepAttributes, "Attributes of the condition are not the subset of attributes in the Step, for the Stage : {0}"); ErrorMessages.Add(CannotDeleteUserMailbox, "The mailbox associated to a user or a queue cannot be deleted."); ErrorMessages.Add(EmailServerProfileSslRequiredForOnline, "You cannot set SSL as false for Microsoft Dynamics 365 Online."); ErrorMessages.Add(EmailServerProfileInvalidCredentialRetrievalForOnline, "Windows integrated or Anonymous authentication cannot be used as a connection type for Microsoft Dynamics 365 Online."); ErrorMessages.Add(EmailServerProfileInvalidCredentialRetrievalForExchange, "No credentials (Anonymous) cannot be used a connection type for exchange e-mail server type."); ErrorMessages.Add(EmailServerProfileAutoDiscoverNotAllowed, "Auto discover server URL can location can only be used for an exchange e-mail server type."); ErrorMessages.Add(EmailServerProfileLocationNotRequired, "You cannot specify the incoming/outgoing e-mail server location when Autodiscover server location has been set to true."); ErrorMessages.Add(ForwardMailboxCannotAssociateWithUser, "A forward mailbox cannot be created for a specific user or a queue. Please remove the regarding field and try again."); ErrorMessages.Add(HybridSSSExchangeOnlineS2SCertExpired, "Certificate used for S2S authentication of Dynamics 365 Onpremise with Exchange Online has expired"); ErrorMessages.Add(HybridSSSExchangeOnlineS2SCertActsExpired, "Certificate used for S2S authentication of Dynamics 365 Onpremise with Exchange Online has expired"); ErrorMessages.Add(MailboxCannotModifyEmailAddress, "E-mail Address of a mailbox cannot be updated when associated with an user/queue."); ErrorMessages.Add(MailboxCredentialNotSpecified, "Username is not specified"); ErrorMessages.Add(EmailServerProfileInvalidServerLocation, "The specified server location {0} is invalid. Correct the server location and try again."); ErrorMessages.Add(CannotAcceptEmail, "The email that you are trying to deliver cannot be accepted by Microsoft Dynamics 365. Reason Code: {0}."); ErrorMessages.Add(QueueMailboxUnexpectedDeliveryMethod, "Delivery method for mailbox associated with a queue cannot be outlook client."); ErrorMessages.Add(ForwardMailboxEmailAddressRequired, "An e-mail address is a required field in case of forward mailbox."); ErrorMessages.Add(ForwardMailboxUnexpectedIncomingDeliveryMethod, "Forward mailbox incoming delivery method can only be none or router."); ErrorMessages.Add(ForwardMailboxUnexpectedOutgoingDeliveryMethod, "Forward mailbox outgoing delivery method can only be none."); ErrorMessages.Add(InvalidCredentialTypeForNonExchangeIncomingConnection, "For a POP3 email server type, you can only connect using credentials that are specified by a user or queue."); ErrorMessages.Add(Pop3UnexpectedException, "Exception occur while polling mails using Pop3 protocol."); ErrorMessages.Add(OpenMailboxException, "Exception occurs while opening mailbox for Exchaange mail server."); ErrorMessages.Add(InvalidMailbox, "Invalid mailboxId passed in. Please check the mailboxid."); ErrorMessages.Add(InvalidEmailServerLocation, "The server location is either not present or is not valid. Please correct the server location."); ErrorMessages.Add(InactiveMailbox, "The mailbox is in inactive state. Send/Receive mails are allowed only for active mailboxes."); ErrorMessages.Add(UnapprovedMailbox, "The mailbox is not in approved state. Send/Receive mails are allowed only for approved mailboxes."); ErrorMessages.Add(InvalidEmailAddressInMailbox, "The email address in the mailbox is not correct. Please enter the correct email address to process mails."); ErrorMessages.Add(EmailServerProfileNotAssociated, "Email Server Profile is not associated with the current mailbox. Please associate a valid profile to send/receive mails."); ErrorMessages.Add(IncomingDeliveryIsForwardMailbox, "Cannot poll mails from the mailbox. Its incoming delivery method is Forward mailbox."); ErrorMessages.Add(InvalidIncomingDeliveryExpectingEmailConnector, "The incoming delivery method is not email connector. To receive mails its incoming delivery method should be Email Connector."); ErrorMessages.Add(OutgoingNotAllowedForForwardMailbox, "Mailbox is a forward mailbox. A forward mailbox cannot send the mails."); ErrorMessages.Add(InvalidOutgoingDeliveryExpectingEmailConnector, "The outgoing delivery method is not email connector. To send mails its outgoing delivery method should be Email Connector."); ErrorMessages.Add(InaccessibleSmtpServer, "Cannot reach to the smtp server. Please check that the smtp server is accessible."); ErrorMessages.Add(InactiveEmailServerProfile, "Email server profile is disabled. Cannot process email for disabled profile."); ErrorMessages.Add(CannotUseUserCredentials, "Email connector cannot use the credentials specified in the mailbox entity. This might be because user has disallowed it. Please use other mode of credential retrieval or allow the use of credential by email connector."); ErrorMessages.Add(CannotActivateMailboxForDisabledUserOrQueue, "Mailbox cannot be activated because the user or queue associated with the mailbox is in disabled state. Mailbox can only be activated for Active User/Queue."); ErrorMessages.Add(ZeroEmailReceived, "There were no email available in the mailbox or could not be retrieved."); ErrorMessages.Add(NoTestEmailAccessPrivilege, "There is not sufficient privilege to perform the test access."); ErrorMessages.Add(MailboxCannotDeleteEmails, "The Delete Emails after Processing option cannot be set to Yes for user mailboxes."); ErrorMessages.Add(EmailServerProfileSslRequiredForOnPremise, "Usage of SSL while contacting external email servers is mandatory for this Dynamics 365 deployment."); ErrorMessages.Add(EmailServerProfileDelegateAccessNotAllowed, "For an SMTP email server type, auto-granted delegate access cannot be used."); ErrorMessages.Add(EmailServerProfileImpersonationNotAllowed, "For a Non Exchange email server type, impersonation cannot be used."); ErrorMessages.Add(EmailMessageSizeExceeded, "Email Size Exceeds the MaximumMessageSizeLimit specified by the deployment."); ErrorMessages.Add(OutgoingSettingsUpdateNotAllowed, "Different outgoing connection settings cannot be specified because the \"Use Same Settings for Outgoing Connections\" flag is set to True."); ErrorMessages.Add(CertificateNotFound, "The given certificate cannot be found."); ErrorMessages.Add(InvalidCertificate, "The given certificate is invalid."); ErrorMessages.Add(EmailServerProfileInvalidAuthenticationProtocol, "The authentication protocol is invalid for the specified server and connection type. For more information, contact your system administrator."); ErrorMessages.Add(EmailServerProfileADBasedAuthenticationProtocolNotAllowed, "The authentication protocol cannot be set to Negotiate or NTLM for your organization because these require Active Directory. Use a different authentication protocol or contact your system administrator to enable an Active Directory-based authentication protocol."); ErrorMessages.Add(EmailServerProfileBasicAuthenticationProtocolNotAllowed, "The specified authentication protocol cannot be used because the protocol requires sending credentials on a secure channel. Use a different authentication protocol or contact your administrator to enable Basic authentication protocol on a non-secure channel."); ErrorMessages.Add(IncomingServerLocationAndSslSetToNo, "The URL specified for Incoming Server Location uses HTTPS but the Use SSL for Incoming Connection option is set to No. Set this option to Yes, and then try again."); ErrorMessages.Add(OutgoingServerLocationAndSslSetToNo, "The URL specified for Outgoing Server Location uses HTTPS but the Use SSL for Outgoing Connection option is set to No. Set this option to Yes, and then try again."); ErrorMessages.Add(IncomingServerLocationAndSslSetToYes, "The URL specified for Incoming Server Location uses HTTP but the Use SSL for Incoming Connection option is set to Yes. Specify a server location that uses HTTPS, and then try again."); ErrorMessages.Add(OutgoingServerLocationAndSslSetToYes, "The URL specified for Outgoing Server Location uses HTTP but the Use SSL for Outgoing Connection option is set to Yes. Specify a server location that uses HTTPS, and then try again."); ErrorMessages.Add(UnsupportedEmailServer, "The email server isn't supported."); ErrorMessages.Add(S2SAccessTokenCannotBeAcquired, "Failed to acquire S2S access token from authorization server."); ErrorMessages.Add(InvalidValueProcessEmailAfter, "The date in the Process Email From field is earlier than what is allowed for your organization. Enter a date that is later than the one specified, and try again."); ErrorMessages.Add(InvalidS2SAuthentication, "You can use server-to-server authentication only for email server profiles created for a Microsoft Dynamics 365 Online organization that was set up through the Microsoft online services environment (Office 365)."); ErrorMessages.Add(RouterIsDisabled, "Microsoft Dynamics 365 has been configured to use server-side synchronization to process email. If you want to use the Email Router to process email, go to System Settings and change the Process Email Using field to Microsoft Dynamics 365 2016 Email Router."); ErrorMessages.Add(MailboxUnsupportedEmailServerType, "Server-side synchronization for appointments, contacts, and tasks isn't supported for POP3 or SMTP server types. Select a supported email type or change the synchronization method for appointments, contacts, and tasks to None."); ErrorMessages.Add(TestEmailConfigurationScheduledInProgress, "Test email configuration scheduled is in progress. Please save after completion of test."); ErrorMessages.Add(ServiceAccountMailboxesCountIsZero, "No service account mailbox is associated for the email server profile."); ErrorMessages.Add(ServiceAccountMailboxesCountIsGreaterThanOne, "More no of service account mailboxes is associated to emailserver profile"); ErrorMessages.Add(TenantIDIsEmpty, "Exchange Online Tenant ID field cannot be empty."); ErrorMessages.Add(InvalidTenantIDValue, "Exchange Online Tenant ID value is not valid.The Field value should be a string in the structure of GUID."); ErrorMessages.Add(TenantIDValueChanged, "The detected tenantId for your exchange is different than the once you saved."); ErrorMessages.Add(SpecifyIncomingServerLocation, "Specify the URL of the incoming server location"); ErrorMessages.Add(SpecifyOutgoingServerLocation, "Specify the URL of the outgoing server location"); ErrorMessages.Add(UserNameRequiredForImpersonation, "Type in a user name and save again"); ErrorMessages.Add(PasswordRequiredForImpersonation, "Type in a password and save again"); ErrorMessages.Add(ServerLocationIsEmpty, "Server Location Field cannot be Empty"); ErrorMessages.Add(SpecifyIncomingUserName, "Specify username for Incoming Connection"); ErrorMessages.Add(SpecifyOutgoingUserName, "Specify username for Outgoing Connection"); ErrorMessages.Add(SpecifyIncomingPassword, "Specify password for Incoming Connection"); ErrorMessages.Add(SpecifyOutgoingPassword, "Specify password for Outgoing Connection"); ErrorMessages.Add(ServerLocationAndSSLSetToYes, "The URL specified for Server Location uses HTTP but Secure Sockets Layer(SSL) is required for Exchange Online."); ErrorMessages.Add(SpecifyInComingPort, "Specify Incomming Port and save again"); ErrorMessages.Add(SpecifyOutgoingPort, "Specify Outgoing Port and save again"); ErrorMessages.Add(TraceMessageConstructionError, "The trace record has an invalid trace code or an insufficient number of trace parameters."); ErrorMessages.Add(TooManyBytesInInputStream, "The stream being read from has too many bytes."); ErrorMessages.Add(EmailRouterFileTooLargeToProcess, "One or more of the email router configuration files is too large to get processed."); ErrorMessages.Add(ErrorsInEmailRouterMigrationFiles, "Invalid File(s) for Email Router Migration"); ErrorMessages.Add(InvalidMigrationFileContent, "The content of the import file is not valid. You must select a text file."); ErrorMessages.Add(ErrorMigrationProcessExcessOnServer, "The server is busy handling other migration processes. Please try after some time."); ErrorMessages.Add(EntityNotEnabledForThisDevice, "Entity not enabled to be viewed in this device"); ErrorMessages.Add(MobileClientLanguageNotSupported, "The application could not find a supported language on the server. Contact an administrator to enable a supported language"); ErrorMessages.Add(MobileClientVersionNotSupported, "Mobile Client version is not supported"); ErrorMessages.Add(RoleNotEnabledForTabletApp, "You haven't been authorized to use this app.\\nCheck with your system administrator to update your settings."); ErrorMessages.Add(NoMinimumRequiredPrivilegesForTabletApp, "You do not have sufficient permissions on the server to load the application.\\nPlease contact your administrator to update your permissions."); ErrorMessages.Add(FilePickerErrorAttachmentTypeBlocked, "Try this action again. If the problem continues, check the {0} for solutions or contact your organization's {#Brand_CRM} Administrator. Finally, you can contact {1}."); ErrorMessages.Add(FilePickerErrorFileSizeBreached, "Try this action again. If the problem continues, check the {0} for solutions or contact your organization's {#Brand_CRM} Administrator. Finally, you can contact {1}."); ErrorMessages.Add(FilePickerErrorFileSizeCannotBeZero, "Try this action again. If the problem continues, check the {0} for solutions or contact your organization's {#Brand_CRM} Administrator. Finally, you can contact {1}."); ErrorMessages.Add(FilePickerErrorUnableToOpenFile, "Try this action again. If the problem continues, check the {0} for solutions or contact your organization's {#Brand_CRM} Administrator. Finally, you can contact {1}."); ErrorMessages.Add(GetPhotoFromGalleryFailed, "Try this action again. If the problem continues, check the {0} for solutions or contact your organization's {#Brand_CRM} Administrator. Finally, you can contact {1}."); ErrorMessages.Add(SaveDataFileErrorOutOfSpace, "Try this action again. If the problem continues, check the {0} for solutions or contact your organization's {#Brand_CRM} Administrator. Finally, you can contact {1}."); ErrorMessages.Add(OpenDocumentErrorCodeUnableToFindAnActivity, "Try this action again. If the problem continues, check the {0} for solutions or contact your organization's {#Brand_CRM} Administrator. Finally, you can contact {1}."); ErrorMessages.Add(OpenDocumentErrorCodeUnableToFindTheDataId, "Try this action again. If the problem continues, check the {0} for solutions or contact your organization's {#Brand_CRM} Administrator. Finally, you can contact {1}."); ErrorMessages.Add(OpenDocumentErrorCodeGeneric, "Try this action again. If the problem continues, check the {0} for solutions or contact your organization's {#Brand_CRM} Administrator. Finally, you can contact {1}."); ErrorMessages.Add(FilePickerErrorApplicationInSnapView, "Try this action again. If the problem continues, check the {0} for solutions or contact your organization's {#Brand_CRM} Administrator. Finally, you can contact {1}."); ErrorMessages.Add(MobileClientNotConfiguredForCurrentUser, "Try this action again. If the problem continues, check the {0} for solutions or contact your organization's {#Brand_CRM} Administrator. Finally, you can contact {1}."); ErrorMessages.Add(DataSourceInitializeFailedErrorCode, "Try this action again. If the problem continues, check the {0} for solutions or contact your organization's {#Brand_CRM} Administrator. Finally, you can contact {1}."); ErrorMessages.Add(DataSourceOfflineErrorCode, "This operation failed because you're offline. Reconnect and try again."); ErrorMessages.Add(PingFailureErrorCode, "The system couldn't reconnect with your {#Brand_CRM} server."); ErrorMessages.Add(RetrieveRecordOfflineErrorCode, "This record isn't available while you're offline. Reconnect and try again."); ErrorMessages.Add(CantSaveRecordInOffline, "You can't save this record while you're offline."); ErrorMessages.Add(NotMobileEnabled, "You can't view this type of record on your tablet. Contact your system administrator."); ErrorMessages.Add(InvalidPreviewModeOperation, "You can’t perform this operation in preview mode."); ErrorMessages.Add(PageNotFound, "Page not found. The record might not exist, or the link might be incorrect."); ErrorMessages.Add(ViewNotAvailableForMobileOffline, "Currently view is not available Offline. Please try switching view or contact administrator"); ErrorMessages.Add(NotMobileWriteEnabled, "You can't create this type of record on your device. Contact your system administrator."); ErrorMessages.Add(DataStoreKeyNotFoundErrorCode, "Not in local store with key '{0}'"); ErrorMessages.Add(RelatedEntityAlreadyExistsInProfile, "The related entity already exists in this profile."); ErrorMessages.Add(RelatedEntityDoesNotExistsInProfile, "The related entity doesn’t exist in the profile items."); ErrorMessages.Add(RelatedEntityGenericError, "An unexpected error occurred while creating the profile association. Please try again."); ErrorMessages.Add(RelatioshipAlreadyExists, "Selected Relationship for entity already exists in profile. "); ErrorMessages.Add(InvalidDataDownloadFilterBusinessUnit, "For an entity owned by the Business Owner, you can only use the following data download filters: All records or Download related data only."); ErrorMessages.Add(InvalidDataDownloadFilterOrganization, "For an entity owned by the Organization, you can only use the following data download filters: All records or Download related data only."); ErrorMessages.Add(CantUpdateOnlineRecord, "You can’t update this record because it doesn’t exist in the offline mode."); ErrorMessages.Add(ApplicationMetadataUserValidationUnknownError, "Sorry, something went wrong. Please try again, or restart the app."); ErrorMessages.Add(ApplicationMetadataPrepareCustomizationsUnknownError, "Sorry, something went wrong. Please try again, or restart the app."); ErrorMessages.Add(ApplicationMetadataRetrieveUserContextUnknownError, "Sorry, something went wrong. Please try again, or restart the app."); ErrorMessages.Add(ApplicationMetadataSyncUnknownError, "Sorry, something went wrong. Please try again, or restart the app."); ErrorMessages.Add(ApplicationMetadataRetrieveUnknownError, "Sorry, something went wrong. Please try again, or restart the app."); ErrorMessages.Add(ApplicationMetadataGetPreviewMetadataUnknownError, "Sorry, something went wrong. Please try again, or restart the app."); ErrorMessages.Add(ApplicationMetadataConverterFailed, "Sorry, something went wrong. Please try again, or restart the app."); ErrorMessages.Add(ApplicationMetadatadaNullData, "Sorry, something went wrong. Please try again, or restart the app."); ErrorMessages.Add(ApplicationMetadatadaCreateFailed, "Sorry, something went wrong. Please try again, or restart the app."); ErrorMessages.Add(ApplicationMetadatadaUpdateFailed, "Sorry, something went wrong. Please try again, or restart the app."); ErrorMessages.Add(ApplicationMetadataPrepareCustomizationsRetrieverError, "There was a problem with the server configuration changes. Users can continue using the application, but may experience difficulties, including the inability to save changes."); ErrorMessages.Add(ApplicationMetadataPrepareCustomizationsTimeout, "Sorry, but your client customization changes could not be processed. This may be due to a large number of entities enabled for your users, or the number of languages enabled. Users will not receive customizations until this issue is resolved."); ErrorMessages.Add(ApplicationMetadataPrepareCustomizationsAppLock, "We encountered some issues when we tried to prepare your customizations for your users. Users on some clients won't be able to download your customization updates until this issue is resolved."); ErrorMessages.Add(EntityMetadataSyncFailed, "There were problems with the server configurations. There was a problem with the server configuration changes. We are unable to load the application, please contact your Dynamics 365 administrator."); ErrorMessages.Add(EntityMetadataSyncFailedWithContinue, "There were difficulties with the server configuration changes. You can continue to use the app with the older configuration, however, you may experience problems including errors when saving. Please contact your Dynamics 365 administrator. "); ErrorMessages.Add(ApplicationMetadataSyncFailed, "There was a problem with the server configuration changes. We are unable to load the application, please contact your Dynamics 365 administrator."); ErrorMessages.Add(ApplicationMetadataFailedWithContinue, "There was a problem with the server configuration changes. You can continue using the application, but may experience difficulties, including the inability to save changes. Please contact your Dynamics 365 administrator and give them the information available in ‘more information’."); ErrorMessages.Add(ApplicationMetadataSyncTimeout, "Sorry, but your server configuration changes could not be downloaded. This may be due to a slow connection, or due to a large number of entities enabled for mobile use. Please verify your connection and try again. If this issue continues please contact your Dynamics 365 administrator."); ErrorMessages.Add(ApplicationMetadataSyncTimeoutWithContinue, "Sorry, but your server configuration changes could not be downloaded. This may be due to a slow connection, or due to a large number of entities enabled for mobile use. Please verify your connection and try again. You can continue to use the app with the older configuration, however you may experience problems including errors when saving. If this issue continues please contact your Dynamics 365 administrator."); ErrorMessages.Add(ApplicationMetadataSyncAppLock, "Sorry, your server is busy so configurations can’t be downloaded right now. Your changes should be available in a few minutes. Wait a few minutes, and sign in again."); ErrorMessages.Add(ApplicationMetadataSyncAppLockWithContinue, "Sorry, your server is busy so configuration changes can’t be downloaded right now. Your changes should be available in a few minutes. In the meantime, you can continue using the app, and you’ll be reminded later to try downloading the changes. Or, you can wait a few minutes, restart the app, and accept the prompt to try again."); ErrorMessages.Add(GenericMetadataSyncFailed, "Sorry, something went wrong. Please try again, or restart the app."); ErrorMessages.Add(GenericMetadataSyncFailedWithContinue, "Sorry, something went wrong downloading server configuration changes. You can continue to use the app with the older configuration, however you may experience problems including errors when saving. If this issue continues please contact your Dynamics 365 administrator and provide the information available when you choose ‘more information’."); ErrorMessages.Add(CannotDeleteOnlineRecord, "You can’t delete this record because it doesn’t exist in the offline mode."); ErrorMessages.Add(EntitlementInvalidStartEndDate, "Start Date cannot be more than the End Date"); ErrorMessages.Add(EntitlementInvalidState, "You cannot delete an entitlement that is in active or waiting state"); ErrorMessages.Add(InvalidChannelOrigin, "An entitlement channel term with the same channel already exists. Specify a different channel and try again."); ErrorMessages.Add(EntitlementChannelInvalidState, "An entitlement channel term cannot be created, modified or deleted when the associated entitlement is not in draft state."); ErrorMessages.Add(EntitlementInvalidTerms, "Specify a higher value for total terms so the remaining terms won't be a negative value."); ErrorMessages.Add(InvalidEntitlementChannelTerms, "Total terms for a specific case origin on an entitlement channel cannot be more than the total terms of the corresponding entitlement."); ErrorMessages.Add(InvalidEntitlementActivate, "You can't activate an expired, waiting or canceled entitlement."); ErrorMessages.Add(InvalidEntitlementCancel, "You can't cancel an entitlement that's in the Draft or Expired state."); ErrorMessages.Add(InvalidEntitlementDeactivate, "You can deactivate only entitlements that are active or waiting"); ErrorMessages.Add(InvalidEntitlementAssociationToCase, "You can't create a case for this entitlement because there are no available terms."); ErrorMessages.Add(InvalidEntitlementRenew, "You can renew only the entitlements that are expired or canceled."); ErrorMessages.Add(InvalidEntitlementStateAssociateToCase, "You can only associate a case with an active entitlement."); ErrorMessages.Add(EntitlementChannelWithoutEntitlementId, "Associate the entitlement channel with an entitlement or entitlement template."); ErrorMessages.Add(EntitlementEditDraft, "You can only edit a draft entitlement."); ErrorMessages.Add(EntitlementAlreadyInDraftState, "You can't deactivate an entitlement when it's in the draft state."); ErrorMessages.Add(EntitlementAlreadyInactiveState, "You can't activate an entitlement when it's in the active state."); ErrorMessages.Add(EntitlementNotActiveInAssociationToCase, "You can't create a case for this entitlement because the entitlement is not in active state."); ErrorMessages.Add(ExpiredEntitlementActivate, "You can't activate an expired entitlement."); ErrorMessages.Add(InvalidEntitlementExpire, "You can't set an entitlement to the Expired state. Active entitlements automatically expire when their end date passes."); ErrorMessages.Add(InvalidDeleteProcess, "This process can't be deleted because it is a system-generated process."); ErrorMessages.Add(EntitlementTotalTerms, "If the allocation type is the number of cases, the total terms can't be a decimal value. Specify a whole number."); ErrorMessages.Add(EntitlementTemplateTotalTerms, "If the allocation type is the number of cases, the total terms can't be a decimal value. Specify a whole number."); ErrorMessages.Add(SocialCareDisabledError, "There's a problem communicating with the Dynamics 365 Organization. The organization might be unavailable or the feature is set so that it can't receive social data. Try again later. If the problem persists, contact your Microsoft Dynamics 365 administrator."); ErrorMessages.Add(EntitlementBlankTerms, "Total terms can't be blank. Enter a value and try again."); ErrorMessages.Add(InvalidProduct, "You can't add a product family."); ErrorMessages.Add(EntitlementInvalidRemainingTerms, "The number of remaining terms can't be greater than the number of total terms."); ErrorMessages.Add(NoIncidentMergeHavingSameParent, "Child cases having different parent case associated can not be merged."); ErrorMessages.Add(CancelActiveChildCaseFirst, "Cancel active child case before canceling parent case."); ErrorMessages.Add(CloseActiveChildCaseFirst, "Close active child case before closing parent case."); ErrorMessages.Add(MultilevelParentChildRelationshipNotAllowed, "Associating child cases to the existing child case is not allowed."); ErrorMessages.Add(MaxChildCasesLimitExceeded, "A Parent Case cannot have more than maximum child cases allowed. Contact your administrator for more details"); ErrorMessages.Add(ParentCaseNotAllowedAsAChildCase, "You can't add a parent case as a child case"); ErrorMessages.Add(CannotCloseCase, "This operation can't be completed. One or more child cases can't be closed because of the status transition rules that are defined for cases."); ErrorMessages.Add(CannotMergeCase, "The merge couldn't be performed. One or more of the selected cases couldn't be cancelled because of the status transition rules that are defined for cases."); ErrorMessages.Add(CaseStateChangeInvalid, "Because of the status transition rules, you can't resolve a case in the current status. Change the case status, and then try resolving it, or contact your system administrator."); ErrorMessages.Add(CannotDeleteActiveRule, "You can not delete an active routing rule. Deactivate the rule to delete it."); ErrorMessages.Add(CannotEditActiveRule, "You can not edit an active routing rule. Deactivate the rule to delete it."); ErrorMessages.Add(RuleAlreadyInactiveState, "This routing rule is already in Active state."); ErrorMessages.Add(RuleAlreadyInDraftState, "You can not deactivate a draft routing rule."); ErrorMessages.Add(RuleAlreadyExistsWithSameQueueAndChannel, "Record creation rule for the specified channel and queue already exists. You can't create another one."); ErrorMessages.Add(RoutingRuleActivateDeactivateByNonOwner, "This Routing Rule Set cannot be activated or deactivated by someone who is not its owner."); ErrorMessages.Add(ConvertRuleActivateDeactivateByNonOwner, "This Convert Rule Set cannot be activated or deactivated by someone who is not its owner."); ErrorMessages.Add(ConvertRuleResponseTemplateValidity, "Please select either a global or case template."); ErrorMessages.Add(ConvertRuleAlreadyActive, "Selected ConvertRule is already in active state. Please select another record and try again"); ErrorMessages.Add(ConvertRuleAlreadyInDraftState , "Selected ConvertRule is already in draft state. Please select another record and try again"); ErrorMessages.Add(ConvertRulePermissionToPerformAction, "You don't have the required permissions on ConvertRules and processes to perform this action."); ErrorMessages.Add(CannotDeleteQueueWithQueueItems, "You can't delete this queue because it has items assigned to it. Assign these items to another user, team, or queue and try again."); ErrorMessages.Add(CannotDeleteQueueWithRouteRules, "You can't delete this queue because one or more routing rule sets use this queue. Remove the queue from the routing rule sets and try again."); ErrorMessages.Add(CannotRoutePrivateQueueItemNonmember, "This private queue item can't be assigned To the selected User."); ErrorMessages.Add(CannotRouteToNonQueueMember, "This item cannot be routed to a non-queue member."); ErrorMessages.Add(StateTransitionActiveToResolve, "Because of the status transition rules, you can't resolve a case in the current status.Change the case status, and then try resolving it, or contact your system administrator."); ErrorMessages.Add(StateTransitionActiveToCanceled, "Because of the status transition rules, you can't cancel the case in the current status.Change the case status, and then try canceling it, or contact your system administrator."); ErrorMessages.Add(StateTransitionResolvedOrCanceledToActive, "Because of the status transition rules, you can't activate the case from the current status.Contact your system administrator."); ErrorMessages.Add(StateTransitionActivateNewStatus, "You can't activate this record because of the status transition rules.Contact your system administrator."); ErrorMessages.Add(StateTransitionDeactivateNewStatus, "You can't deactivate this record because of the status transition rules.Contact your system administrator."); ErrorMessages.Add(CannotDeleteRelatedSla, "The SLA record couldn't be deleted. Please try again or contact your system administrator"); ErrorMessages.Add(CannotEditActiveSla, "You can't delete active SLA .Please deactivate the SLA to delete or Contact your system administrator."); ErrorMessages.Add(SlaAlreadyInactiveState, "You can't activate this record because it's already active."); ErrorMessages.Add(SlaAlreadyInDraftState , "You can't deactivate this record because it's in a draft state."); ErrorMessages.Add(CannotChangeState, "Error occured during activating SLA..Please check your privileges on Workflow and kindly try again or Contact your system administrator."); ErrorMessages.Add(ImportRoutingRuleError, "An error occurred while importing Routing Rule Sets."); ErrorMessages.Add(ImportSlaError, "An error occurred while importing SLAs."); ErrorMessages.Add(ImportConvertRuleError, "An error occurred while importing Convert Rules."); ErrorMessages.Add(CannotDeleteActiveSla, "You can't delete an active SLA. Deactivate the SLA, and then try deleting it."); ErrorMessages.Add(ActiveSlaCannotEdit, "You can't edit an active SLA. Deactivate the SLA, and then try editing it."); ErrorMessages.Add(MaxActiveSLAError, "You can’t activate this SLA because you’ve exceeded the maxiumum number of entities that can have active SLAs for your organization."); ErrorMessages.Add(MaxActiveSLAKPIError, "You can’t activate this SLA because you’ve exceeded the maxiumum number of SLA KPIs that are allowed per entity for your organization."); ErrorMessages.Add(BundleCannotContainBundle, "You can't add a bundle to a bundle."); ErrorMessages.Add(ProductOrBundleCannotBeAsParent, "Only Product Families can be parents to products."); ErrorMessages.Add(CannotAssociateRetiredProducts, "You can't create a product relationship with a retired product."); ErrorMessages.Add(CannotUpdateDraftProducts, "You can Only update draft products."); ErrorMessages.Add(CannotAddProductToBundle, "You cannot add products to this bundle.The limit of {0} has been reached for this bundle."); ErrorMessages.Add(ProductFromRetiredToActiveState, "You can't set a retired property to an active state."); ErrorMessages.Add(ProductFromDraftToRetiredState, "You can't retire a product that's in the draft state."); ErrorMessages.Add(ProductFromRetiredToDraftState, "It is not possible to move product from Retired to Draft State."); ErrorMessages.Add(ProductFromRetiredToRetiredState, "Product is already in Retired State."); ErrorMessages.Add(ProductFromDraftToDraftState, "Product is already in Draft State."); ErrorMessages.Add(ProductFromActiveToActiveState, "Product is already in Active State."); ErrorMessages.Add(SaveRecordBeforeAddingBundle, "After you select a price list, you must save the record before you can add a bundle with optional products."); ErrorMessages.Add(RecordCanOnlyBeRevisedFromActiveState, "You can only revise an active product."); ErrorMessages.Add(CannotAddDraftFamilyProductBundleToCases, "You can't add a product family, a draft product, or a draft bundle."); ErrorMessages.Add(CannotCloneBundleAsProductLimitExceeded, "You can't create this new bundle because it contains more than the allowed number of {0} products that a bundle can contain."); ErrorMessages.Add(CannotChangeSelectedBundleToAnotherValue, "If a bundle is selected as an existing product, you can't change it to another value."); ErrorMessages.Add(CannotChangeSelectedProductWithBundle, "If a product is selected as an existing product, you can't change it to a bundle."); ErrorMessages.Add(InvalidRelationshipTypeForUpSell, "An upsell relationship is always unidirectional and can't be changed."); ErrorMessages.Add(InvalidRelationshipTypeForAccessory, "An accessory relationship is always unidirectional and can't be changed."); ErrorMessages.Add(ProductNoSubstitutedProductNumber, "The substituted Product number cannot be a NULL."); ErrorMessages.Add(DuplicateProductRelationship, "A product relationship with the same product and related product already exists."); ErrorMessages.Add(BundleCannotContainProductFamily, "You can't add a product family to a bundle."); ErrorMessages.Add(RetiredProductToBundle, "You can't add a retired product to a bundle."); ErrorMessages.Add(DraftBundleToProduct, "You can only add products to a draft bundle."); ErrorMessages.Add(ProductCanOnlyBeUpdatedInDraft, "Product, product family and bundle can only be updated in draft state."); ErrorMessages.Add(InconsistentProductRelationshipState, "The other row for the product relationship is not available."); ErrorMessages.Add(CannotRetireProductFromActiveBundle, "This product cannot be retired because it is a part of some active bundles or pricelists. Please remove it from all bundles or pricelists before retiring."); ErrorMessages.Add(CannotSetProductAsParent, "You can only select a product family as the parent."); ErrorMessages.Add(CannotAssociateProductFamily, "You can't create a relationship with a product family."); ErrorMessages.Add(CannotAddPricelistToProductFamily, "You can't add a product family to a pricelist."); ErrorMessages.Add(SdkMessagesDeprecatedError, "This message is no longer available. Please consult the SDK for alternative messages."); ErrorMessages.Add(CanOnlySetActiveOrDraftProductFamilyAsParent, "You can only set product families in a draft or active state as parent."); ErrorMessages.Add(CannotPublishBundleWithProductStateDraftOrRetire, "You can't publish this bundle because its associated products are in a draft state, are retired, or are being revised."); ErrorMessages.Add(CannotPublishKitWithProductStateDraftOrRetire, "You can't publish this kit because its associated products are in a draft state, are retired, or are being revised."); ErrorMessages.Add(CannotAddProduct, "You can only add Active products."); ErrorMessages.Add(CannotPublishChildOfNonActiveProductFamily, "You can't publish this record because it belongs to a product family that isn't published."); ErrorMessages.Add(ProductHasUnretiredChild, "You can't retire this product family because one or more of its child records aren't retired."); ErrorMessages.Add(ProductFromActiveToDraftState, "You can't set a published product to the draft state."); ErrorMessages.Add(ProductFromDraftToRevisedState, "You can't revise a draft or a retired product."); ErrorMessages.Add(CannotOverridePropertyFromDifferentHierarchy, "You can't override a property that belongs to a different product hierarchy."); ErrorMessages.Add(CannotRetireProduct, "You can't retire this product because it belongs to active bundles or price lists. Remove it from any bundles or price lists before you retire it."); ErrorMessages.Add(InvalidStateForPublish, "The specified ProductFamily, Product or Bundle can only be published from Draft state or ActiveDraft status"); ErrorMessages.Add(HiddenPropertyValidationFailed, "You can't create a property instance for a hidden property."); ErrorMessages.Add(ActivePropertyValidationFailed, "You can't create a property instance for an inactive property."); ErrorMessages.Add(ReadOnlyCreateValidationFailed, "You can't create and assign a value to a property instance for a read-only property."); ErrorMessages.Add(ReadOnlyUpdateValidationFailed, "You can't update the property instance for a read-only property."); ErrorMessages.Add(MinMaxValidationFailed, "The value is out of range."); ErrorMessages.Add(OptionSetValidationFailed, "The value is out of range."); ErrorMessages.Add(ValidationFailedForDynamicProperty, "An error occurred while saving the {0} property."); ErrorMessages.Add(ProductCloneFailed, "You can't clone a child record of a retired product family."); ErrorMessages.Add(CannotAddBundleToPricelist, "You can't add the {0} bundle to the pricelist because the {1} bundle product isn't in the pricelist."); ErrorMessages.Add(CannotRemoveProductFromPricelist, "You can't remove this product from the pricelist because one or more bundles refer to it."); ErrorMessages.Add(CannotAddRetiredProductToPricelist, "Retired products can not be added to pricelists."); ErrorMessages.Add(CannotDeleteProductFromActiveBundle, "You can't remove products from a bundle that's either active or under revision."); ErrorMessages.Add(CannotPublishNestedBundle, "You can't publish a bundle that contains bundles. Remove any bundles from this one, and then try to publish again."); ErrorMessages.Add(CannotCreateKitOfTypeFamilyOrBundle, "You can't create a kit of type bundle or product family."); ErrorMessages.Add(CannotChangeProductRelationship, "You can't add or modify the product relationship of a retired product."); ErrorMessages.Add(BundleCannotContainProductKit, "You can't add a kit to a bundle."); ErrorMessages.Add(CannotAddParentToAKit, "You can't specify a parent record for a kit."); ErrorMessages.Add(CannotConvertProductAssociatedWithFamilyToKit, "You can't convert a product that belongs to a product family to a kit."); ErrorMessages.Add(OnlyProductCanBeConvertedToKit, "Only products can be converted to kits."); ErrorMessages.Add(CannotConvertProductAssociatedWithBundleToKit, "You can't convert a product that is a part of a bundle to a kit."); ErrorMessages.Add(UnsupportedCudOperationForDynamicProperties, "You can't create a property for a kit."); ErrorMessages.Add(CannotCloneProductKit, "You can't clone a kit."); ErrorMessages.Add(CannotAddProductBundleToKit, "You can't add a bundle to a kit."); ErrorMessages.Add(CannotAddProductFamilyToKit, "You can't add a product family to a kit."); ErrorMessages.Add(CannotAddProductToKit, "You can't add a product that belongs to a product family to a kit."); ErrorMessages.Add(UnsupportedSdkMessageForBundles, "This message isn't supported for products of type bundle."); ErrorMessages.Add(CannotAddProductToRetiredKit, "You can't add a product to a retired kit."); ErrorMessages.Add(CannotAddRetiredProductToKit, "You can't add a retired product to a kit."); ErrorMessages.Add(CannotConvertProductFamilyToKit, "You can't convert a product family to a kit."); ErrorMessages.Add(CannotConvertBundleToKit, "You can't convert a bundle to a kit."); ErrorMessages.Add(CannotAddBundleToItself, "You can't add a bundle to itself."); ErrorMessages.Add(CannotAddKitToItself, "You can't add a kit to itself."); ErrorMessages.Add(CannotAddRetiredProduct, "You can’t create a product relationship with a retired product."); ErrorMessages.Add(CannotCloneBundleWithRetiredProducts, "You can't clone a bundle that contains retired products."); ErrorMessages.Add(CannotSetPublishRetiredProductsToDraft, "You can't set a published or retired product record to the draft state."); ErrorMessages.Add(CannotOverwriteProperty, "You can't overwrite this property as another overwritten version of this property already exists. Please delete the previously overwritten version, and then try again."); ErrorMessages.Add(MissingRequiredAttributes, "The property couldn’t be created or updated because the regardingobjectid, datatype, or name attribute is missing."); ErrorMessages.Add(DynamicPropertyDefaultValueNeeded, "You must specify a default value because this property is required and is read-only."); ErrorMessages.Add(NonDraftBundleUpdate, "Product Association cannot be updated when bundle is in invalid state."); ErrorMessages.Add(AssociateProductFailureDifferentUom, "The product can't be added to the bundle. You have to use a product unit that belongs to the unit group of the product."); ErrorMessages.Add(DynamicPropertyInvalidStateForUpdate, "You can't update a property that isn't in the draft state."); ErrorMessages.Add(DynamicPropertyInvalidStateChange, "You can't set an inactive property to an active state."); ErrorMessages.Add(DynamicPropertyInvalidStateForDelete, "You can't delete a property that is in the active state."); ErrorMessages.Add(CannotDeleteDynamicPropertyInUse, "Retired Properties being used in transactions can not be deleted."); ErrorMessages.Add(DynamicPropertyInvalidRegardingForUpdate, "You can’t create or change properties for a published or retired product."); ErrorMessages.Add(CannotOverrideOwnedDynamicProperty, "You can't override a property that isn't inherited from a product family."); ErrorMessages.Add(CannotDeleteNotOwnedDynamicProperty, "You cannot delete a dynamic property that is inherited from a product family."); ErrorMessages.Add(ProductFamilyCanCreateDynamicProperty, "A property can only be created for a product family."); ErrorMessages.Add(CannotDeleteOverriddenProperty, "You can't delete this property because it's overridden for one more or child records. Remove the overridden versions of the property, republish the product family hierarchy, and then try deleting the property."); ErrorMessages.Add(SlaActivateDeactivateByNonOwner, "This SLA cannot be activated or deactivated by someone who is not its owner."); ErrorMessages.Add(PartialHolidayScheduleCreation, "Partial holiday schedule can not be created."); ErrorMessages.Add(ErrorNoActiveRoutingRuleExists, "Currently there's no active rule to route this case."); ErrorMessages.Add(SlaPermissionToPerformAction, "You don't have the required permissions on SLAs and processes to perform this action."); ErrorMessages.Add(RoutingRulePublishedByOwner, "Your rule can't be activated until the current active rule is deactivated. The active rule can only be deactivated by the rule owner."); ErrorMessages.Add(RoutingRuleMissingRuleCriteria, "You can't activate this rule until you resolve any missing rule criteria information in the rule items."); ErrorMessages.Add(RoutingRulePublishedByNonOwner, "The Routing Rule Set cannot be published or unpublished by someone who is not its owner."); ErrorMessages.Add(ConvertRuleInvalidAutoResponseSettings, "Select an email template for an autoresponse or set the autoresponse option to No."); ErrorMessages.Add(CannotDeleteActiveCaseCreationRule, "You can't delete an active rule. Deactivate the Record Creation and Update Rule, and then try deleting it."); ErrorMessages.Add(CannotOverrideProperty, "You can't override this property as another overriden version of this property already exists. Please delete the previously overridden version, and then try again."); ErrorMessages.Add(ParentHierarchyExistProperty, "A parent should exist for each node in hierarchy except the root node."); ErrorMessages.Add(CreatePropertyError, "An error occurred while saving the {0} property."); ErrorMessages.Add(CreatePropertyInstanceError, "An error occurred while saving the {0} property instance."); ErrorMessages.Add(CannotDeleteDynamicPropertyInRetiredState, "You can't delete a property of a retired product."); ErrorMessages.Add(CannotDeleteActiveRecordCreationRuleItem, "You can’t delete an active record creation rule item. Deactivate the record creation rule, and then try deleting it."); ErrorMessages.Add(ConvertRuleQueueIdMissingForEmailSource, "Queue value required. Provide a value for the queue."); ErrorMessages.Add(SPFileNotCheckedOutErrorCode, "File is not checked out"); ErrorMessages.Add(SPUnauthorizedAccessErrorCode, "Current user have insufficient privileges"); ErrorMessages.Add(SPFileAlreadyCheckedOutErrorCode, "File is already checked out"); ErrorMessages.Add(SPFileCheckedOutInvalidArgsErrorCode, "Checkout arguments are not valid"); ErrorMessages.Add(SPSharedLockOnFileErrorCode, "Shared lock on the file"); ErrorMessages.Add(SPExclusiveLockOnFileErrorCode, "Exclusive lock on the file"); ErrorMessages.Add(SPFileNotFoundErrorCode, "File cannot be found"); ErrorMessages.Add(SPFileNotLockedErrorCode, "The file in the collection is not locked"); ErrorMessages.Add(SPDuplicateValuesFoundErrorCode, "The list item could not be updated because duplicate values were found for one or more field(s) in the list"); ErrorMessages.Add(SPFileTooLargeOrInfectedErrorCode, "Virus checking indicates the file is infected with a virus or the file is too large"); ErrorMessages.Add(SPBadLockInFileCollectionErrorCode, "The file in the collection has bad lock "); ErrorMessages.Add(SPInvalidLookupValuesErrorCode, "List item could not be updated because invalid lookup values were found for one or more field(s) in the list"); ErrorMessages.Add(SPNullFileUrlErrorCode, "URL of the file creation information must not be null and URL of the file creation information must not be invalid"); ErrorMessages.Add(SPFileContentNullErrorCode, "Content of the file creation information must not be null"); ErrorMessages.Add(SPFileSizeMismatchErrorCode, "There is a mismatch between the size of the document stream written and the size of the input document stream"); ErrorMessages.Add(SPFileIsReadOnlyErrorCode, "Field is read-only"); ErrorMessages.Add(SPModifiedOnServerErrorCode, "List item was modified on the server so changes cannot be committed"); ErrorMessages.Add(SPDataValidationFiledOnFieldErrorCode, "Data validation has failed on the field"); ErrorMessages.Add(SPDataValidationFiledOnListErrorCode, "Data validation has failed on the list"); ErrorMessages.Add(SPDataValidationFiledOnFieldAndListErrorCode, "Data validation has failed on the field and the list"); ErrorMessages.Add(SPThrottlingLimitExceededErrorCode, "Throttling limit is exceeded by the operation"); ErrorMessages.Add(SPOperationNotSupportedErrorCode, "List does not support this operation"); ErrorMessages.Add(SPInstanceOfRecurringEventErrorCode, "List item is an instance of a recurring event which is not a recurrence exception, the list item is a workflow task whose parent workflow is in the recycle bin, or the parent list is a document library"); ErrorMessages.Add(SPItemNotExistErrorCode, "List item does not exist"); ErrorMessages.Add(SPInvalidSavedQueryErrorCode, "Error while doing this operation on SharePoint"); ErrorMessages.Add(SPGenericErrorCode, "Error while doing this operation on SharePoint"); ErrorMessages.Add(SPSiteNotFoundErrorCode, "Site Not Found"); ErrorMessages.Add(SPFolderNotFoundErrorCode, "Folder Not Found"); ErrorMessages.Add(SPNoActiveDocumentLocationErrorCode, "No Active Document Location"); ErrorMessages.Add(SPIllegalFileTypeErrorCode, "Illegal file type"); ErrorMessages.Add(SPInvalidFieldValueErrorCode, "Invalid Field Value"); ErrorMessages.Add(SPIllegalCharactersInFileNameErrorCode, "Illegal characters in filename"); ErrorMessages.Add(SPCurrentDocumentLocationDisabledErrorCode, "Current document location is disabled by administrator"); ErrorMessages.Add(SPCurrentFolderAlreadyExistErrorCode, "Record already present in db"); ErrorMessages.Add(SPNullRegardingObjectErrorCode, "Regarding object id is null"); ErrorMessages.Add(SPOperatorNotSupportedErrorCode, "{0} does not support the selected operator"); ErrorMessages.Add(SPRequiredColCheckInErrorCode, "Exception occurred while doing document check-in as some columns are made required at SharePoint"); ErrorMessages.Add(SPFileIsCheckedOutByOtherUser, "File is checked out to a user other than the current user"); ErrorMessages.Add(SPFileNameModifiedErrorCode, "The folder can't be found. If you changed the automatically generated folder name for this document location directly in SharePoint, you must change the folder name in Dynamics 365 to match the renamed folder. To do this, select Edit Location and type the matching name in Folder Name field."); ErrorMessages.Add(SPAccountNameFetchFailure, "Exception occured while fetching account name from Sharepoint."); ErrorMessages.Add(SPPersonalSiteNotFound, "Personal Site not found for the user."); ErrorMessages.Add(SPFolderRenameFailure, "Exception occurred while Editing Sharepoint Document Proeprties."); ErrorMessages.Add(SPMultipleOdbSitesError, "More than one site with One Drive enabled is not allowed."); ErrorMessages.Add(SPOdbDisabledError, "Please enable ODB(One Drive for Business) feature to create ODB site."); ErrorMessages.Add(SPOdbUpdateDeleteError, "You cannot update or delete ODB(One Drive for Business) site."); ErrorMessages.Add(SPDocumentMappingFailure, "Can't map documents to their location."); ErrorMessages.Add(SPOdbDuplicateLocationError, "More than one ODB (OneDrive for Business) location is not allowed."); ErrorMessages.Add(SPOdbUpdateDeleteLocationError, "You cannot update or delete SharePoint Document Location of type ODB (OneDrive for Business)."); ErrorMessages.Add(SPSearchOneDriveNotCreated, "OneDrive location is not created yet. Please create the location before searching."); ErrorMessages.Add(SPSiteProtocolError, "Protocol error in accessing SharePoint"); ErrorMessages.Add(SPDefaultSiteNotPresent, "OneDrive activation needs a default SharePoint site."); ErrorMessages.Add(SPUploadFailure, "Upload failed on SharePoint due to unknown reasons. Probably the file is too large"); ErrorMessages.Add(SPAllFilesErrorScenario, "One or more sites in all files view of SharePointDocument failed."); ErrorMessages.Add(RequiredBundleProductCannotBeDeleted, "You can't delete this product record because it's a required product in a bundle."); ErrorMessages.Add(RequiredBundleItemCannotBeUpdated, "You can't delete this bundle item because it's a required product in the bundle."); ErrorMessages.Add(DynamicPropertyInstanceMissingRequiredColumns, "The property instance can't be updated. Verify that the following fields are present: dynamicpropertyid, dynamicpropertyoptionsetvalueid, and regardingobjectid."); ErrorMessages.Add(DynamicPropertyInstanceUpdateValuesDifferentRegarding, "The property instances couldn't be saved because they refer to different product line items."); ErrorMessages.Add(DynamicPropertyOptionSetInvalidStateForUpdate, "You can't modify the property option set item for a property that is not in the draft state."); ErrorMessages.Add(ProductMaxPropertyLimitExceeded, "This product can't be published because it has too many properties. A product in your organization can't have more than {0} properties."); ErrorMessages.Add(BundleMaxPropertyLimitExceeded, "This bundle can't be published because it has too many properties. A bundle in your organization can't have more than {0} properties."); ErrorMessages.Add(HierarchicalOperationFailed, "This operation couldn't be completed on this hierarchy. An error occurred while performing this operation for {0}. You can perform the operation separately on this product to fix the error, and then try the operation again for the complete hierarchy."); ErrorMessages.Add(ConflictForOverriddenPropertiesEncountered, "This record can't be published. One of the properties that was changed for this record conflicts with its inherited version. Remove the conflicting property, and then try again."); ErrorMessages.Add(ProductFamilyRootParentisLocked, "The product family root parent record is locked by some other process."); ErrorMessages.Add(CannotAssociateRetiredBundles, "You can't create a product relationship with a retired bundle."); ErrorMessages.Add(MissingQuantity, "The Quantity is missing."); ErrorMessages.Add(CannotCreatePropertyOptionSetItem, "You can only create a property option set item record that refers to a property that has its data type set to Option Set."); ErrorMessages.Add(CannotDeleteInheritedDynamicProperty, "You can't delete a property that is inherited from a product family."); ErrorMessages.Add(CannotDeletePropertyOverriddenByBundleItem, "You can't delete this property because it's overridden in one or more related bundle products. Remove the overridden versions of the property from the related bundle products, publish the bundles that were changed, and then try again."); ErrorMessages.Add(CannotDeleteProductStatusCode, "You can't delete a system-generated status reason."); ErrorMessages.Add(CannotActivateRecord, "You can't activate a retired product family or bundle. Also, you can't activate a retired product that is part of a product family."); ErrorMessages.Add(CannotQualifyLead, "You can't qualify this lead because you don't have permission to create accounts. Work with your system administrator to create the account and then try again."); ErrorMessages.Add(ImportHierarchyRuleDeletedError, "A hierarchy rule with the same id is marked as deleted in the system,So first publish the customized entity and import again."); ErrorMessages.Add(ImportHierarchyRuleExistingError, "Cannot reuse existing hierarchy rule."); ErrorMessages.Add(ImportHierarchyRuleOtcMismatchError, "There was an error processing hierarchy rules of the same object type code.(unresolvable system collision)"); ErrorMessages.Add(HonorPauseWithoutSLAKPIError, "SLA can be set to honor pause and resume only if Use SLA KPI is set to Yes."); ErrorMessages.Add(CannotSetCaseOnHold, "You do not have the permissions to set this case to an on hold status type. Please contact your system administrator."); ErrorMessages.Add(ApplyActiveSLAOnly, "You can only apply active service level agreements (SLAs) to cases."); ErrorMessages.Add(NoPrivilegeToApplyManualSLA, "You don't have appropriate permissions to apply Servie Level Agreement (SLA) to this case record."); ErrorMessages.Add(SlaNotEnabledEntity, "SLA is not enabled for this entity."); ErrorMessages.Add(CannotSetEntityOnHold, "You don’t have permission to put this record on hold. Contact your system administrator."); ErrorMessages.Add(CannotCreateSLAForEntity, "You can't create a service level agreement (SLA) for this entity because it’s not enabled for creating SLAs"); ErrorMessages.Add(SyncAttributeMappingCannotBeUpdated, "The sync attribute mapping cannot be updated."); ErrorMessages.Add(InvalidSyncDirectionValueForUpdate, "The sync direction is invalid as per the allowed sync direction for one or more attribute mappings."); ErrorMessages.Add(InvalidLanguageForCreate, "Rows with localizable attributes can only be created when the user interface (UI) language for the current user is set to the organization's base language."); ErrorMessages.Add(InvalidLanguageForUpdate, "Localizable attributes can only be updated via the string property when the user interface (UI) language for the current user is set to the organization's base language. Use SetLocLabels to update the localized values for the following attributes: [{0}]."); ErrorMessages.Add(GenericImportTranslationsError, "Errors were encountered while processing the translations import file."); ErrorMessages.Add(CannotSetEntitlementTermsDecrementBehavior, "You do not have appropriate privileges to specify whether entitlement terms can be decremented for this case record."); ErrorMessages.Add(CannotUpdateEntitlement, "You can only set Active entitlement records as default."); ErrorMessages.Add(CannotCreateCase, "You can't create this case as the default entitlement for the specified customer has no remaining terms."); ErrorMessages.Add(KBInvalidCreateAssociation, "This KB article is already linked to the {0}."); ErrorMessages.Add(InvalidNumberOfTabsInDialog, "A dialog Form XML cannot contain more than one tab."); ErrorMessages.Add(InvalidNumberOfSectionsInTab, "A dialog Form XML cannot contain more than one section."); ErrorMessages.Add(DialogNameCannotBeNull, "\"DialogName cannot be null for type Dialog"); ErrorMessages.Add(InvalidFormTypeCalledThroughSdk, "\"Invalid Formtype used in Create call"); ErrorMessages.Add(InvalidFormatForControl, "Invalid Precision Parameter specified for control {0}. It Dosent Contain Expected Value"); ErrorMessages.Add(InvalidOptionSetIdForControl, "An invalid OptionSetId specified for control {0}.OptionSet Id is an non-empty Guid."); ErrorMessages.Add(InvalidRelationshipNameForControl, "Relationship Name not specified for control {0}.Relationship Name is an mandatory Field."); ErrorMessages.Add(InvalidTargetEntityTypeForControl, "Target Entity Type not specified for control {0}.Target Entity is an mandatory Field."); ErrorMessages.Add(InvalidMaxLengthForControl , "Invalid MaxLength Parameter specified for control {0}.Maxlength must be in between {1} and {2} ."); ErrorMessages.Add(InvalidMinValueForControl , "Invalid MinValue Parameter specified for control {0}.Min Value must be in between {1} and {2} ."); ErrorMessages.Add(InvalidMaxValueForControl , "Invalid MaxValue Parameter specified for control {0}.Max Value must be in between {1} and {2} ."); ErrorMessages.Add(InvalidMinAndMaxValueForControl , "Invalid MinValue and MaxValue Parameter specified for control {0}.Min Value must be less than Max Value ."); ErrorMessages.Add(InvalidPrecisionForControl , "Invalid Precision Parameter specified for control {0}.Precision must be in between {1} and {2} ."); ErrorMessages.Add(ReadIntentIncompatible, "Plugin Execution Intent of current execution context is not compatible with its parent context"); ErrorMessages.Add(ConcurrencyVersionMismatch, "The version of the existing record doesn't match the RowVersion property provided."); ErrorMessages.Add(ConcurrencyVersionNotProvided, "The RowVersion property must be provided when the value of ConcurrencyBehavior is IfVersionMatches."); ErrorMessages.Add(CrmHttpError, "A failure occurred in Wep Api in Dynamics 365."); ErrorMessages.Add(IncompatibleStepsEncountered, "You can't enable the EnforceReadOnlyPlugins setting because plug-ins that change data are registered on read-only SDK messages. {0}"); ErrorMessages.Add(MailboxTrackingFolderMappingCannotBeUpdated, "The mailbox tracking folder mapping cannot be updated."); ErrorMessages.Add(OptimisticConcurrencyNotEnabled, "Optimistic concurrency isn't enabled for entity type {0}. The IfVersionMatches value of ConcurrencyBehavior can only be used if optimistic concurrency is enabled."); ErrorMessages.Add(InvalidCollectionName, "An entity with that collection name already exists. Specify a unique name."); ErrorMessages.Add(InvalidEntityKeyOperation, "Invalid EntityKey Operation performed : {0}"); ErrorMessages.Add(EntityKeyNotDefined, "The specified key attributes are not a defined key for the {0} entity"); ErrorMessages.Add(RecordNotFoundByEntityKey, "A record with the specified key values does not exist in {0} entity"); ErrorMessages.Add(DuplicateRecordEntityKey, "Entity Key {0} violated. A record with the same value for {1} already exists. A duplicate record cannot be created. Select one or more unique values and try again."); ErrorMessages.Add(EntityKeyNameExists, "An entity key with the name {0} already exists on entity {1}."); ErrorMessages.Add(EntityKeyWithSelectedAttributesExists, "An entity key with the selected attributes already exists on entity."); ErrorMessages.Add(IndexSizeConstraintViolated, "Index size exceeded the size limit of {0} bytes. The key is too large. Try removing some columns or making the strings in string columns shorter."); ErrorMessages.Add(CannotSecureEntityKeyAttribute, "The field {0} is not securable as it is part of entity keys ( {1} ). Please remove the field from all entity keys to make it securable."); ErrorMessages.Add(ReactivateEntityKeyOnlyForFailedJobs, "Reactivate entity key is only supported for failed job"); ErrorMessages.Add(RefRoleNavPaneDisplayOptionRequired, "The NavPaneDisplayOption attribute is required for the Referencing Role of a one-to-many relationship {0}."); ErrorMessages.Add(InvalidRoleTypeForOneToManyRelationship, "This relationship role type isn't valid for a one-to-many relationship {0}."); ErrorMessages.Add(InvalidRoleOccurrencesForOneToManyRelationship, "There can't be more than two entity relationship roles for a one-to-many relationship {0}."); ErrorMessages.Add(InvalidEntitySetName, "An entity with the specified entity set name {0} already exists. Specify a unique name."); ErrorMessages.Add(IncorrectEntitySetName, "The entity set name {0} must start with a valid customization prefix."); ErrorMessages.Add(WopiDiscoveryFailed, "Request for retrieving the WOPI discovery XML failed."); ErrorMessages.Add(WopiApplicationUrl, "Error in retrieving information from WOPI application url."); ErrorMessages.Add(WopiMaxFileSizeExceeded, "{0} file exceeded size limit of {1}."); ErrorMessages.Add(ExportToExcelOnlineFeatureNotEnabled, "Export to Excel Online feature is not enabled."); ErrorMessages.Add(ExcelFileNotFound, "The requested file was not found."); ErrorMessages.Add(InvalidUserToViewExcelOnlineFile, "You don't have permission to view this file. Only the user who exported this data can view this file."); ErrorMessages.Add(InvalidUserToImportExcelOnlineFile, "You don't have permission to import this file. Only the user who exported this data can import this file."); ErrorMessages.Add(SharePointCertificateExpired, "Certificate used for Sharepoint validation has expired"); ErrorMessages.Add(SharePointRealmMismatch, "Sharepoint realm ID entered does not match with the registered realm at Sharepoint side."); ErrorMessages.Add(SharePointAuthenticationFailure, "Microsoft Dynamics 365 cannot authenticate this user {0} . Verify that the information for this user is correct, and then try again."); ErrorMessages.Add(SharePointAuthorizationFailure, "Microsoft Dynamics 365 cannot authorize this user {0} . Verify that the information for this user is correct, and then try again."); ErrorMessages.Add(SharePointConnectionFailure, "Microsoft Dynamics 365 cannot connect this user {0} to SharePoint. Verify that the information for this user is correct and exists in SharePoint, and then try again."); ErrorMessages.Add(SharePointVersionUnsupported, "Microsoft Dynamics 365 cannot connect to Sharepoint as the Sharepoint Version is unsupported. Install the correct version, and then try again. "); ErrorMessages.Add(CannotDeleteOneNoteTableOfContent, "You can’t delete this file because it contains links to OneNote notebook sections. To delete notebook contents, open the notebook in OneNote and delete the contents from there. To delete a notebook, open SharePoint and delete the notebook from there."); ErrorMessages.Add(InvalidHexColorValue, "Only hexadecimal values are allowed."); ErrorMessages.Add(ThemeIdOrUpdateTimestampIsNull, "Theme Id or Update Timestamp value is not present in theme data."); ErrorMessages.Add(LogoImageNodeDoesNotExist, "Logo Image node in organization cache theme data doesnot exist."); ErrorMessages.Add(InvalidLogoImageId, "Invalid logo image web resource id."); ErrorMessages.Add(InvalidThemeId, "Invalid theme id."); ErrorMessages.Add(CannotCreateSystemOrDefaultTheme, "You can’t create system or default themes. System or default theme can only be created out of box."); ErrorMessages.Add(CannotUpdateSystemTheme, "You can’t modify system themes."); ErrorMessages.Add(InvalidThemeDeleteOperation, "You can’t delete system or default themes."); ErrorMessages.Add(CannotUpdateDefaultField, "You can’t update the isdefaultTheme attribute."); ErrorMessages.Add(InvalidLogoImageWebResourceType, "Invalid WebResource Type for Logo Image."); ErrorMessages.Add(CannotDeleteSystemTheme, "You can't delete system themes."); ErrorMessages.Add(InvalidBehaviorSelection, "The behavior of this Date and Time field can only be changed to “Date Only\"."); ErrorMessages.Add(InvalidBehavior, "The Behavior value of this attribute can't be changed."); ErrorMessages.Add(InvalidDateTimeFormat, "You can’t change the format value of this attribute to “Date and Time” when the behavior is “Date Only.”"); ErrorMessages.Add(SkipValidDateTimeBehavior, "The behavior value for this field was ignored. A System Customizer will need to configure the behavior value for this field directly."); ErrorMessages.Add(ValidDateTimeBehaviorWarning, "The behavior of this field was changed. You should review all the dependencies of this field, such as business rules, workflows, and calculated or rollup fields, to ensure that issues won't occur. Attribute: {0}"); ErrorMessages.Add(ValidDateTimeBehaviorExportAsWarning, "The {0} field will be a User Local Date and Time since the Date Only and Time Zone Independent behaviors won't work in earlier versions of Dynamics 365."); ErrorMessages.Add(ExportToXlsxFeatureNotEnabled, "Export to excel file feature is not enabled."); ErrorMessages.Add(XlsxImportInvalidExcelDocument, "Invalid file to import."); ErrorMessages.Add(XlsxImportInvalidFileData, "Invalid format in import file."); ErrorMessages.Add(XlsxImportHiddenColumnAbsent, "Required columns missing."); ErrorMessages.Add(XlsxImportInvalidColumnCount, "Column mismatch."); ErrorMessages.Add(XlsxImportColumnHeadersInvalid, "Invalid columns."); ErrorMessages.Add(XlsxExportGeneratingExcelFailed, "Failed to generate excel."); ErrorMessages.Add(XlsxImportExcelFailed, "Failed to import data."); ErrorMessages.Add(DocumentTemplateFeatureNotEnabled, "Document template feature is not enabled."); ErrorMessages.Add(WordTemplateFeatureNotEnabled, "Word document template feature is not enabled."); ErrorMessages.Add(MobileExcelFeatureNotEnabled, "Mobile export to excel feature is not enabled."); ErrorMessages.Add(InvalidDocumentTemplate, "Invalid document template."); ErrorMessages.Add(InvalidFileType, "Invalid File Type."); ErrorMessages.Add(DocxExportGeneratingWordFailed, "An error occurred while generating the Word document. Please try again."); ErrorMessages.Add(DocxValidationFailed, "We could not validate this Word document."); ErrorMessages.Add(LegacyXlsxFileNotSupported, "Legacy .xlsx files cannot be used for Excel Templates."); ErrorMessages.Add(InvalidWordFileType, "The file type isn't supported."); ErrorMessages.Add(InvalidWordDocumentTemplate, "The document template is not valid."); ErrorMessages.Add(InvalidWordTemplateContent, "The template content is not valid."); ErrorMessages.Add(DataTableNotAvailable, "The original data table has been deleted or renamed."); ErrorMessages.Add(InvalidEntitySpecified, "The entity is not specified in the template."); ErrorMessages.Add(InvalidTemplateContent, "The template content is invalid."); ErrorMessages.Add(InvalidViewReference, "The view is not specified or is invalid."); ErrorMessages.Add(FileTypeNotSupported, "The specified file type is not supported as template."); ErrorMessages.Add(DatasheetNotAvailable, "The data sheet is not available."); ErrorMessages.Add(HiddensheetNotAvailable, "The hidden sheet is not available."); ErrorMessages.Add(CorruptedHiddensheetData, "The hidden sheet data is corrupted."); ErrorMessages.Add(EditQueryInDynamicExcelNotSupported, "You can’t edit the query on a dynamic spreadsheet once the Excel file has been exported. If you’d like to make changes, go back to Dynamics 365 and then re-export."); ErrorMessages.Add(NoActiveLocation, "No active location found."); ErrorMessages.Add(FolderDoesNotExist, "Folder doesn't exist."); ErrorMessages.Add(OneNoteCreationFailed, "OneNote creation failed."); ErrorMessages.Add(OneNoteRenderFailed, "OneNote render failed."); ErrorMessages.Add(AccessDeniedSharePointRecord, "Access denied on SharePoint record in Dynamics 365."); ErrorMessages.Add(CouldNotSetLocationTypeToOneNote, "Couldn't set location type of document location to OneNote."); ErrorMessages.Add(OneNoteLocationNotCreated, "OneNote location not created."); ErrorMessages.Add(OneNoteLocationDeactivated, "The location mapping for OneNote is inactive. Contact your administrator to activate the OneNote location record for this Dynamics 365 record."); ErrorMessages.Add(DocumentManagementDisabledOnEntity, "You must enable document management for this Entity in order to enable OneNote integration."); ErrorMessages.Add(QuickCreateInvalidEntityName, "The entityLogicalName isn't valid. This value can't be null or empty, and it must represent an entity in the organization."); ErrorMessages.Add(QuickCreateDisabledOnEntity, "The {0} entity doesn't have a quick create form or the number of nested quick create forms has exceeded the maximum number allowed."); ErrorMessages.Add(OperationCanceled, "Refresh was canceled by user."); ErrorMessages.Add(SavePending, "Save operation is already running in the background."); ErrorMessages.Add(SchedulingFailedForInvalidData, "Book or Reschedule operation failed due to invalid data."); ErrorMessages.Add(SchedulingFailedForBookingValidation, "Book or Reschedule operation failed due to booking validation."); ErrorMessages.Add(InvalidSourceTypeCode, "Please select valid property bag for the selected source type."); ErrorMessages.Add(CannotDeleteChannelProperty, "You can’t delete a channel property which is being referred in a convert rule."); ErrorMessages.Add(ChannelPropertyGroupAlreadyExistsWithSameSourceType, "A record for the specified source type already exists. You can't create another one."); ErrorMessages.Add(CannotClearChannelPropertyGroupFromConvertRule, "The Channel Property Group is used by one or more steps. Delete the properties from the conditions and steps that use the record before you save or activate the rule."); ErrorMessages.Add(DuplicateChannelPropertyName, "A channel property with the specified name already exists. You can't create another one."); ErrorMessages.Add(ChannelPropertyNameInvalid, "The channel property name is invalid. The name can only contain '_', numerical, and alphabetical characters. Choose a different name, and try again."); ErrorMessages.Add(ImportChannelPropertyGroupError, "An error occurred while importing Channel Property Group."); ErrorMessages.Add(CannotChangeConvertRuleState, "Error occured during activating Convert Rule.Please check your privileges on Workflow and kindly try again or Contact your system administrator."); ErrorMessages.Add(NoConversionRule, "A ConversionRule is required for the tool to run."); ErrorMessages.Add(InvalidConversionRule, "The ConversionRule specified {0} is invalid. Please specify a valid ConversionRule."); ErrorMessages.Add(InvalidTimeZoneCode, "Time Zone Code {0} specified is not recognized. Please specify a valid Time Zone Code value."); ErrorMessages.Add(UserDoesNotHavePrivilegesToRunTheTool, "You must be a system administrator to execute this request."); ErrorMessages.Add(NoTimeZoneCodeForConversionRule, "The TimeZoneCode property is required when the value of the ConversionRule property is SpecificTimeZone."); ErrorMessages.Add(NoEntitySpecified, "At least one Entity is expected by the tool to process."); ErrorMessages.Add(InvalidOtherDataFilterOptions, "You should select at least one option from Download My Records, My Team Records or My Business Unit's Records for Other Data Filter"); ErrorMessages.Add(RelatedEntityDoesNotExistInProfileItem, "The related entity {0} of the mobile offline profile item association {1} of the mobile offline profile item {2} doesn’t exist in the profile items of profile {3}."); ErrorMessages.Add(DownloadAllEntityRecordsChangedOrCreatedWithinTheseDays, "Download all entity records changed or created within this number of days."); ErrorMessages.Add(MobileOfflineDaysSinceRecordLastModifiedZero, "No records will be available in the mobile offline mode if the value for number of days is 0."); ErrorMessages.Add(IncreasingDaysWillResetMobileOfflineData, "Increasing the number of days will cause a reset of mobile offline data and a resynchronization with mobile devices."); ErrorMessages.Add(DecreasingDaysWillDeleteOlderData, "Decreasing the number of days will delete mobile offline data older than the number of days specified."); ErrorMessages.Add(InvalidDataFiltersForUnownedEntities, "You can’t set the All Record or Other Data filters for unowned entities."); ErrorMessages.Add(InvalidDataFiltersForBUOwnedEntities, "You can’t set Records Owned By Me or Records Owned By My Team for business unit-owned entities."); ErrorMessages.Add(InvalidDataFiltersForOrgOwnedEntities, "You can’t set the Other Data filter for organization-owned entities."); ErrorMessages.Add(InvalidCustomDataDownloadFilters, "You can’t set custom download filters because Record Distribution Criteria isn’t set to Other Data Filters."); ErrorMessages.Add(MOPIAssociationNameCannotBeEmptyOrSpace, "The Mobile Offline Profile Item Association name can’t be a space or an empty string."); ErrorMessages.Add(NoDefinedRelationshipsForMOPIAssociation, "The Profile Item Association entity doesn’t have any defined relationships."); ErrorMessages.Add(InvalidRelationshipInMOPIAssociation, "This relationship doesn’t exist with the entity selected in the parent profile item."); ErrorMessages.Add(CannotDeleteDefaultProfile, "To delete this profile, you first need to set it so that it’s no longer a default mobile offline profile."); ErrorMessages.Add(CannotAssociateInvalidEntityToProfileItem, "Invalid object type code."); ErrorMessages.Add(CanAssociateOnlyMobileOfflineEnableEntityToProfileItem, "This entity needs to be enabled for mobile offline."); ErrorMessages.Add(CanAssociateOnlyOneEntityPerProfileItem, "You can only add one mobile offline profile item record per entity to a mobile offline profile record. "); ErrorMessages.Add(CanAssociateOnlyMobileOfflineEnabledEntityToProfileItem, "{0} needs to be enabled for mobile offline."); ErrorMessages.Add(ImportMobileOfflineProfileError, "An error occurred while importing Mobile Offline Profiles."); ErrorMessages.Add(SavedQueryValidationError, "You can’t publish profile {0} because one of its profile items {1} has an entity {2} in the saved query {3}, which isn’t part of this profile."); ErrorMessages.Add(ChangeTrackingDisabledForMobileOfflineError, "You can not disable change tracking for this entity since mobile offline is already enabled."); ErrorMessages.Add(EnableMobileOfflineDisableChangeTrackingError, "You must enable change tracking for this entity since mobile offline client is enabled."); ErrorMessages.Add(CannotDeleteUserProfile, "You can’t delete an active mobile offline profile. Remove all users from the profile and try again."); ErrorMessages.Add(CannotChangeDaysSinceRecordLastModified, "You need to enable this entity for mobile offline before you can set or change the number of days since the record was last modified."); ErrorMessages.Add(CannotDisableMobileOfflineFlagForEntity, "You cannot disable Mobile Offline flag for this entity as it is being used in Mobile Offline Profiles"); ErrorMessages.Add(CannotAddUserToMobileOfflineProfile, "You can’t add this user to this mobile offline profile because the user’s role is either missing or doesn’t have the Dynamics 365 for mobile privilege."); ErrorMessages.Add(MobileOfflineProfileNameAlreadyExists, "A mobile offline profile with this name already exists. Enter a unique name."); ErrorMessages.Add(MobileOfflineProfileItemNameAlreadyExists, "A mobile offline profile item with this name already exists for this mobile offline profile. Enter a unique name."); ErrorMessages.Add(MobileOfflineProfileNameCanNotBeNullOrEmpty, "The mobile offline profile name can’t be null or empty. Enter a name for this profile."); ErrorMessages.Add(MobileOfflineProfileItemNameCanNotBeNullOrEmpty, "The mobile offline profile item name can’t be null or empty. Enter a name for this profile item."); ErrorMessages.Add(CannotAddIntersectEntityToMobileOfflineProfileItem, "You can’t add the intersect entity to the mobile offline profile item because it’s added automatically when its parent entities are added to the profile."); ErrorMessages.Add(CannotAddBusinessDataLocalizedLabelEntityToMobileOfflineProfileItem, "You can’t add the BusinessDataLocalizedLabel entity to the mobile offline profile item because it’s added automatically when the Product entity is added to the profile."); ErrorMessages.Add(CannotAddActivityPartyEntityToMobileOfflineProfileItem, "You can’t add the ActivityParty entity to the mobile offline profile item because it’s added automatically when an activity entity is added to the profile."); ErrorMessages.Add(InvalidAssociatedSavedQuery, "Selected saved query does not belong to associated entity of the mobile offline profile item."); ErrorMessages.Add(CannotDisableMobileOfflineFlagForImportEntity, "You can’t disable mobile offline for the {0} entity using solution import. If you don’t want to use this entity in offline mode, uncheck the ‘Enable for Mobile Offline’ flag from the customization screen"); ErrorMessages.Add(CloneTitleTooLong, "A validation error occurred. The length of the Name attribute of the mobileofflineprofile entity exceeded the maximum allowed length of 200."); ErrorMessages.Add(InvalidMobileOfflineFiltersFetchXml, "XML Format mismatch. Check for the correctness of XML."); ErrorMessages.Add(MaxConditionsMobileOfflineFilters, "You can only define 3 Mobile offline Org filter for each entity."); ErrorMessages.Add(UnsupportedAttributeOrOperatorMobileOfflineFilters, "Attribute or Operator “{0}” is not supported for Mobile Offline Org Filter."); ErrorMessages.Add(MaxprofileItemFilterConditionsAllowed, "You can only define 6 Mobile offline entity filter conditions for each entity."); ErrorMessages.Add(MobileOfflineRuleEnhancementFeatureNotAvailaible, "This feature is not enabled for your organization. Please contact your system administrator for help."); ErrorMessages.Add(EmptyEntityFilterXml, "The FetchXML is missing."); ErrorMessages.Add(QueryFilterConditionAttributeNotPresentInExpressionEntity, "The query references a field that does not exist in Dynamics 365: \"{0}\""); ErrorMessages.Add(LinkedEntitiesAreNotAllowed, "Linked Entities Are Not Allowed in the filter"); ErrorMessages.Add(UnsupportedOperatorForAttributeInProfileItemEntityFilters, "Operator {0} is not supported with attribute {1} in the filter query option."); ErrorMessages.Add(InvalidOrEmptyRelationshipId, "The RelationshipId of Mobile profile item association is invalid or empty."); ErrorMessages.Add(UnsupportedAttributeInInProfileItemEntityFilters, "Attribute {0} is not supported in the filter query option."); ErrorMessages.Add(EntitiesInViewNotInProfile, "One or more entities in this view are not part of this profile."); ErrorMessages.Add(EntitiesInViewNotAvailableOffline, "One or more entities referenced are not available offline."); ErrorMessages.Add(ViewNotAvailableOnMobile, "This view is not available on mobile."); ErrorMessages.Add(OperatorsInViewNotSupportedOffline, "One or more operators in this view are not supported offline."); ErrorMessages.Add(ViewNotSupportedInCalendarModeOffline, "This view is supported only in grid mode offline. It is not supported in calendar mode offline."); ErrorMessages.Add(CannotDefineMultipleValuesOnOwnerFieldInProfileItemEntityFilter, "You cannot define multiple values on this field."); ErrorMessages.Add(ViewConditionTypeNotSupportedOffline, "The condition {0} is not supported."); ErrorMessages.Add(OfficeGroupsFeatureNotEnabled, "Office Groups feature is not enabled."); ErrorMessages.Add(OfficeGroupsExceptionRetrieveSetting, "Office Groups Exception occured in RetrieveOfficeGroupsSetting: {0}."); ErrorMessages.Add(OfficeGroupsInvalidSettingType, "Invalid setting type for Office Groups feature: {0}."); ErrorMessages.Add(OfficeGroupsNotSupportedCall, "Office Groups feature attempted an unsupported call."); ErrorMessages.Add(OfficeGroupsNoAuthServersFound, "Office Groups feature could not find any authorization servers."); ErrorMessages.Add(ProfileRuleMissingRuleCriteria, "You can't activate this rule until you resolve any missing rule criteria information in the rule items."); ErrorMessages.Add(ProfileRuleWorkflowAuthorGenericError, "An error occurred while authoring workflow. Please fix workflow definition and try again."); ErrorMessages.Add(ProfileRuleActivateDeactivateByNonOwner, "This Profile Rule cannot be activated or deactivated by someone who is not its owner."); ErrorMessages.Add(ProfileRulePublishedByOwner, "Your rule can't be activated until the current active rule is deactivated. The active rule can only be deactivated by the rule owner."); ErrorMessages.Add(CannotDeleteGuestProfile, "You can't delete this guest channel access profile."); ErrorMessages.Add(CannotDeactivateGuestProfile, "You can't set this guest channel access profile as inactive."); ErrorMessages.Add(CannotDeleteProfileWithProfileRules, "You can't delete this channel access profile because it's being used by one or more channel access profile rules. Remove this profile from the channel access profile rules, and then try again."); ErrorMessages.Add(CannotDeleteProfileWithExternalPartyItem, "You can't delete this channel access profile because it's associated to an external party item. Remove the association, and then try again."); ErrorMessages.Add(CannotDeleteChannelAccessProfileRule, "You can't delete an active channel access profile rule. Deactivate the rule and then delete it."); ErrorMessages.Add(InsufficientRetrievePrivilege, "External Party don't have sufficient privilege to retrieve record."); ErrorMessages.Add(InsufficientCreatePrivilege, "External Party don't have sufficient privilege to create new record with given parameters."); ErrorMessages.Add(InsufficientUpdatePrivilege, "External Party don't have sufficient privilege to update record."); ErrorMessages.Add(OwnerAttributeMissing, "Owner Attribute is not present in the request."); ErrorMessages.Add(InvalidOrganizationSettings, "Organization Settings are not properly configured for External Party."); ErrorMessages.Add(InvalidRequestParameters, "Request parameters are not valid to server External Party request."); ErrorMessages.Add(InvalidExternalPartyConfiguration, "Multiple External Party Items are present for request parameters."); ErrorMessages.Add(InvalidExternalPartyParent, "External Party has invalid parent attribute."); ErrorMessages.Add(InvalidExternalPartyOperation, "External Party is not allowed."); ErrorMessages.Add(CannotCreateExternalPartyWithSameCorrelationKey, "An external party record already exists with the same correlation key value."); ErrorMessages.Add(FeatureNotEnabled, "This operation couldn't be completed because this feature isn’t enabled for your organization."); ErrorMessages.Add(CannotUpdateExternalPartyWithSameCorrelationKey, "An external party record already exists with the same correlation key value."); ErrorMessages.Add(ChannelAccessProfileRuleAlreadyInDraftState, "You can't deactivate a draft channel access profile rule."); ErrorMessages.Add(CannotActOnBehalfOfExternalParty, "User does not have the privilege to act on behalf of External Party."); ErrorMessages.Add(CannotAssociateExternalPartyItem, "You can’t associate more than one external party item with an entity record that has been enabled as an external party."); ErrorMessages.Add(DuplicatePrivilegeInRolecontrol, "The Channel Access Profile privilege array contains duplicate privilege references."); ErrorMessages.Add(ErrorsInProfileRuleWorkflowActivation, "You can't activate this profile rule. You don't have the required permissions on the record types that are referenced by this profile rule."); ErrorMessages.Add(CantSetIsGuestProfile, "You can’t set or change the value of the IsGuestProfile field because it’s for internal use only."); ErrorMessages.Add(EntityIsNotEnabledForExternalParty, "You can't create/update an external party item associated to an entity that is not enabled for external party."); ErrorMessages.Add(MailApp_UnsupportedDevice, "Your device is currently unsupported."); ErrorMessages.Add(MailApp_UnsupportedBrowser, "Your browser is currently unsupported."); ErrorMessages.Add(MailApp_MailboxNotConfiguredWithServerSideSync, "We’re unable to load this app because your email mailbox isn't configured with Microsoft Dynamics 365 server-side synchronization for incoming email. Contact your system administrator to set up server-side synchronization for incoming email."); ErrorMessages.Add(MailApp_ReadWriteAccessRequired, "You only have administrative access to Microsoft Dynamics 365. To use this app, you must have read-write access."); ErrorMessages.Add(MailApp_FeatureControlBitDisabled, "Access to the app hasn’t been enabled for this Dynamics 365 organization. Contact your system administrator to enable access to this app."); ErrorMessages.Add(MailApp_PermissionToUseCrmForOfficeAppsRequired, "You don’t have permission to access this app. Contact your system administrator to add the \"Use Dynamics 365 for Office Apps\" privilege to your user role."); ErrorMessages.Add(MailApp_TrackingIsNotSupported, "This version of Outlook doesn't support tracking new emails."); ErrorMessages.Add(MailApp_MobileBrowserIsNotSupported, "The mobile browser version of Outlook is currently unsupported. Please try again from the Outlook desktop application."); ErrorMessages.Add(MailApp_DifferentSecurityZoneError, "Try adding the following URLs to your Trusted Sites:{0} {1} {2}"); ErrorMessages.Add(MailApp_EmailAddressMismatch, "It looks like you're trying to access the CRM App for Outlook from an email address that we don't recognize. Either sign out and sign in with the email address you use for Dynamics CRM or have your system administrator update your email Mailbox settings to reflect this email address."); ErrorMessages.Add(MailApp_UserMailboxInactive, "We can't open the app because the user's mailbox is inactive."); ErrorMessages.Add(MailApp_MailboxNotConfiguredWithServerSideSyncForACT, "We’re unable to load this app because your email mailbox isn't configured with Microsoft Dynamics 365 server-side synchronization for appointments. Contact your system administrator to set up server-side synchronization for appointments."); ErrorMessages.Add(MailApp_AppointmentFeatureNotEnabled, "Access to the app hasn’t been enabled for Appointments for this Microsoft Dynamics 365 organization. Contact your system administrator to enable access for appointments."); ErrorMessages.Add(MailApp_PermissionsToReadContactRequired, "We can't check to see if the recipients are in Dynamics 365 because you don't have sufficient privileges."); ErrorMessages.Add(UnsupportedImportComponent, "Sorry, your import failed because the {0} component isn’t supported for import and export."); ErrorMessages.Add(InvalidLocaleIdForKnowledgeArticle, "Language with Locale ID {0}, does not exist"); ErrorMessages.Add(PublishArticle_TranslationWithMoreThanOneApprovedVersion, "There is more than one approved version of the {0} language. You can only publish one version of each language."); ErrorMessages.Add(TranslateArticle_OnlyPrimaryArticlesCanBeTranslated, "This article is a translation of the original article. It cannot be translated again. If you want another translation, start with the original article rather than this one."); ErrorMessages.Add(TranslateArticle_TranslationCanNotBeCreatedForTheSameLanguage, "A translation for this language already exists for this version of the article"); ErrorMessages.Add(ColorStripAttributesExceeded, "Color Strip section cannot have more than 1 attribute"); ErrorMessages.Add(AttributesExceeded, "Attributes cannot be more than 4"); ErrorMessages.Add(ColorStripAttributesInvalid, "Color Strip section can only have attributes of type Two Options, Option Set and Status Reason"); ErrorMessages.Add(InvalidClassIdInReferencePanelSection, "Reference Panel section can have only sub-grid, quick view form, knowledge base search, i-frame and HTML web resource controls. Found control with invalid classid {0}."); ErrorMessages.Add(InvalidNumberOfReferencePanelSections, "MainInteractionCentric form can have only 1 reference panel section. Found {0}."); ErrorMessages.Add(InvalidNumberOfCardFormSections, "Number of sections in a card form must be 4. Found {0}."); ErrorMessages.Add(EmptyCommandOrEntity, "Command or entity name cannot be empty."); ErrorMessages.Add(CommandNotSupported, "Command is not supported in offline mode."); ErrorMessages.Add(OperationFailedTryAgain, "Operation could not be performed at the moment. Please try again."); ErrorMessages.Add(NoUserPrivilege, "You do not have sufficient permissions."); ErrorMessages.Add(XamlNotFound, "This feature is not available in offline mode."); ErrorMessages.Add(CustomControlsImportError, "An error occurred while importing Custom Controls. Try importing this solution again."); ErrorMessages.Add(ManifestXsdValidationError, "The import manifest file is invalid. XSD validation failed with the following error: '{0}'.\""); ErrorMessages.Add(CustomControlsDependentPropertyConfiguration, "Property \"{0}\" can only be configured after property \"{1}\" has been assigned a value."); ErrorMessages.Add(CustomControlsPropertySetConfiguration, "Property \"{0}\" can only be configured after Corresponding DataSet \"{1}\" view has been assigned a value."); ErrorMessages.Add(ProductRecommendationsFeatureNotEnabled, "Product Recommendations feature is not enabled."); ErrorMessages.Add(RecommendationModelActiveVersionNotSet, "The model version used is empty. To activate the model, specify the model version."); ErrorMessages.Add(RecommendationModelActiveVersionInvalidStatus, "The model version used must be successfully built before the model can be activated."); ErrorMessages.Add(AzureRecommendationModelNotExist, "The Azure recommendation model doesn’t exist."); ErrorMessages.Add(AzureRecommendationModelBuildNotExist, "The Azure recommendation model build corresponding to the used model version doesn’t exist."); ErrorMessages.Add(RecommendationsUnavailable, "Azure Machine Learning product recommendations are temporarily unavailable. Only catalog recommendations are available."); ErrorMessages.Add(RecommendationModelBuildConnectionMustBeActive, "The Azure Machine Learning recommendation service connection must be activated before building a recommendation model. Please activate the recommendation service connection and try again."); ErrorMessages.Add(RecommendationModelActivateConnectionMustBeActive, "The Azure Machine Learning recommendation service connection must be activated before the model can be activated. Please activate the recommendation service connection and try again."); ErrorMessages.Add(RecommendationModelExpired, "The recommendation model has expired. Change the Valid Until date and try to activate the model again."); ErrorMessages.Add(RecommendationModelMappingDuplicateRecord, "The recommendation model mapping values for entity, mapping type and version must be unique."); ErrorMessages.Add(RecommendationModelMappingReadOnly, "You can't modify a Recommendation entity if it has a corresponding Basket entity."); ErrorMessages.Add(CannotDeleteDueToBasketEntityAssociation, "You can't delete a Recommendation entity if it has a corresponding Basket entity."); ErrorMessages.Add(RecommendationModelVersionActive, "The RecommendationModel Version is selected as the active version on a model and cannot be deleted."); ErrorMessages.Add(RecommendationModelVersionBuildInProgress, "A workflow to build a model is already in progress. You can't start another build workflow until the current workflow has finished."); ErrorMessages.Add(RecommendationModelVersionDuplicateName, "A model version with the same name already exists. Specify a different name."); ErrorMessages.Add(AzureServiceConnectionInvalidUri, "Provide a valid service URL."); ErrorMessages.Add(RecommendationAzureConnectionFailed, "Failed to connect to the Azure Recommendations service. Check that the service URL and the Azure account key are valid and the service subscription is active."); ErrorMessages.Add(TextAnalyticsAzureTestConnectionFailed, "Failed to connect to the Azure Text Analytics service. Check that the service URL and the Azure account key are valid and the service subscription is active."); ErrorMessages.Add(RecommendationAzureConnectionCascadeActivateFailed, "One or more recommendation models couldn't be activated. Try activating the existing recommendation models separately from the Azure service connection."); ErrorMessages.Add(TextAnalyticsAzureConnectionCascadeActivateFailed, "One or more text analytics models couldn't be activated. Try activating the existing text analytics models separately from the Azure service connection."); ErrorMessages.Add(AzureOperationResponseTimedOut, "An Azure operation request did not return a response within stated timeout period. Retry the operation or increase timeout provided for the operation."); ErrorMessages.Add(AzureServiceConnectionCascadeDeleteFailed, "One or more models use the connection. Delete all models using this connection, and try deleting the connection again."); ErrorMessages.Add(TextAnalyticsAzureConnectionFailed, "Unable to connect to Text Analytics API."); ErrorMessages.Add(TopicModelScheduleBuildSettingsEmpty, "Activation requires setting the build schedule. Specify the schedule build settings before activation."); ErrorMessages.Add(TextAnalyticsFeatureNotEnabled, "The Azure Text Analytics feature isn’t activated. The system administrator must activate this feature and set up the required configuration."); ErrorMessages.Add(TopicModelConfigurationUsedEmpty, "Activation requires specifying the build configuration. Specify the configuration used for the build before activation."); ErrorMessages.Add(TopicModelTestWithoutConfiguration, "Specify the configuration used for the build."); ErrorMessages.Add(TextAnalyticsAzureUnableToConnectWithBuild, "Dynamics 365 failed to connect with the Azure text analytics service. Verify that the service URI and account key are valid, and the Azure subscription is active."); ErrorMessages.Add(TopicModelActivateWithInvalidConfiguration, "The configuration used for the build is invalid. Topic determination fields are required for the configuration used for topic analysis."); ErrorMessages.Add(TextAnalyticsModelActivateConnectionMustBeActive, "The Azure Machine Learning Text Analytics service connection must be activated before the model can be activated. Please activate the text analytics service connection and try again."); ErrorMessages.Add(TextAnalyticsMappingUsedForActiveConfiguration, "This text analytics entity mapping is used for an active configuration. It can’t be modified or deleted while it is used by an active config."); ErrorMessages.Add(TopicModelConfigurationAssociatedModelAlreadyActive, "Cannot update or delete topic model configuration because it is associated with an active topic model."); ErrorMessages.Add(KnowledgeSearchActiveModelsAlreadyExist, "An active configuration already exists for source entity {0}. Only one active configuration is allowed per source entity."); ErrorMessages.Add(TextAnalyticsAPIActiveConfigurationDoesNotExist, "Active configuration does not exist for entity."); ErrorMessages.Add(TextAnalyticsAPIAllowedOnlyForEnglishLanguage, "Text Analytics feature is available for organizations with base language as English."); ErrorMessages.Add(TextAnalyticsAPIAzureUnableToConnectWithBuild, "Dynamics 365 failed to connect with the Azure text analytics service. Verify that the service URI and account key are valid, and the Azure subscription is active."); ErrorMessages.Add(TextAnalyticsAzureSchedulerError, "Dynamics 365 failed to connect with the Azure text analytics service. Please try again and if the problem persists contact your system administrator."); ErrorMessages.Add(TextAnalyticsMaxLimitForTopicModelReached, "Maximum number of topic models allowed for your organization has been reached."); ErrorMessages.Add(TextAnalyticsAPIActiveSimilarityConfigurationDoesNotExist, "No active similarity rule exists. The system administrator must set up a similarity rule configuration."); ErrorMessages.Add(AdvancedSimilarityAzureSearchUnexpectedError, "An unexpected error occurred executing the search. Try again later."); ErrorMessages.Add(TaskFlowNameIsNotUnique, "A task flow with the specified name already exists. Please specify a unique name."); ErrorMessages.Add(TaskFlowInvalidCharactersInName, "The name field can only contain alphanumeric characters."); ErrorMessages.Add(TaskFlowEmptyName, "The name field cannot be empty. Please enter a name."); ErrorMessages.Add(TaskFlowFormXmlNotFound, "Could not find the system form {0} for Task flow {1}."); ErrorMessages.Add(TaskFlowPageMissingFormXmlTab, "Could not find the pages {0} for Task flow {1}."); ErrorMessages.Add(TaskFlowUnsupportedEntities, "The following entities are not enabled for Task flows: {0}."); ErrorMessages.Add(TaskFlowEntityRelationshipIsNotValid, "Invalid relationship type: {0}."); ErrorMessages.Add(TaskFlowEntityAttributeIsNotValid, "Invalid attribute type: {0}.{1}."); ErrorMessages.Add(TaskFlowMaxNumberPages, "The task flow has exceeded the maximum number of pages allowed ({0}). To continue, you need to remove some pages."); ErrorMessages.Add(TaskFlowMaxNumberControls, "The task flow has exceeded the maximum number of controls allowed ({0}). To continue, you need to remove some controls."); ErrorMessages.Add(TaskFlowNotFound, "A Task Flow which is trying to launch is not available on this device. You may not have permission to access it or it may not be available on your organization. Please contact your system administrator."); ErrorMessages.Add(TaskFlowNotValid, "Task flow definition is invalid."); ErrorMessages.Add(FeedbackFeatureNotEnabled, "Feedback feature is not enabled."); ErrorMessages.Add(FeedbackMinMaxRequired, "The minimum and maximum values are required."); ErrorMessages.Add(FeedbackRatingValue, "The rating must be a value from {0} through {1}."); ErrorMessages.Add(FeedbackMinRatingValue, "The submitted minimum rating value {0} must be less than the submitted maximum rating value {1}."); ErrorMessages.Add(DelveActionHubDisabledError, "Delve action hub feature is not enabled."); ErrorMessages.Add(ErrorGeneratingActionHub, "An error has occurred. Please try again later."); ErrorMessages.Add(DelveActionHubAttributeMissingInResponseException, "Attribute not present in exchange oData response."); ErrorMessages.Add(DelveActionHubInvalidStateCodeException, "Invalid state code passed in expression."); ErrorMessages.Add(DelveActionHubInvalidResponseFormatException, "Invalid response format."); ErrorMessages.Add(DelveActionHubResponseRetievalFailureException, "Error while fetching actions from Exchange."); ErrorMessages.Add(EvoStsAuthorizationServerRecordCreationFailureException, "Database operation failed while creating authorization record for Evo STS."); ErrorMessages.Add(DelveActionHubAuthorizationFailureException, "You don’t have the proper Office 365 license to view actions. Please contact your system administrator."); ErrorMessages.Add(DelveActionHubS2SSetupFailureException, "Server to Server Authentication with Exchange for Delve Action Hub is not set up."); ErrorMessages.Add(ActionCardDisabledError, "Action Card feature is not enabled."); ErrorMessages.Add(ExchangeCardAttributeMissingInResponseException, "Attribute not present in exchange oData response."); ErrorMessages.Add(ActionCardInvalidStateCodeException, "Invalid state code passed in expression."); ErrorMessages.Add(ExchangeCardInvalidResponseFormatException, "Invalid response format."); ErrorMessages.Add(ExchangeCardS2SSetupFailureException, "Server to Server Authentication with Exchange for Action Card is not set up."); ErrorMessages.Add(DocumentManagementIsDisabledOnEntity, "You must enable document management for this Entity in order to enable Document Recommendations."); ErrorMessages.Add(RegardingObjectValuesRetrievalFailure, "Failed to retrieve regarding object values."); ErrorMessages.Add(RelatedRecordsFailure, "Failed to retrieve related records."); ErrorMessages.Add(SharePointSiteNotConfigured, "SharePointSite is not configured, it need to be configured."); ErrorMessages.Add(RecommendedDocumentsRetrievalFailure, "Unable to retrieve document suggestions from the document source."); ErrorMessages.Add(SimilarityRuleDisabled, "No similarity rule active for this entity."); ErrorMessages.Add(SharePointS2SIsDisabled, "SharePoint server-based SharePoint integration not enabled."); ErrorMessages.Add(SimilarityRuleFCBOff, "Similarity rules not enabled."); ErrorMessages.Add(DocumentRecommendationsFCBOff, "The document suggestions feature is not enabled."); ErrorMessages.Add(MaxProductsAllowed, "You cannot create more than {0} products."); ErrorMessages.Add(NoFilesSelected, "No documents are selected to copy. Please select a document and try again."); ErrorMessages.Add(DestinationFolderNotExists, "Unable to copy the documents. The destination document location no longer exists."); ErrorMessages.Add(NoWritePermission, "You do not have Write permissions to copy the documents."); ErrorMessages.Add(ConnectionTimeOut, "Unable to copy the documents because the network connection timed out. Please try again later or contact your system administrator."); ErrorMessages.Add(SelectedFileNotFound, "Unable to copy the documents. The source file no longer exists."); ErrorMessages.Add(FileSizeExceeded, "Unable to copy the documents. The selected file exceeds the maximium size limit of 128 MB."); ErrorMessages.Add(CopyGenericError, "An error has occurred while copying files. Please try again later. If the problem persists, contact your system administrator."); ErrorMessages.Add(RecommendedDocumentsRetrievalFailureWhenSPSiteNotConfigured, "Unable to retrieve document suggestions from the document source."); ErrorMessages.Add(PluginSecureStoreKeyVaultClient, "Unable to initialize KeyVaultClientProvider under Sandbox WorkerProcess"); ErrorMessages.Add(PluginSecureStoreKeyVaultClientGetSecret, "Unable to GetSecret from KeyVault"); ErrorMessages.Add(PluginSecureStoreKeyVaultClientSetSecret, "Unable to SetSecret to KeyVault"); ErrorMessages.Add(PluginSecureStoreKeyVaultClientDecrypt, "Unable to Decrypt using KeyVault"); ErrorMessages.Add(PluginSecureStoreKeyVaultClientEncrypt, "Unable to Encrypt using KeyVault"); ErrorMessages.Add(PluginSecureStoreAdalAcquireToken, "Unable to AcquireToken for resource"); ErrorMessages.Add(PluginSecureStoreTPSKeyVaultUnconfigured, "KeyVaultURI was not configured for an Assembly in TPS"); ErrorMessages.Add(PluginSecureStoreTPSAssemblyNotRegistered, "Assembly is not registered in TPS"); ErrorMessages.Add(PluginSecureStoreS2SMissing, "S2S Credentials missing"); ErrorMessages.Add(PluginSecureStoreTPSClient, "Unable to create TPS Client"); ErrorMessages.Add(PluginSecureStoreLocalConfigStoreGetData, "Unable to get data from LocalConfigStore"); ErrorMessages.Add(PluginSecureStoreLocalConfigStoreSetData, "Unable to set data to LocalConfigStore"); ErrorMessages.Add(PluginSecureStoreKeyVaultServiceProviderGetData, "Missing AppId / Secrets in KeyVault"); ErrorMessages.Add(PluginSecureStoreKeyVaultServiceCertFormat, "Certificate not stored as a Base64String in KeyVault"); ErrorMessages.Add(PluginSecureStoreNoFullySigned, "Assembly not fully signed"); ErrorMessages.Add(InvalidProcessIdOperation, "Invalid operation. Process ID cannot be modified."); ErrorMessages.Add(InvalidChangeProcess, "Invalid change process status request. Current process status is {0}, which cannot transition to {1}."); ErrorMessages.Add(InvalidStageTransition, "Invalid stage transition. Transition to stage {0} is not in the process active path."); ErrorMessages.Add(InvalidCrossEntityOperation, "Invalid cross-entity stage transition. Target entity must be specified."); ErrorMessages.Add(InvalidCrossEntityTargetOperation, "Invalid cross-entity stage transition. Specified target must match {0}."); ErrorMessages.Add(CrossEntityRelationshipInvalidOperation, "Invalid cross-entity stage transition. Specified relationship cannot be modified."); ErrorMessages.Add(InvalidTraversedPath, "Invalid traversed path."); ErrorMessages.Add(AutoDataCaptureDisabledError, "Auto capture feature is not enabled."); ErrorMessages.Add(AutoDataCaptureAuthorizationFailureException, "You don’t have the proper Office 365 license to get untracked emails. Please contact your system administrator."); ErrorMessages.Add(AutoDataCaptureResponseRetrievalFailureException, "Error while fetching untracked emails from Exchange."); ErrorMessages.Add(ProvisioningNotCompleted, "To enable auto capture, you need to set up Cortana Intelligence Customer Insights in Relationship Insights settings."); ErrorMessages.Add(PowerBICannotBeSystemDashboard, "A Power BI Dashboard cannot be a System Dashboard."); ErrorMessages.Add(PowerBIDashboardControlLimitation, "A Power BI Dashboard can only contain one control and that control must be a Power BI control."); ErrorMessages.Add(CannotUpdateEmailStatisticForEmailNotSent, "We can’t update email statistics because the email hasn’t been sent."); ErrorMessages.Add(CannotUpdateEmailStatisticForEmailNotFollowed, "We can’t update email statistics because the email isn’t being followed."); ErrorMessages.Add(EmailEngagementFeatureDisabled, "Please enable Email Engagement feature for current org to follow or unfollow email attachment."); ErrorMessages.Add(OneDriveForBusinessDisabled, "Following attachments requires OneDrive for Business. Please contact your administrator to enable OneDrive for Business in the organization."); ErrorMessages.Add(InvalidActivityMimeAttachmentId, "Invalid activityMimeAttachmentId."); ErrorMessages.Add(AttachmentNotRelatedToEmail, "This attachment does not belong to an email."); ErrorMessages.Add(EmailDoesNotExist, "Email does not exist for given attachment."); ErrorMessages.Add(EmailNotFollowed, "This attachment cannot be followed as its corresponding email is not followed."); ErrorMessages.Add(OneDriveForBusinessLocationNotFound, "No One Drive for Business active location found."); ErrorMessages.Add(DocumentManagementDisabledForEmail, "Document Management must be enabled on the Email entity in order to follow attachments. Please contact your administrator to enable Document Management."); ErrorMessages.Add(EmailMonitoringNotProvisioned, "RI provisioning service failed."); ErrorMessages.Add(EmailMonitoringProvisionFailed, "Email engagement feature provisioning failed"); ErrorMessages.Add(ErrorInFetchingEmailEngagementProvisioningStatus, "Error in fetching email engagement feature provisioning status."); ErrorMessages.Add(EmailMonitoringDeProvisionFailed, "Email engagement feature deprovisioning failed"); ErrorMessages.Add(EmailEngagementFeatureDisabledForAttachmentTracking, "Please enable Email Engagement feature for this organization to follow email attachments."); ErrorMessages.Add(SiteMapMissing, "You don’t have permissions for these records or something may be wrong with the site map. Contact your system administrator.If you are the administrator, you can go to the solutions page and import a different solution."); ErrorMessages.Add(CannotUpdateTemplateIdForEmailInNonDraftState, "We can’t update the template because the email has already been sent or is not in a Draft state."); ErrorMessages.Add(CannotUpdateEmailStatisticWhenEEFeatureNotEnabled, "We can’t update email statistics because Email Engagement isn’t turned on for the organization."); ErrorMessages.Add(InvalidTemplateId, "That’s not a valid template."); ErrorMessages.Add(CannotUpdateDelaySendTimeForEmailWhenEmailIsNotInProperState, "We can’t update the delay send time because the email is not a draft or isn’t scheduled to be sent."); ErrorMessages.Add(CannotUpdateDelaySendTimeWhenEEFeatureNotEnabled, "We can’t update the delay send time because Email Engagement isn’t turned on for the organization."); ErrorMessages.Add(EmailInteractionsFetchFailure, "Unable to fetch email interactions."); ErrorMessages.Add(EmailReminderActionCardCreationFailure, "We can’t create email reminder action card."); ErrorMessages.Add(EmailOpenActionCardCreationFailure, "We can’t create email open action card."); ErrorMessages.Add(EESiteDBFetchFailure, "Unable to fetch data from site DB."); ErrorMessages.Add(DesignerAccessDenied, "You do not have enough privileges to perform the requested operation. For more information, contact your administrator."); ErrorMessages.Add(DesignerInvalidParameter, "The {0} provided is incorrect or missing. Please try again with the correct {1}."); ErrorMessages.Add(ErrorTemplate, "{0}"); ErrorMessages.Add(InvalidAppModuleSiteMap, "The customized site map for this app module could not be used because it is configured incorrectly. To resolve this issue, navigate to the full experience to repair the customized site map and import it again."); ErrorMessages.Add(InvalidMultipleSiteMapReferenceSingleAppModule, "An app can’t have multiple site maps."); ErrorMessages.Add(InvalidAppModuleComponentType, "An app can’t reference the component type “{0}”."); ErrorMessages.Add(InvalidAppModuleComponent, "The ID {0} doesn’t exist or isn’t valid for the component type “{1}”."); ErrorMessages.Add(CannotPublishAppModule, "We can’t publish the app because it has validation errors."); ErrorMessages.Add(AppModuleComponentEntityMustHaveFormOrView, "The entity “{0}” must have at least one form or view in the app."); ErrorMessages.Add(InvalidAppModuleId, "The app ID is invalid or you don’t have access to the app."); ErrorMessages.Add(AppModuleFeatureNotEnabled, "The feature isn’t turned on for this organization."); ErrorMessages.Add(AppModuleNotContainMOCAEnabledEntity, "App Module with MOCA as a supported client should have at least one MOCA enabled entity"); ErrorMessages.Add(CannotUpdateAppModuleUniqueName, "You can’t change the unique name ."); ErrorMessages.Add(InvalidAppModuleUrl, "The app URL is not unique or the format is invalid."); ErrorMessages.Add(NoAppModuleComponentReferred, "No component is referenced"); ErrorMessages.Add(NoSiteMapReferenceInAppModule, "App Module does not contain Site Map"); ErrorMessages.Add(AppModuleNotReferEntity, "App Module does not reference at least one entity"); ErrorMessages.Add(InvalidAppModuleUniqueName, "The unique name exceeds the maximum length of 40 characters or contains invalid characters. Only letters and numbers are allowed."); ErrorMessages.Add(DuplicateAppModuleUniqueName, "The name you entered is already in use."); ErrorMessages.Add(MultipleSitemapsFound, "Found {0} unpublished site maps but expected only 1"); ErrorMessages.Add(RefferedSolutionIsDifferent, "Found unpublished row outside of active solution: SiteMapId = {0}, SolutionId = {1}"); ErrorMessages.Add(AppModulesImportError, "An error occurred while importing App Modules"); ErrorMessages.Add(InvalidAppModuleClientType, "The client type value passed is incorrect and not in the valid range."); ErrorMessages.Add(AppModuleWithClientExists, "Couldn’t create the app. There’s already an app for this client type."); ErrorMessages.Add(CannotUpdateAppModuleClientType, "Can’t change the client type of this app."); ErrorMessages.Add(CannotDeleteAppModuleClientType, "This app can’t be deleted."); ErrorMessages.Add(AppModuleMustHaveOnlyValidClientEntity, "The “{0}” entity isn’t valid for the chosen client, and won’t be shown at runtime."); ErrorMessages.Add(InvalidWebresourceId, "The webresource ID is invalid."); ErrorMessages.Add(InvalidWelcomePageId, "The welcome page ID is invalid."); ErrorMessages.Add(InvalidWebresourceType, "The web resource provided for the app icon is invalid."); ErrorMessages.Add(InvalidWelcomePageType, "The web resource provided for the app Welcome page is invalid."); ErrorMessages.Add(DiskSpaceNotEnough, "There is not enough space in the Temp Folder."); ErrorMessages.Add(ImportFileFailed, "Import and extraction of the file failed."); ErrorMessages.Add(WebhooksNonSuccessHttpResponse, "The webhook call failed because the http request received non-success httpStatus code. Please check your webhook request handler."); ErrorMessages.Add(WebhooksHttpRequestTimedOut, "The webhook call failed because the Http request timed out at client side. Please check your webhook request handler."); ErrorMessages.Add(WebhooksInvalidHttpHeaders, "The webhook call failed because of invalid http headers in authValue. Check if the authValue format, header names and values are valid for your Service Endpoint entity."); ErrorMessages.Add(WebhooksInvalidHttpQueryParams, "The webhook call failed because of invalid http query params in authValue. Check if the authValue format, query parameter names and values are valid for your Service Endpoint entity."); ErrorMessages.Add(WebhooksPostRequestFailed, "The webhook call failed during http post. Please check the exception for more details."); ErrorMessages.Add(WebhooksPostDisabled, "The Webhook post is disabled for the organization."); ErrorMessages.Add(WebhooksMaxSizeExceeded, "The webhook call failed because the http request payload has exceeded maximum allowed size. Please reduce your request size and retry."); ErrorMessages.Add(ServiceBusMaxSizeExceeded, "The service bus call failed because the request payload has exceeded maximum allowed size. Please reduce your request size and retry."); ErrorMessages.Add(AttributeTypeNotSupportedForCalculatedField, "Calculated/RollUp Field is not supported for MultiSelectPicklist Attribute Type."); ErrorMessages.Add(TooManySelectionsForAttributeType, "Number of selections for MultiSelectPicklist Attribute Type exceeded maximum limit: {0}."); ErrorMessages.Add(TooManyMultiSelectConditionParametersInQuery, "Number of multiselect condition parameters in query exceeded maximum limit: {0}."); ErrorMessages.Add(AttributeTypeNotSupportedForGroupByOrderByQuery, "GroupBy or OrderBy Query is not supported for MultiSelectPickList Attribute Type."); ErrorMessages.Add(AzureWebAppPluginsDisabled, "Azure WebApp based plugins disabled for the organization."); ErrorMessages.Add(TriggerFlowFailure, "An error has occurred when trying to run this flow."); ErrorMessages.Add(FlowMissingRecord, "You need to select at least one record to trigger this flow."); ErrorMessages.Add(VirtualEntityFailure, "Virtual Entity Operation Failed."); ErrorMessages.Add(InvalidAttributeDataType, "Attribute data type: {0} is not valid for this entity."); ErrorMessages.Add(InvalidAttributeFieldType, "Attribute field type: {0} is not valid for virtual entity."); ErrorMessages.Add(FieldLevelSecurityNotSupported, "Field level security is not supported for virtual entity."); ErrorMessages.Add(ExternalNameExists, "An entity with the specified name already exists for data source - {0}. Please specify a new external name."); ErrorMessages.Add(InvalidExternalName, "The specified External name is not valid."); ErrorMessages.Add(InvalidExternalCollectionName, "The specified External Collection name is not valid."); ErrorMessages.Add(EmptySecretInDataSource, "Data Source secrets are not included in solutions. You'll need to edit your data sources to add secrets back following solution import."); ErrorMessages.Add(SdkMessageNotImplemented, "Sdk message is not implemented."); ErrorMessages.Add(InvalidQueryForVirtualEntity, "The query specified is not supported for virtual entity."); ErrorMessages.Add(ManyToManyVirtualEntityNotSupported, "An N:N relationship between virtual entities is not supported."); ErrorMessages.Add(AppConfigFeatureNotEnabled, "In-App Customization App Configuration feature is not enabled."); ErrorMessages.Add(InvalidDataSourceEndPoint, "Invalid URI: A fully qualified URI without a query string must be provided."); ErrorMessages.Add(InvalidRequestParameter, "Both name and value should be specified for request parameter."); ErrorMessages.Add(ExchangeOptinNotEnabled, "Exchange optin is not enabled."); ErrorMessages.Add(MarsConnectorEnableFailure, "Error occurred while enabling Mars connector."); ErrorMessages.Add(MarsConnectorDisableFailure, "Error occurred while disabling Mars connector."); ErrorMessages.Add(GetTenantIdFailure, "Error occurred while getting TenantId."); ErrorMessages.Add(CannotAccessExchangeOptinStatus, "Exchange optin status is not accessible."); } public static String GetErrorMessage(int hResult) { String errorMessage = ErrorMessages[hResult] as String; if(string.IsNullOrEmpty(errorMessage)) { errorMessage = "Server was unable to process request."; } return errorMessage; } public static ErrorType GetErrorType(int errorCode) { if(ErrorTypes[errorCode] == null) { return ErrorType.SystemFailure; } else { ErrorType errorType = (ErrorType) ErrorTypes[errorCode]; return errorType; } } public const int LowerVersionUpgrade = unchecked((int)0x80048541); // -2147187391 public const int PatchMissingBase = unchecked((int)0x80048540); // -2147187392 public const int SubcomponentDoesNotExist = unchecked((int)0x80048537); // -2147187401 public const int SubcomponentMissingARoot = unchecked((int)0x80048536); // -2147187402 public const int CannotModifyPatchedSolution = unchecked((int)0x80048538); // -2147187400 public const int CloneSolutionException = unchecked((int)0x80048539); // -2147187399 public const int CloneSolutionPatchException = unchecked((int)0x80061771); // -2147084431 public const int QuickFindSavedQueryAlreadyExists = unchecked((int)0x8004853a); // -2147187398 public const int SolutionUpgradeNotAvailable = unchecked((int)0x8004853b); // -2147187397 public const int SolutionUpgradeWrongSolutionSelected = unchecked((int)0x8004853c); // -2147187396 public const int CustomImageAttributeOnlyAllowedOnCustomEntity = unchecked((int)0x80048531); // -2147187407 public const int SqlEncryptionSymmetricKeyCannotOpenBecauseWrongPassword = unchecked((int)0x80048530); // -2147187408 public const int SqlEncryptionSymmetricKeyDoesNotExistOrNoPermission = unchecked((int)0x8004852f); // -2147187409 public const int SqlEncryptionSymmetricKeyPasswordDoesNotExistInConfigDB = unchecked((int)0x8004852e); // -2147187410 public const int SqlEncryptionSymmetricKeySourceDoesNotExistInConfigDB = unchecked((int)0x8004852d); // -2147187411 public const int CannotExecuteRequestBecauseHttpsIsRequired = unchecked((int)0x8004852c); // -2147187412 public const int SqlEncryptionRestoreEncryptionKeyCannotDecryptExistingData = unchecked((int)0x8004852b); // -2147187413 public const int SqlEncryptionSetEncryptionKeyIsAlreadyRunningCannotRunItInParallel = unchecked((int)0x8004852a); // -2147187414 public const int SqlEncryptionChangeEncryptionKeyExceededQuotaForTheInterval = unchecked((int)0x80048529); // -2147187415 public const int SqlEncryptionEncryptionKeyValidationError = unchecked((int)0x80048528); // -2147187416 public const int SqlEncryptionIsInactiveCannotChangeEncryptionKey = unchecked((int)0x80048527); // -2147187417 public const int SqlEncryptionDeleteEncryptionKeyError = unchecked((int)0x80048526); // -2147187418 public const int SqlEncryptionIsActiveCannotRestoreEncryptionKey = unchecked((int)0x80048525); // -2147187419 public const int SqlEncryptionKeyCannotDecryptExistingData = unchecked((int)0x80048524); // -2147187420 public const int SqlEncryptionEncryptionDecryptionTestError = unchecked((int)0x80048523); // -2147187421 public const int SqlEncryptionDeleteSymmetricKeyError = unchecked((int)0x80048522); // -2147187422 public const int SqlEncryptionCreateSymmetricKeyError = unchecked((int)0x80048521); // -2147187423 public const int SqlEncryptionSymmetricKeyDoesNotExist = unchecked((int)0x80048520); // -2147187424 public const int SqlEncryptionDeleteCertificateError = unchecked((int)0x8004851f); // -2147187425 public const int SqlEncryptionCreateCertificateError = unchecked((int)0x8004851e); // -2147187426 public const int SqlEncryptionCertificateDoesNotExist = unchecked((int)0x8004851d); // -2147187427 public const int SqlEncryptionDeleteDatabaseMasterKeyError = unchecked((int)0x8004851c); // -2147187428 public const int SqlEncryptionCreateDatabaseMasterKeyError = unchecked((int)0x8004851b); // -2147187429 public const int SqlEncryptionCannotOpenSymmetricKeyBecauseDatabaseMasterKeyDoesNotExistOrIsNotOpened = unchecked((int)0x8004851a); // -2147187430 public const int SqlEncryptionDatabaseMasterKeyDoesNotExist = unchecked((int)0x80048519); // -2147187431 public const int SqlEncryption = unchecked((int)0x80048518); // -2147187432 public const int ErrorsInSlaWorkflowActivation = unchecked((int)0x80048535); // -2147187403 public const int ManifestParsingFailure = unchecked((int)0x80048534); // -2147187404 public const int InvalidManifestFilePath = unchecked((int)0x80048533); // -2147187405 public const int OnPremiseRestoreOrganizationManifestFailed = unchecked((int)0x80048532); // -2147187406 public const int InvalidAuth = unchecked((int)0x80048516); // -2147187434 public const int CannotUpdateOrgDBOrgSettingWhenOffline = unchecked((int)0x80048515); // -2147187435 public const int InvalidOrgDBOrgSetting = unchecked((int)0x80048514); // -2147187436 public const int UnknownInvalidTransformationParameterGeneric = unchecked((int)0x80048513); // -2147187437 public const int InvalidTransformationParameterOutsideRangeGeneric = unchecked((int)0x80048512); // -2147187438 public const int InvalidTransformationParameterEmptyCollection = unchecked((int)0x80048511); // -2147187439 public const int InvalidTransformationParameterOutsideRange = unchecked((int)0x80048510); // -2147187440 public const int InvalidTransformationParameterZeroToRange = unchecked((int)0x80048509); // -2147187447 public const int InvalidTransformationParameterString = unchecked((int)0x80048508); // -2147187448 public const int InvalidTransformationParametersGeneric = unchecked((int)0x80048507); // -2147187449 public const int InsufficientTransformationParameters = unchecked((int)0x80048506); // -2147187450 public const int MaximumNumberHandlersExceeded = unchecked((int)0x80048505); // -2147187451 public const int ErrorInUnzipAlternate = unchecked((int)0x80048503); // -2147187453 public const int IncorrectSingleFileMultipleEntityMap = unchecked((int)0x80048502); // -2147187454 public const int ActivityEntityCannotBeActivityParty = unchecked((int)0x80048501); // -2147187455 public const int TargetAttributeInvalidForIgnore = unchecked((int)0x80048500); // -2147187456 public const int MaxUnzipFolderSizeExceeded = unchecked((int)0x80048499); // -2147187559 public const int InvalidMultipleMapping = unchecked((int)0x80048498); // -2147187560 public const int ErrorInStoringImportFile = unchecked((int)0x80048497); // -2147187561 public const int UnzipTimeout = unchecked((int)0x80048496); // -2147187562 public const int UnsupportedZipFileForImport = unchecked((int)0x80048495); // -2147187563 public const int UnzipProcessCountLimitReached = unchecked((int)0x80048494); // -2147187564 public const int AttachmentNotFound = unchecked((int)0x80048493); // -2147187565 public const int TooManyPicklistValues = unchecked((int)0x80048492); // -2147187566 public const int VeryLargeFileInZipImport = unchecked((int)0x80048491); // -2147187567 public const int InvalidAttachmentsFolder = unchecked((int)0x80048490); // -2147187568 public const int ZipInsideZip = unchecked((int)0x80048489); // -2147187575 public const int InvalidZipFileFormat = unchecked((int)0x80048488); // -2147187576 public const int EmptyFileForImport = unchecked((int)0x80048487); // -2147187577 public const int EmptyFilesInZip = unchecked((int)0x80048486); // -2147187578 public const int ZipFileHasMixOfCsvAndXmlFiles = unchecked((int)0x80048485); // -2147187579 public const int DuplicateFileNamesInZip = unchecked((int)0x80048484); // -2147187580 public const int ErrorInUnzip = unchecked((int)0x80048483); // -2147187581 public const int InvalidZipFileForImport = unchecked((int)0x80048482); // -2147187582 public const int InvalidLookupMapNode = unchecked((int)0x80048481); // -2147187583 public const int ImportMailMergeTemplateEntityMissingError = unchecked((int)0x80048480); // -2147187584 public const int CannotUpdateOpportunityCurrency = unchecked((int)0x80048479); // -2147187591 public const int ParentRecordAlreadyExists = unchecked((int)0x80048478); // -2147187592 public const int MissingWebToLeadRedirect = unchecked((int)0x80048477); // -2147187593 public const int InvalidWebToLeadRedirect = unchecked((int)0x80048476); // -2147187594 public const int TemplateNotAllowedForInternetMarketing = unchecked((int)0x80048475); // -2147187595 public const int CopyNotAllowedForInternetMarketing = unchecked((int)0x80048474); // -2147187596 public const int MissingOrInvalidRedirectId = unchecked((int)0x80048473); // -2147187597 public const int ImportNotComplete = unchecked((int)0x80048472); // -2147187598 public const int UIDataMissingInWorkflow = unchecked((int)0x80048471); // -2147187599 public const int RefEntityRelationshipRoleRequired = unchecked((int)0x80048470); // -2147187600 public const int ImportTemplateLanguageIgnored = unchecked((int)0x8004847a); // -2147187590 public const int ImportTemplatePersonalIgnored = unchecked((int)0x8004847b); // -2147187589 public const int ImportComponentDeletedIgnored = unchecked((int)0x8004847c); // -2147187588 public const int CustomerRelationshipCannotBeDeleted = unchecked((int)0x8004847d); // -2147187587 public const int RelationshipRoleNodeNumberInvalid = unchecked((int)0x80048469); // -2147187607 public const int AssociationRoleOrdinalInvalid = unchecked((int)0x80048468); // -2147187608 public const int RelationshipRoleMismatch = unchecked((int)0x80048467); // -2147187609 public const int ImportMapInUse = unchecked((int)0x80048465); // -2147187611 public const int PreviousOperationNotComplete = unchecked((int)0x80048464); // -2147187612 public const int TransformationResumeNotSupported = unchecked((int)0x80048463); // -2147187613 public const int CannotDisableDuplicateDetection = unchecked((int)0x80048462); // -2147187614 public const int TargetEntityNotMapped = unchecked((int)0x80048460); // -2147187616 public const int BulkDeleteChildFailure = unchecked((int)0x80048459); // -2147187623 public const int CannotRemoveNonListMember = unchecked((int)0x80048458); // -2147187624 public const int JobNameIsEmptyOrNull = unchecked((int)0x80048457); // -2147187625 public const int ImportMailMergeTemplateError = unchecked((int)0x80048456); // -2147187626 public const int ErrorsInWorkflowDefinition = unchecked((int)0x80048455); // -2147187627 public const int DistributeNoListAssociated = unchecked((int)0x80048454); // -2147187628 public const int DistributeListAssociatedVary = unchecked((int)0x80048453); // -2147187629 public const int OfflineFilterParentDownloaded = unchecked((int)0x80048451); // -2147187631 public const int OfflineFilterNestedDateTimeOR = unchecked((int)0x80048450); // -2147187632 public const int DuplicateOfflineFilter = unchecked((int)0x80048449); // -2147187639 public const int CannotAssignAddressBookFilters = unchecked((int)0x80048448); // -2147187640 public const int CannotCreateAddressBookFilters = unchecked((int)0x80048447); // -2147187641 public const int CannotGrantAccessToAddressBookFilters = unchecked((int)0x80048446); // -2147187642 public const int CannotModifyAccessToAddressBookFilters = unchecked((int)0x80048445); // -2147187643 public const int CannotRevokeAccessToAddressBookFilters = unchecked((int)0x80048444); // -2147187644 public const int DuplicateMapName = unchecked((int)0x80048443); // -2147187645 public const int InvalidWordXmlFile = unchecked((int)0x80048441); // -2147187647 public const int FileNotFound = unchecked((int)0x80048440); // -2147187648 public const int MultipleFilesFound = unchecked((int)0x80048439); // -2147187655 public const int InvalidAttributeMapping = unchecked((int)0x80048438); // -2147187656 public const int FileReadError = unchecked((int)0x80048437); // -2147187657 public const int ViewForDuplicateDetectionNotDefined = unchecked((int)0x80048838); // -2147186632 public const int FileInUse = unchecked((int)0x80048837); // -2147186633 public const int NoPublishedDuplicateDetectionRules = unchecked((int)0x80048436); // -2147187658 public const int NoEntitiesForBulkDelete = unchecked((int)0x80048442); // -2147187646 public const int BulkDeleteRecordDeletionFailure = unchecked((int)0x80048435); // -2147187659 public const int RuleAlreadyPublishing = unchecked((int)0x80048434); // -2147187660 public const int RuleNotFound = unchecked((int)0x80048433); // -2147187661 public const int CannotDeleteSystemEmailTemplate = unchecked((int)0x80048432); // -2147187662 public const int EntityDupCheckNotSupportedSystemWide = unchecked((int)0x80048431); // -2147187663 public const int DuplicateDetectionNotSupportedOnAttributeType = unchecked((int)0x80048430); // -2147187664 public const int MaxMatchCodeLengthExceeded = unchecked((int)0x80048429); // -2147187671 public const int CannotDeleteUpdateInUseRule = unchecked((int)0x80048428); // -2147187672 public const int ImportMappingsInvalidIdSpecified = unchecked((int)0x80048427); // -2147187673 public const int NotAWellFormedXml = unchecked((int)0x80048426); // -2147187674 public const int NoncompliantXml = unchecked((int)0x80048425); // -2147187675 public const int DuplicateDetectionTemplateNotFound = unchecked((int)0x80048424); // -2147187676 public const int RulesInInconsistentStateFound = unchecked((int)0x80048423); // -2147187677 public const int BulkDetectInvalidEmailRecipient = unchecked((int)0x80048422); // -2147187678 public const int CannotEnableDuplicateDetection = unchecked((int)0x80048421); // -2147187679 public const int CannotDeleteInUseEntity = unchecked((int)0x80048420); // -2147187680 public const int StringAttributeIndexError = unchecked((int)0x8004d292); // -2147167598 public const int CannotChangeAttributeRequiredLevel = unchecked((int)0x8004d293); // -2147167597 public const int MaximumNumberOfAttributesForEntityReached = unchecked((int)0x8004841a); // -2147187686 public const int CannotPublishMoreRules = unchecked((int)0x80048419); // -2147187687 public const int CannotDeleteInUseAttribute = unchecked((int)0x80048418); // -2147187688 public const int CannotDeleteInUseOptionSet = unchecked((int)0x80048417); // -2147187689 public const int InvalidEntityName = unchecked((int)0x80048416); // -2147187690 public const int InvalidOperatorCode = unchecked((int)0x80048415); // -2147187691 public const int CannotPublishEmptyRule = unchecked((int)0x80048414); // -2147187692 public const int CannotPublishInactiveRule = unchecked((int)0x80048413); // -2147187693 public const int DuplicateCheckNotEnabled = unchecked((int)0x80048412); // -2147187694 public const int DuplicateCheckNotSupportedOnEntity = unchecked((int)0x80048410); // -2147187696 public const int InvalidStateCodeStatusCode = unchecked((int)0x80048408); // -2147187704 public const int SyncToMsdeFailure = unchecked((int)0x80048407); // -2147187705 public const int FormDoesNotExist = unchecked((int)0x80048406); // -2147187706 public const int AccessDenied = unchecked((int)0x80048405); // -2147187707 public const int CannotDeleteOptionSet = unchecked((int)0x80048404); // -2147187708 public const int InvalidOptionSetOperation = unchecked((int)0x80048403); // -2147187709 public const int OptionValuePrefixOutOfRange = unchecked((int)0x80048402); // -2147187710 public const int CheckPrivilegeGroupForUserOnPremiseError = unchecked((int)0x80048401); // -2147187711 public const int CheckPrivilegeGroupForUserOnSplaError = unchecked((int)0x80048400); // -2147187712 public const int unManagedIdsAccessDenied = unchecked((int)0x80048306); // -2147187962 public const int EntityIsIntersect = unchecked((int)0x8004830f); // -2147187953 public const int CannotDeleteTeamOwningRecords = unchecked((int)0x8004830e); // -2147187954 public const int CannotRemoveMembersFromDefaultTeam = unchecked((int)0x8004830c); // -2147187956 public const int CannotAddMembersToDefaultTeam = unchecked((int)0x8004830b); // -2147187957 public const int CannotUpdateNameDefaultTeam = unchecked((int)0x8004830a); // -2147187958 public const int CannotSetParentDefaultTeam = unchecked((int)0x80048308); // -2147187960 public const int CannotDeleteDefaultTeam = unchecked((int)0x80048307); // -2147187961 public const int TeamNameTooLong = unchecked((int)0x80048305); // -2147187963 public const int CannotAssignRolesOrProfilesToAccessTeam = unchecked((int)0x80048331); // -2147187919 public const int TooManyEntitiesEnabledForAutoCreatedAccessTeams = unchecked((int)0x80048332); // -2147187918 public const int TooManyTeamTemplatesForEntityAccessTeams = unchecked((int)0x80048333); // -2147187917 public const int EntityNotEnabledForAutoCreatedAccessTeams = unchecked((int)0x80048334); // -2147187916 public const int InvalidAccessMaskForTeamTemplate = unchecked((int)0x80048335); // -2147187915 public const int CannotChangeTeamTypeDueToRoleOrProfile = unchecked((int)0x80048336); // -2147187914 public const int CannotChangeTeamTypeDueToOwnership = unchecked((int)0x80048337); // -2147187913 public const int CannotDisableAutoCreateAccessTeams = unchecked((int)0x80048338); // -2147187912 public const int CannotShareSystemManagedTeam = unchecked((int)0x80048339); // -2147187911 public const int CannotAssignToAccessTeam = unchecked((int)0x80048340); // -2147187904 public const int DuplicateSalesTeamMember = unchecked((int)0x80048341); // -2147187903 public const int TargetUserInsufficientPrivileges = unchecked((int)0x80048342); // -2147187902 public const int CannotDisableOrDeletePositionDueToAssociatedUsers = unchecked((int)0x80048343); // -2147187901 public const int CannotCreateOrEnablePositionDueToParentPositionIsDisabled = unchecked((int)0x80048344); // -2147187900 public const int InvalidDomainName = unchecked((int)0x80048015); // -2147188715 public const int InvalidUserName = unchecked((int)0x80048095); // -2147188587 public const int BulkMailServiceNotAccessible = unchecked((int)0x80048304); // -2147187964 public const int RSMoveItemError = unchecked((int)0x80048330); // -2147187920 public const int ReportParentChildNotCustomizable = unchecked((int)0x8004832f); // -2147187921 public const int ConvertFetchDataSetError = unchecked((int)0x8004832e); // -2147187922 public const int ConvertReportToCrmError = unchecked((int)0x8004832d); // -2147187923 public const int ReportViewerError = unchecked((int)0x8004832c); // -2147187924 public const int RSGetItemTypeError = unchecked((int)0x8004832b); // -2147187925 public const int RSSetPropertiesError = unchecked((int)0x8004832a); // -2147187926 public const int RSReportParameterTypeMismatchError = unchecked((int)0x80048329); // -2147187927 public const int RSUpdateReportExecutionSnapshotError = unchecked((int)0x80048328); // -2147187928 public const int RSSetReportHistoryLimitError = unchecked((int)0x80048327); // -2147187929 public const int RSSetReportHistoryOptionsError = unchecked((int)0x80048326); // -2147187930 public const int RSSetExecutionOptionsError = unchecked((int)0x80048325); // -2147187931 public const int RSSetReportParametersError = unchecked((int)0x80048324); // -2147187932 public const int RSGetReportParametersError = unchecked((int)0x80048323); // -2147187933 public const int RSSetItemDataSourcesError = unchecked((int)0x80048322); // -2147187934 public const int RSGetItemDataSourcesError = unchecked((int)0x80048321); // -2147187935 public const int RSCreateBatchError = unchecked((int)0x80048320); // -2147187936 public const int RSListReportHistoryError = unchecked((int)0x8004831f); // -2147187937 public const int RSGetReportHistoryLimitError = unchecked((int)0x8004831e); // -2147187938 public const int RSExecuteBatchError = unchecked((int)0x8004831d); // -2147187939 public const int RSCancelBatchError = unchecked((int)0x8004831c); // -2147187940 public const int RSListExtensionsError = unchecked((int)0x8004831b); // -2147187941 public const int RSGetDataSourceContentsError = unchecked((int)0x8004831a); // -2147187942 public const int RSSetDataSourceContentsError = unchecked((int)0x80048319); // -2147187943 public const int RSFindItemsError = unchecked((int)0x80048318); // -2147187944 public const int RSDeleteItemError = unchecked((int)0x80048317); // -2147187945 public const int ReportSecurityError = unchecked((int)0x80048316); // -2147187946 public const int ReportMissingReportSourceError = unchecked((int)0x80048315); // -2147187947 public const int ReportMissingParameterError = unchecked((int)0x80048314); // -2147187948 public const int ReportMissingEndpointError = unchecked((int)0x80048313); // -2147187949 public const int ReportMissingDataSourceError = unchecked((int)0x80048312); // -2147187950 public const int ReportMissingDataSourceCredentialsError = unchecked((int)0x80048311); // -2147187951 public const int ReportLocalProcessingError = unchecked((int)0x80048310); // -2147187952 public const int ReportServerSP2HotFixNotApplied = unchecked((int)0x80048309); // -2147187959 public const int DataSourceProhibited = unchecked((int)0x8004830d); // -2147187955 public const int ReportServerVersionLow = unchecked((int)0x80048303); // -2147187965 public const int ReportServerNoPrivilege = unchecked((int)0x80048302); // -2147187966 public const int ReportServerInvalidUrl = unchecked((int)0x80048301); // -2147187967 public const int ReportServerUnknownException = unchecked((int)0x80048300); // -2147187968 public const int ReportNotAvailable = unchecked((int)0x80048299); // -2147188071 public const int ErrorUploadingReport = unchecked((int)0x80048298); // -2147188072 public const int ReportFileTooBig = unchecked((int)0x80048297); // -2147188073 public const int ReportFileZeroLength = unchecked((int)0x80048296); // -2147188074 public const int ReportTypeBlocked = unchecked((int)0x80048295); // -2147188075 public const int ReportUploadDisabled = unchecked((int)0x80048294); // -2147188076 public const int ReportRdlSandboxing = unchecked((int)0x80048293); // -2147188077 public const int SrsDataConnectorNotInstalledUpload = unchecked((int)0x80048292); // -2147188078 public const int BothConnectionSidesAreNeeded = unchecked((int)0x80048218); // -2147188200 public const int CannotConnectToSelf = unchecked((int)0x80048217); // -2147188201 public const int UnrelatedConnectionRoles = unchecked((int)0x80048216); // -2147188202 public const int ConnectionRoleNotValidForObjectType = unchecked((int)0x80048215); // -2147188203 public const int ConnectionCannotBeEnabledOnThisEntity = unchecked((int)0x80048214); // -2147188204 public const int ConnectionNotSupported = unchecked((int)0x80048213); // -2147188205 public const int ConnectionObjectsMissing = unchecked((int)0x80048210); // -2147188208 public const int ConnectionInvalidStartEndDate = unchecked((int)0x80048209); // -2147188215 public const int ConnectionExists = unchecked((int)0x80048208); // -2147188216 public const int DecoupleUserOwnedEntity = unchecked((int)0x80048207); // -2147188217 public const int DecoupleChildEntity = unchecked((int)0x80048206); // -2147188218 public const int ExistingParentalRelationship = unchecked((int)0x80048205); // -2147188219 public const int InvalidCascadeLinkType = unchecked((int)0x80048204); // -2147188220 public const int InvalidDeleteModification = unchecked((int)0x80048203); // -2147188221 public const int CustomerOpportunityRoleExists = unchecked((int)0x80048202); // -2147188222 public const int CustomerRelationshipExists = unchecked((int)0x80048201); // -2147188223 public const int MultipleRelationshipsNotSupported = unchecked((int)0x80048200); // -2147188224 public const int ImportDuplicateEntity = unchecked((int)0x8004810c); // -2147188468 public const int CascadeProxyEmptyCallerId = unchecked((int)0x8004810b); // -2147188469 public const int CascadeProxyInvalidPrincipalType = unchecked((int)0x8004810a); // -2147188470 public const int CascadeProxyInvalidNativeDAPtr = unchecked((int)0x80048109); // -2147188471 public const int CascadeFailToCreateNativeDAWrapper = unchecked((int)0x80048108); // -2147188472 public const int CascadeReparentOnNonUserOwned = unchecked((int)0x80048107); // -2147188473 public const int CascadeMergeInvalidSpecialColumn = unchecked((int)0x80048106); // -2147188474 public const int CascadeRemoveLinkOnNonNullable = unchecked((int)0x80048104); // -2147188476 public const int CascadeDeleteNotAllowDelete = unchecked((int)0x80048103); // -2147188477 public const int CascadeInvalidLinkType = unchecked((int)0x80048102); // -2147188478 public const int IsvExtensionsPrivilegeNotPresent = unchecked((int)0x80048029); // -2147188695 public const int RelationshipNameLengthExceedsLimit = unchecked((int)0x8004802a); // -2147188694 public const int ImportEmailTemplateErrorMissingFile = unchecked((int)0x8004802b); // -2147188693 public const int CascadeInvalidExtraConditionValue = unchecked((int)0x80048101); // -2147188479 public const int ImportWorkflowNameConflictError = unchecked((int)0x80048027); // -2147188697 public const int ImportWorkflowPublishedError = unchecked((int)0x80048028); // -2147188696 public const int ImportWorkflowEntityDependencyError = unchecked((int)0x80048023); // -2147188701 public const int ImportWorkflowAttributeDependencyError = unchecked((int)0x80048022); // -2147188702 public const int ImportWorkflowError = unchecked((int)0x80048021); // -2147188703 public const int ImportGenericEntitiesError = unchecked((int)0x80048020); // -2147188704 public const int ImportRolePermissionError = unchecked((int)0x80048018); // -2147188712 public const int ImportRoleError = unchecked((int)0x80048017); // -2147188713 public const int ImportOrgSettingsError = unchecked((int)0x80048019); // -2147188711 public const int InvalidSharePointSiteCollectionUrl = unchecked((int)0x80048052); // -2147188654 public const int InvalidSiteRelativeUrlFormat = unchecked((int)0x80048053); // -2147188653 public const int InvalidRelativeUrlFormat = unchecked((int)0x80048054); // -2147188652 public const int InvalidAbsoluteUrlFormat = unchecked((int)0x80048055); // -2147188651 public const int InvalidUrlConsecutiveSlashes = unchecked((int)0x80048056); // -2147188650 public const int SharePointRecordWithDuplicateUrl = unchecked((int)0x80048057); // -2147188649 public const int SharePointAbsoluteAndRelativeUrlEmpty = unchecked((int)0x80048149); // -2147188407 public const int ImportOptionSetsError = unchecked((int)0x80048030); // -2147188688 public const int ImportRibbonsError = unchecked((int)0x80048031); // -2147188687 public const int ImportReportsError = unchecked((int)0x80048032); // -2147188686 public const int ImportSolutionError = unchecked((int)0x80048033); // -2147188685 public const int ImportDependencySolutionError = unchecked((int)0x80048034); // -2147188684 public const int ExportSolutionError = unchecked((int)0x80048035); // -2147188683 public const int ExportManagedSolutionError = unchecked((int)0x80048036); // -2147188682 public const int ExportMissingSolutionError = unchecked((int)0x80048037); // -2147188681 public const int ImportSolutionManagedError = unchecked((int)0x80048038); // -2147188680 public const int ImportOptionSetAttributeError = unchecked((int)0x80048039); // -2147188679 public const int ImportSolutionManagedToUnmanagedMismatch = unchecked((int)0x80048040); // -2147188672 public const int ImportSolutionUnmanagedToManagedMismatch = unchecked((int)0x80048041); // -2147188671 public const int ImportSolutionIsvConfigWarning = unchecked((int)0x80048042); // -2147188670 public const int ImportSolutionSiteMapWarning = unchecked((int)0x80048043); // -2147188669 public const int ImportSolutionOrganizationSettingsWarning = unchecked((int)0x80048044); // -2147188668 public const int ImportExportDeprecatedError = unchecked((int)0x80048045); // -2147188667 public const int ImportSystemSolutionError = unchecked((int)0x80048046); // -2147188666 public const int ImportTranslationMissingSolutionError = unchecked((int)0x80048047); // -2147188665 public const int ExportDefaultAsPackagedError = unchecked((int)0x80048048); // -2147188664 public const int ImportDefaultAsPackageError = unchecked((int)0x80048049); // -2147188663 public const int ImportCustomizationsBadZipFileError = unchecked((int)0x80048060); // -2147188640 public const int ImportTranslationsBadZipFileError = unchecked((int)0x80048061); // -2147188639 public const int ImportAttributeNameError = unchecked((int)0x80048062); // -2147188638 public const int ImportFieldSecurityProfileIsSecuredMissingError = unchecked((int)0x80048063); // -2147188637 public const int ImportFieldSecurityProfileAttributesMissingError = unchecked((int)0x80048064); // -2147188636 public const int ImportFileSignatureInvalid = unchecked((int)0x80048065); // -2147188635 public const int ImportSolutionPackageNotValid = unchecked((int)0x80048066); // -2147188634 public const int ImportSolutionPackageNeedsUpgrade = unchecked((int)0x80048067); // -2147188633 public const int ImportSolutionPackageInvalidSolutionPackageVersion = unchecked((int)0x80048068); // -2147188632 public const int ImportSolutionPackageMinimumVersionNeeded = unchecked((int)0x1); // 1 public const int ImportSolutionPackageRequiresOptInAvailable = unchecked((int)0x80048069); // -2147188631 public const int ImportSolutionPackageRequiresOptInNotAvailable = unchecked((int)0x8004806a); // -2147188630 public const int ImportSdkMessagesError = unchecked((int)0x80048016); // -2147188714 public const int ImportEmailTemplatePersonalError = unchecked((int)0x80048014); // -2147188716 public const int ImportNonWellFormedFileError = unchecked((int)0x80048013); // -2147188717 public const int ImportPluginTypesError = unchecked((int)0x80048012); // -2147188718 public const int ImportSiteMapError = unchecked((int)0x80048011); // -2147188719 public const int ImportNewPluginTypesError = unchecked((int)0x80048071); // -2147188623 public const int DefaultSiteMapDeleteFailure = unchecked((int)0x80048070); // -2147188624 public const int ImportMappingsMissingEntityMapError = unchecked((int)0x80048010); // -2147188720 public const int ImportMappingsSystemMapError = unchecked((int)0x8004800f); // -2147188721 public const int ImportIsvConfigError = unchecked((int)0x8004800e); // -2147188722 public const int ImportArticleTemplateError = unchecked((int)0x8004800d); // -2147188723 public const int ImportEmailTemplateError = unchecked((int)0x8004800c); // -2147188724 public const int ImportContractTemplateError = unchecked((int)0x8004800b); // -2147188725 public const int ImportRelationshipRoleMapsError = unchecked((int)0x8004800a); // -2147188726 public const int ImportRelationshipRolesError = unchecked((int)0x80048009); // -2147188727 public const int ImportRelationshipRolesPrivilegeError = unchecked((int)0x8004802f); // -2147188689 public const int ImportEntityNameMismatchError = unchecked((int)0x80048008); // -2147188728 public const int ImportFormXmlError = unchecked((int)0x80048007); // -2147188729 public const int ImportFieldXmlError = unchecked((int)0x80048006); // -2147188730 public const int ImportSavedQueryExistingError = unchecked((int)0x80048005); // -2147188731 public const int ImportSavedQueryOtcMismatchError = unchecked((int)0x80048004); // -2147188732 public const int ImportEntityCustomResourcesNewStringError = unchecked((int)0x80048003); // -2147188733 public const int ImportEntityCustomResourcesError = unchecked((int)0x80048002); // -2147188734 public const int ImportEntityIconError = unchecked((int)0x80048001); // -2147188735 public const int ImportSavedQueryDeletedError = unchecked((int)0x8004801b); // -2147188709 public const int ImportEntitySystemUserOnPremiseMismatchError = unchecked((int)0x80048024); // -2147188700 public const int ImportEntitySystemUserLiveMismatchError = unchecked((int)0x80048025); // -2147188699 public const int ImportLanguagesIgnoredError = unchecked((int)0x80048026); // -2147188698 public const int ImportInvalidFileError = unchecked((int)0x80048000); // -2147188736 public const int ImportXsdValidationError = unchecked((int)0x8004801a); // -2147188710 public const int ImportInvalidXmlError = unchecked((int)0x8004802c); // -2147188692 public const int ImportWrongPublisherError = unchecked((int)0x8004801c); // -2147188708 public const int ImportMissingDependenciesError = unchecked((int)0x8004801d); // -2147188707 public const int ImportGenericError = unchecked((int)0x8004801e); // -2147188706 public const int ImportMissingComponent = unchecked((int)0x8004801f); // -2147188705 public const int ImportMissingRootComponentEntry = unchecked((int)0x8004803a); // -2147188678 public const int UnmanagedComponentParentsManagedComponent = unchecked((int)0x8004803b); // -2147188677 public const int FailedToGetNetworkServiceName = unchecked((int)0x80047103); // -2147192573 public const int CustomParentingSystemNotSupported = unchecked((int)0x80047102); // -2147192574 public const int InvalidFormatParameters = unchecked((int)0x80047101); // -2147192575 public const int InvalidHierarchicalRelationship = unchecked((int)0x8004701f); // -2147192801 public const int MissingHierarchicalRelationshipForOperator = unchecked((int)0x80047020); // -2147192800 public const int DuplicatePrimaryNameAttribute = unchecked((int)0x8004701e); // -2147192802 public const int ConfigurationPageNotValidForSolution = unchecked((int)0x8004701d); // -2147192803 public const int SolutionConfigurationPageMustBeHtmlWebResource = unchecked((int)0x8004701c); // -2147192804 public const int InvalidSolutionConfigurationPage = unchecked((int)0x8004701b); // -2147192805 public const int InvalidHierarchicalRelationshipChange = unchecked((int)0x8004701a); // -2147192806 public const int InvalidLanguageForSolution = unchecked((int)0x80047019); // -2147192807 public const int CannotHaveDuplicateYomi = unchecked((int)0x80047018); // -2147192808 public const int SavedQueryIsNotCustomizable = unchecked((int)0x80047017); // -2147192809 public const int CannotDeleteChildAttribute = unchecked((int)0x80047016); // -2147192810 public const int EntityHasNoStateCode = unchecked((int)0x80047015); // -2147192811 public const int NoAttributesForEntityCreate = unchecked((int)0x80047014); // -2147192812 public const int DuplicateAttributeSchemaName = unchecked((int)0x80047013); // -2147192813 public const int DuplicateDisplayCollectionName = unchecked((int)0x80047012); // -2147192814 public const int DuplicateDisplayName = unchecked((int)0x80047011); // -2147192815 public const int DuplicateName = unchecked((int)0x80047010); // -2147192816 public const int InvalidRelationshipType = unchecked((int)0x8004700f); // -2147192817 public const int InvalidPrimaryFieldType = unchecked((int)0x8004700e); // -2147192818 public const int InvalidOwnershipTypeMask = unchecked((int)0x8004700d); // -2147192819 public const int InvalidDisplayName = unchecked((int)0x8004700c); // -2147192820 public const int InvalidSchemaName = unchecked((int)0x8004700b); // -2147192821 public const int RelationshipIsNotCustomRelationship = unchecked((int)0x8004700a); // -2147192822 public const int AttributeIsNotCustomAttribute = unchecked((int)0x80047009); // -2147192823 public const int EntityIsNotCustomizable = unchecked((int)0x80047008); // -2147192824 public const int MultipleParentsNotSupported = unchecked((int)0x80047007); // -2147192825 public const int CannotCreateActivityRelationship = unchecked((int)0x80047006); // -2147192826 public const int CyclicalRelationship = unchecked((int)0x80047004); // -2147192828 public const int InvalidRelationshipDescription = unchecked((int)0x80047003); // -2147192829 public const int CannotDeletePrimaryUIAttribute = unchecked((int)0x80047002); // -2147192830 public const int RowGuidIsNotValidName = unchecked((int)0x80047001); // -2147192831 public const int FailedToScheduleActivity = unchecked((int)0x80047000); // -2147192832 public const int CannotDeleteLastEmailAttribute = unchecked((int)0x80046fff); // -2147192833 public const int SystemAttributeMap = unchecked((int)0x80046205); // -2147196411 public const int UpdateAttributeMap = unchecked((int)0x80046204); // -2147196412 public const int InvalidAttributeMap = unchecked((int)0x80046203); // -2147196413 public const int SystemEntityMap = unchecked((int)0x80046202); // -2147196414 public const int UpdateEntityMap = unchecked((int)0x80046201); // -2147196415 public const int NonMappableEntity = unchecked((int)0x80046200); // -2147196416 public const int unManagedidsCalloutException = unchecked((int)0x80045f05); // -2147197179 public const int unManagedidscalloutinvalidevent = unchecked((int)0x80045f04); // -2147197180 public const int unManagedidscalloutinvalidconfig = unchecked((int)0x80045f03); // -2147197181 public const int unManagedidscalloutisvstop = unchecked((int)0x80045f02); // -2147197182 public const int unManagedidscalloutisvabort = unchecked((int)0x80045f01); // -2147197183 public const int unManagedidscalloutisvexception = unchecked((int)0x80045f00); // -2147197184 public const int unManagedidscustomentityambiguousrelationship = unchecked((int)0x8004590d); // -2147198707 public const int unManagedidscustomentitynorelationship = unchecked((int)0x8004590c); // -2147198708 public const int unManagedidscustomentityparentchildidentical = unchecked((int)0x8004590b); // -2147198709 public const int unManagedidscustomentityinvalidparent = unchecked((int)0x8004590a); // -2147198710 public const int unManagedidscustomentityinvalidchild = unchecked((int)0x80045909); // -2147198711 public const int unManagedidscustomentitywouldcreateloop = unchecked((int)0x80045908); // -2147198712 public const int unManagedidscustomentityexistingloop = unchecked((int)0x80045907); // -2147198713 public const int unManagedidscustomentitystackunderflow = unchecked((int)0x80045906); // -2147198714 public const int unManagedidscustomentitystackoverflow = unchecked((int)0x80045905); // -2147198715 public const int unManagedidscustomentitytlsfailure = unchecked((int)0x80045904); // -2147198716 public const int unManagedidscustomentityinvalidownership = unchecked((int)0x80045903); // -2147198717 public const int unManagedidscustomentitynotinitialized = unchecked((int)0x80045902); // -2147198718 public const int unManagedidscustomentityalreadyinitialized = unchecked((int)0x80045901); // -2147198719 public const int unManagedidscustomentitynameviolation = unchecked((int)0x80045900); // -2147198720 public const int unManagedidscascadeunexpectederror = unchecked((int)0x80045603); // -2147199485 public const int unManagedidscascadeemptylinkerror = unchecked((int)0x80045602); // -2147199486 public const int unManagedidscascadeundefinedrelationerror = unchecked((int)0x80045601); // -2147199487 public const int unManagedidscascadeinconsistencyerror = unchecked((int)0x80045600); // -2147199488 public const int MergeLossOfParentingWarning = unchecked((int)0x80045317); // -2147200233 public const int MergeDifferentlyParentedWarning = unchecked((int)0x80045316); // -2147200234 public const int MergeEntitiesIdenticalError = unchecked((int)0x80045305); // -2147200251 public const int MergeEntityNotActiveError = unchecked((int)0x80045304); // -2147200252 public const int unManagedidsmergedifferentbizorgerror = unchecked((int)0x80045303); // -2147200253 public const int MergeActiveQuoteError = unchecked((int)0x80045302); // -2147200254 public const int MergeSecurityError = unchecked((int)0x80045301); // -2147200255 public const int MergeCyclicalParentingError = unchecked((int)0x80045300); // -2147200256 public const int unManagedidscalendarruledoesnotexist = unchecked((int)0x80045100); // -2147200768 public const int unManagedidscalendarinvalidcalendar = unchecked((int)0x80044d00); // -2147201792 public const int AttachmentInvalidFileName = unchecked((int)0x80044a08); // -2147202552 public const int unManagedidsattachmentcannottruncatetempfile = unchecked((int)0x80044a07); // -2147202553 public const int unManagedidsattachmentcannotunmaptempfile = unchecked((int)0x80044a06); // -2147202554 public const int unManagedidsattachmentcannotcreatetempfile = unchecked((int)0x80044a05); // -2147202555 public const int unManagedidsattachmentisempty = unchecked((int)0x80044a04); // -2147202556 public const int unManagedidsattachmentcannotreadtempfile = unchecked((int)0x80044a03); // -2147202557 public const int unManagedidsattachmentinvalidfilesize = unchecked((int)0x80044a02); // -2147202558 public const int unManagedidsattachmentcannotgetfilesize = unchecked((int)0x80044a01); // -2147202559 public const int unManagedidsattachmentcannotopentempfile = unchecked((int)0x80044a00); // -2147202560 public const int unManagedidscustomizationtransformationnotsupported = unchecked((int)0x80044700); // -2147203328 public const int ContractDetailDiscountAmountAndPercent = unchecked((int)0x80044414); // -2147204076 public const int ContractDetailDiscountAmount = unchecked((int)0x80044413); // -2147204077 public const int ContractDetailDiscountPercent = unchecked((int)0x80044412); // -2147204078 public const int IncidentIsAlreadyClosedOrCancelled = unchecked((int)0x80044411); // -2147204079 public const int unManagedidsincidentparentaccountandparentcontactnotpresent = unchecked((int)0x80044410); // -2147204080 public const int unManagedidsincidentparentaccountandparentcontactpresent = unchecked((int)0x8004440f); // -2147204081 public const int IncidentCannotCancel = unchecked((int)0x8004440e); // -2147204082 public const int IncidentInvalidContractLineStateForCreate = unchecked((int)0x8004440d); // -2147204083 public const int IncidentNullSpentTimeOrBilled = unchecked((int)0x8004440c); // -2147204084 public const int IncidentInvalidAllotmentType = unchecked((int)0x8004440b); // -2147204085 public const int unManagedidsincidentcannotclose = unchecked((int)0x8004440a); // -2147204086 public const int IncidentMissingActivityRegardingObject = unchecked((int)0x80044409); // -2147204087 public const int unManagedidsincidentmissingactivityobjecttype = unchecked((int)0x80044408); // -2147204088 public const int unManagedidsincidentnullactivitytypecode = unchecked((int)0x80044407); // -2147204089 public const int unManagedidsincidentinvalidactivitytypecode = unchecked((int)0x80044406); // -2147204090 public const int unManagedidsincidentassociatedactivitycorrupted = unchecked((int)0x80044405); // -2147204091 public const int unManagedidsincidentinvalidstate = unchecked((int)0x80044404); // -2147204092 public const int IncidentContractDoesNotHaveAllotments = unchecked((int)0x80044403); // -2147204093 public const int unManagedidsincidentcontractdetaildoesnotmatchcontract = unchecked((int)0x80044402); // -2147204094 public const int IncidentMissingContractDetail = unchecked((int)0x80044401); // -2147204095 public const int IncidentInvalidContractStateForCreate = unchecked((int)0x80044400); // -2147204096 public const int InvalidPrimaryContactBasedOnAccount = unchecked((int)0x8004f864); // -2147157916 public const int InvalidPrimaryContactBasedOnContact = unchecked((int)0x8004f865); // -2147157915 public const int InvalidEntitlementForSelectedCustomerOrProduct = unchecked((int)0x8004f866); // -2147157914 public const int InvalidEntitlementContacts = unchecked((int)0x80044207); // -2147204601 public const int EntitlementAlreadyInCanceledState = unchecked((int)0x80044208); // -2147204600 public const int DisabledCRMGoingOffline = unchecked((int)0x80044200); // -2147204608 public const int DisabledCRMGoingOnline = unchecked((int)0x80044201); // -2147204607 public const int DisabledCRMAddinLoadFailure = unchecked((int)0x80044202); // -2147204606 public const int DisabledCRMClientVersionLower = unchecked((int)0x80044203); // -2147204605 public const int DisabledCRMClientVersionHigher = unchecked((int)0x80044204); // -2147204604 public const int DisabledCRMPostOfflineUpgrade = unchecked((int)0x80044205); // -2147204603 public const int DisabledCRMOnlineCrmNotAvailable = unchecked((int)0x80044206); // -2147204602 public const int GoOfflineMetadataVersionsMismatch = unchecked((int)0x80044220); // -2147204576 public const int GoOfflineGetBCPFileException = unchecked((int)0x80044221); // -2147204575 public const int GoOfflineDbSizeLimit = unchecked((int)0x80044222); // -2147204574 public const int GoOfflineServerFailedGenerateBCPFile = unchecked((int)0x80044223); // -2147204573 public const int GoOfflineBCPFileSize = unchecked((int)0x80044224); // -2147204572 public const int GoOfflineFailedMoveData = unchecked((int)0x80044225); // -2147204571 public const int GoOfflineFailedPrepareMsde = unchecked((int)0x80044226); // -2147204570 public const int GoOfflineFailedReloadMetadataCache = unchecked((int)0x80044227); // -2147204569 public const int DoNotTrackItem = unchecked((int)0x80044228); // -2147204568 public const int GoOfflineFileWasDeleted = unchecked((int)0x80044229); // -2147204567 public const int GoOfflineEmptyFileForDelete = unchecked((int)0x80044230); // -2147204560 public const int InvalidForOfficeGraph = unchecked((int)0x80044231); // -2147204559 public const int TrendingDocumentsOnpremiseDeploymentError = unchecked((int)0x80044232); // -2147204558 public const int TrendingDocumentsIntegrationDisabledError = unchecked((int)0x80044233); // -2147204557 public const int TrendingDocumentsDataRetrievalFailure = unchecked((int)0x80044234); // -2147204556 public const int RelationshipNotCreatedForOfficeGraphError = unchecked((int)0x80044235); // -2147204555 public const int RelationshipNotUpdatedForOfficeGraphError = unchecked((int)0x80044236); // -2147204554 public const int AttributeNotCreatedForOfficeGraphError = unchecked((int)0x80044237); // -2147204553 public const int AttributeNotUpdatedForOfficeGraphError = unchecked((int)0x80044238); // -2147204552 public const int OfficeGraphDisabledError = unchecked((int)0x80044239); // -2147204551 public const int BaseAttributeNameNotPresentError = unchecked((int)0x80044240); // -2147204544 public const int OperatorCodeNotPresentError = unchecked((int)0x80044241); // -2147204543 public const int InvalidBaseAttributeError = unchecked((int)0x80044242); // -2147204542 public const int MatchingAttributeNameNotNullError = unchecked((int)0x80044243); // -2147204541 public const int InvalidMatchingAttributeError = unchecked((int)0x80044244); // -2147204540 public const int BaseMatchingAttributeNotSameError = unchecked((int)0x80044245); // -2147204539 public const int InvalidOperatorCodeError = unchecked((int)0x80044253); // -2147204525 public const int InvalidSimilarityRuleStateError = unchecked((int)0x80044254); // -2147204524 public const int TrendingDocumentsIntegrationTurnedOffError = unchecked((int)0x80044255); // -2147204523 public const int OfficeGraphSiteNotConfigured = unchecked((int)0x80044257); // -2147204521 public const int TrendingDocumentsOfflineModeError = unchecked((int)0x80044258); // -2147204520 public const int S2SNotConfigured = unchecked((int)0x80044259); // -2147204519 public const int GraphApiS2SSetupFailureException = unchecked((int)0x80044260); // -2147204512 public const int ProvisionRIAccessNotAllowed = unchecked((int)0x80044270); // -2147204496 public const int InvalidRequestDataFormat = unchecked((int)0x80044271); // -2147204495 public const int InvalidFeatureType = unchecked((int)0x80044272); // -2147204494 public const int UpdateRIOrganizationDataAccessNotAllowed = unchecked((int)0x80044273); // -2147204493 public const int DeprovisionRIAccessNotAllowed = unchecked((int)0x80044274); // -2147204492 public const int ActivityAnalysisOrganizationUpdateError = unchecked((int)0x80044275); // -2147204491 public const int RelationshipIntelligenceSDKInvocationError = unchecked((int)0x80044276); // -2147204490 public const int EnableRIFeatureNotAllowed = unchecked((int)0x80044279); // -2147204487 public const int DisableRIFeatureNotAllowed = unchecked((int)0x80044280); // -2147204480 public const int RINotProvisioned = unchecked((int)0x80044281); // -2147204479 public const int ErrorOnGetRIProvisionStatus = unchecked((int)0x80044282); // -2147204478 public const int ErrorOnGetRITenantEndPoint = unchecked((int)0x80044283); // -2147204477 public const int ErrorOnStartOfRIProvision = unchecked((int)0x80044284); // -2147204476 public const int ErrorOnTenantVerifyUpdate = unchecked((int)0x80044285); // -2147204475 public const int ErrorOnGetRecord = unchecked((int)0x80044286); // -2147204474 public const int ErrorOnQryPropertyBagCollection = unchecked((int)0x80044287); // -2147204473 public const int ErrorPropertyBagCollectionMissedColumn = unchecked((int)0x80044288); // -2147204472 public const int ErrorOnFeatureStatusChange = unchecked((int)0x80044289); // -2147204471 public const int ErrorFetchingBaseUrl = unchecked((int)0x80044290); // -2147204464 public const int ErrorFetchingRIProvisionStatus = unchecked((int)0x80044291); // -2147204463 public const int RelationshipInsightsFeatureDisableError = unchecked((int)0x80044292); // -2147204462 public const int RelationshipInsightsFeatureNotEnabledError = unchecked((int)0x80044293); // -2147204461 public const int ClientVersionTooLow = unchecked((int)0x80044500); // -2147203840 public const int ClientVersionTooHigh = unchecked((int)0x80044501); // -2147203839 public const int InsufficientAccessMode = unchecked((int)0x80044502); // -2147203838 public const int ClientServerDateTimeMismatch = unchecked((int)0x80044503); // -2147203837 public const int ClientServerEmailAddressMismatch = unchecked((int)0x80044504); // -2147203836 public const int FederatedEndpointError = unchecked((int)0x80044505); // -2147203835 public const int CommunicationBlocked = unchecked((int)0x80044506); // -2147203834 public const int UserDoesNotHaveAccessToTheTenant = unchecked((int)0x80044507); // -2147203833 public const int ConfiguredUserIsDifferentThanSuppliedUser = unchecked((int)0x80044508); // -2147203832 public const int OutlookClientConfigActionFailed = unchecked((int)0x80044509); // -2147203831 public const int OrganizationUIDeprecated = unchecked((int)0x80044159); // -2147204775 public const int IsKitCannotBeNull = unchecked((int)0x80044158); // -2147204776 public const int SqlMaxRecursionExceeded = unchecked((int)0x80044157); // -2147204777 public const int unManagedidssqltimeouterror = unchecked((int)0x80044151); // -2147204783 public const int unManagedidssqlerror = unchecked((int)0x80044150); // -2147204784 public const int unManagedidsrcsyncinvalidfiltererror = unchecked((int)0x8004410d); // -2147204851 public const int unManagedidsrcsyncnotprimary = unchecked((int)0x80044111); // -2147204847 public const int unManagedidsrcsyncnoprimary = unchecked((int)0x80044112); // -2147204846 public const int unManagedidsrcsyncnoclient = unchecked((int)0x80044113); // -2147204845 public const int unManagedidsrcsyncmethodnone = unchecked((int)0x80044114); // -2147204844 public const int unManagedidsrcsyncfilternoaccess = unchecked((int)0x8004410f); // -2147204849 public const int InvalidOfflineOperation = unchecked((int)0x8004410e); // -2147204850 public const int unManagedidsrcsyncsqlgenericerror = unchecked((int)0x80044110); // -2147204848 public const int unManagedidsrcsyncsqlpausederror = unchecked((int)0x8004410c); // -2147204852 public const int unManagedidsrcsyncsqlstoppederror = unchecked((int)0x8004410b); // -2147204853 public const int unManagedidsrcsyncsubscriptionowner = unchecked((int)0x8004410a); // -2147204854 public const int unManagedidsrcsyncinvalidsubscription = unchecked((int)0x80044109); // -2147204855 public const int unManagedidsrcsyncsoapparseerror = unchecked((int)0x80044108); // -2147204856 public const int unManagedidsrcsyncsoapreaderror = unchecked((int)0x80044107); // -2147204857 public const int unManagedidsrcsyncsoapfaulterror = unchecked((int)0x80044106); // -2147204858 public const int unManagedidsrcsyncsoapservererror = unchecked((int)0x80044105); // -2147204859 public const int unManagedidsrcsyncsoapsendfailed = unchecked((int)0x80044104); // -2147204860 public const int unManagedidsrcsyncsoapconnfailed = unchecked((int)0x80044103); // -2147204861 public const int unManagedidsrcsyncsoapgenfailed = unchecked((int)0x80044102); // -2147204862 public const int unManagedidsrcsyncmsxmlfailed = unchecked((int)0x80044101); // -2147204863 public const int unManagedidsrcsyncinvalidsynctime = unchecked((int)0x80044100); // -2147204864 public const int AttachmentBlocked = unchecked((int)0x80043e09); // -2147205623 public const int unManagedidsarticletemplateisnotactive = unchecked((int)0x80043e07); // -2147205625 public const int unManagedidsfulltextoperationfailed = unchecked((int)0x80043e06); // -2147205626 public const int unManagedidsarticletemplatecontainsarticles = unchecked((int)0x80043e05); // -2147205627 public const int unManagedidsqueueorganizationidnotmatch = unchecked((int)0x80043e04); // -2147205628 public const int unManagedidsqueuemissingbusinessunitid = unchecked((int)0x80043e03); // -2147205629 public const int SubjectDoesNotExist = unchecked((int)0x80043e02); // -2147205630 public const int SubjectLoopBeingCreated = unchecked((int)0x80043e01); // -2147205631 public const int SubjectLoopExists = unchecked((int)0x80043e00); // -2147205632 public const int InvalidSubmitFromUnapprovedArticle = unchecked((int)0x80048dff); // -2147185153 public const int InvalidUnpublishFromUnapprovedArticle = unchecked((int)0x80048dfe); // -2147185154 public const int InvalidApproveFromDraftArticle = unchecked((int)0x80048dfd); // -2147185155 public const int InvalidUnpublishFromDraftArticle = unchecked((int)0x80048dfc); // -2147185156 public const int InvalidApproveFromPublishedArticle = unchecked((int)0x80048dfb); // -2147185157 public const int InvalidSubmitFromPublishedArticle = unchecked((int)0x80048dfa); // -2147185158 public const int QuoteReviseExistingActiveQuote = unchecked((int)0x80048d00); // -2147185408 public const int BaseCurrencyNotDeletable = unchecked((int)0x80048cff); // -2147185409 public const int CannotDeleteBaseMoneyCalculationAttribute = unchecked((int)0x80048cfe); // -2147185410 public const int InvalidExchangeRate = unchecked((int)0x80048cfd); // -2147185411 public const int InvalidCurrency = unchecked((int)0x80048cfc); // -2147185412 public const int CurrencyCannotBeNullDueToNonNullMoneyFields = unchecked((int)0x80048cfb); // -2147185413 public const int CannotUpdateProductCurrency = unchecked((int)0x80048cfa); // -2147185414 public const int InvalidPriceLevelCurrencyForPricingMethod = unchecked((int)0x80048cf9); // -2147185415 public const int DiscountTypeAndPriceLevelCurrencyNotEqual = unchecked((int)0x80048cf8); // -2147185416 public const int CurrencyRequiredForDiscountTypeAmount = unchecked((int)0x80048cf7); // -2147185417 public const int RecordAndPricelistCurrencyNotEqual = unchecked((int)0x80048cf6); // -2147185418 public const int ExchangeRateOfBaseCurrencyNotUpdatable = unchecked((int)0x80048cf5); // -2147185419 public const int BaseCurrencyCannotBeDeactivated = unchecked((int)0x80048cf4); // -2147185420 public const int DuplicateIsoCurrencyCode = unchecked((int)0x80048cf3); // -2147185421 public const int InvalidIsoCurrencyCode = unchecked((int)0x80048cf2); // -2147185422 public const int PercentageDiscountCannotHaveCurrency = unchecked((int)0x80048cf1); // -2147185423 public const int RecordAndOpportunityCurrencyNotEqual = unchecked((int)0x80048cef); // -2147185425 public const int QuoteAndSalesOrderCurrencyNotEqual = unchecked((int)0x80048cee); // -2147185426 public const int SalesOrderAndInvoiceCurrencyNotEqual = unchecked((int)0x80048ced); // -2147185427 public const int BaseCurrencyOverflow = unchecked((int)0x80048cec); // -2147185428 public const int BaseCurrencyUnderflow = unchecked((int)0x80048ceb); // -2147185429 public const int CurrencyNotEqual = unchecked((int)0x80048cea); // -2147185430 public const int UnitNoName = unchecked((int)0x80043b26); // -2147206362 public const int unManagedidsinvoicecloseapideprecated = unchecked((int)0x80043b25); // -2147206363 public const int ProductDoesNotExist = unchecked((int)0x80043b24); // -2147206364 public const int ProductKitLoopBeingCreated = unchecked((int)0x80043b23); // -2147206365 public const int ProductKitLoopExists = unchecked((int)0x80043b22); // -2147206366 public const int DiscountPercent = unchecked((int)0x80043b21); // -2147206367 public const int DiscountAmount = unchecked((int)0x80043b20); // -2147206368 public const int DiscountAmountAndPercent = unchecked((int)0x80043b1f); // -2147206369 public const int EntityIsUnlocked = unchecked((int)0x80043b1e); // -2147206370 public const int EntityIsLocked = unchecked((int)0x80043b1d); // -2147206371 public const int BaseUnitDoesNotExist = unchecked((int)0x80043b1c); // -2147206372 public const int UnitDoesNotExist = unchecked((int)0x80043b1b); // -2147206373 public const int UnitLoopBeingCreated = unchecked((int)0x80043b1a); // -2147206374 public const int UnitLoopExists = unchecked((int)0x80043b19); // -2147206375 public const int QuantityReadonly = unchecked((int)0x80043b18); // -2147206376 public const int BaseUnitNotNull = unchecked((int)0x80043b17); // -2147206377 public const int UnitNotInSchedule = unchecked((int)0x80043b16); // -2147206378 public const int MissingOpportunityId = unchecked((int)0x80043b15); // -2147206379 public const int ProductInvalidUnit = unchecked((int)0x80043b14); // -2147206380 public const int ProductMissingUomSheduleId = unchecked((int)0x80043b13); // -2147206381 public const int MissingPriceLevelId = unchecked((int)0x80043b12); // -2147206382 public const int MissingProductId = unchecked((int)0x80043b11); // -2147206383 public const int InvalidPricePerUnit = unchecked((int)0x80043b10); // -2147206384 public const int PriceLevelNameExists = unchecked((int)0x80043b0f); // -2147206385 public const int PriceLevelNoName = unchecked((int)0x80043b0e); // -2147206386 public const int MissingUomId = unchecked((int)0x80043b0d); // -2147206387 public const int ProductInvalidPriceLevelPercentage = unchecked((int)0x80043b0c); // -2147206388 public const int InvalidBaseUnit = unchecked((int)0x80043b0b); // -2147206389 public const int MissingUomScheduleId = unchecked((int)0x80043b0a); // -2147206390 public const int ParentReadOnly = unchecked((int)0x80043b09); // -2147206391 public const int DuplicateProductPriceLevel = unchecked((int)0x80043b08); // -2147206392 public const int ProductInvalidQuantityDecimal = unchecked((int)0x80043b07); // -2147206393 public const int ProductProductNumberExists = unchecked((int)0x80043b06); // -2147206394 public const int ProductNoProductNumber = unchecked((int)0x80043b05); // -2147206395 public const int unManagedidscannotdeactivatepricelevel = unchecked((int)0x80043b04); // -2147206396 public const int BaseUnitNotDeletable = unchecked((int)0x80043b03); // -2147206397 public const int DiscountRangeOverlap = unchecked((int)0x80043b02); // -2147206398 public const int LowQuantityGreaterThanHighQuantity = unchecked((int)0x80043b01); // -2147206399 public const int LowQuantityLessThanZero = unchecked((int)0x80043b00); // -2147206400 public const int InvalidSubstituteProduct = unchecked((int)0x80043aff); // -2147206401 public const int InvalidKitProduct = unchecked((int)0x80043afe); // -2147206402 public const int InvalidKit = unchecked((int)0x80043afd); // -2147206403 public const int InvalidQuantityDecimalCode = unchecked((int)0x80043afc); // -2147206404 public const int CannotSpecifyBothProductAndProductDesc = unchecked((int)0x80043afb); // -2147206405 public const int CannotSpecifyBothUomAndProductDesc = unchecked((int)0x80043afa); // -2147206406 public const int unManagedidsstatedoesnotexist = unchecked((int)0x80043af9); // -2147206407 public const int FiscalSettingsAlreadyUpdated = unchecked((int)0x80043809); // -2147207159 public const int unManagedidssalespeopleinvalidfiscalcalendartype = unchecked((int)0x80043808); // -2147207160 public const int unManagedidssalespeopleinvalidfiscalperiodindex = unchecked((int)0x80043807); // -2147207161 public const int SalesPeopleManagerNotAllowed = unchecked((int)0x80043805); // -2147207163 public const int unManagedidssalespeopleinvalidterritoryobjecttype = unchecked((int)0x80043804); // -2147207164 public const int SalesPeopleDuplicateCalendarNotAllowed = unchecked((int)0x80043803); // -2147207165 public const int unManagedidssalespeopleduplicatecalendarfound = unchecked((int)0x80043802); // -2147207166 public const int SalesPeopleEmptyEffectiveDate = unchecked((int)0x80043801); // -2147207167 public const int SalesPeopleEmptySalesPerson = unchecked((int)0x80043800); // -2147207168 public const int InvalidNumberGroupFormat = unchecked((int)0x80043700); // -2147207424 public const int BaseUomNameNotSpecified = unchecked((int)0x80043810); // -2147207152 public const int InvalidActivityPartyAddress = unchecked((int)0x80043518); // -2147207912 public const int FaxNoSupport = unchecked((int)0x80043517); // -2147207913 public const int FaxNoData = unchecked((int)0x80043516); // -2147207914 public const int InvalidPartyMapping = unchecked((int)0x80043515); // -2147207915 public const int InvalidActivityXml = unchecked((int)0x80043514); // -2147207916 public const int ActivityInvalidObjectTypeCode = unchecked((int)0x80043513); // -2147207917 public const int ActivityInvalidSessionToken = unchecked((int)0x80043512); // -2147207918 public const int FaxServiceNotRunning = unchecked((int)0x80043511); // -2147207919 public const int FaxSendBlocked = unchecked((int)0x80043510); // -2147207920 public const int NoDialNumber = unchecked((int)0x8004350f); // -2147207921 public const int TooManyRecipients = unchecked((int)0x8004350e); // -2147207922 public const int MissingRecipient = unchecked((int)0x8004350d); // -2147207923 public const int unManagedidsactivitynotroutable = unchecked((int)0x8004350b); // -2147207925 public const int unManagedidsactivitydurationdoesnotmatch = unchecked((int)0x8004350a); // -2147207926 public const int unManagedidsactivityinvalidduration = unchecked((int)0x80043509); // -2147207927 public const int unManagedidsactivityinvalidtimeformat = unchecked((int)0x80043508); // -2147207928 public const int unManagedidsactivityinvalidregardingobject = unchecked((int)0x80043507); // -2147207929 public const int ActivityPartyObjectTypeNotAllowed = unchecked((int)0x80043506); // -2147207930 public const int unManagedidsactivityinvalidpartyobjecttype = unchecked((int)0x80043505); // -2147207931 public const int unManagedidsactivitypartyobjectidortypemissing = unchecked((int)0x80043504); // -2147207932 public const int unManagedidsactivityinvalidobjecttype = unchecked((int)0x80043503); // -2147207933 public const int unManagedidsactivityobjectidortypemissing = unchecked((int)0x80043502); // -2147207934 public const int unManagedidsactivityinvalidtype = unchecked((int)0x80043501); // -2147207935 public const int unManagedidsactivityinvalidstate = unchecked((int)0x80043500); // -2147207936 public const int ContractInvalidDatesForRenew = unchecked((int)0x80043218); // -2147208680 public const int unManagedidscontractinvalidstartdateforrenewedcontract = unchecked((int)0x80043217); // -2147208681 public const int unManagedidscontracttemplateabbreviationexists = unchecked((int)0x80043216); // -2147208682 public const int ContractInvalidPrice = unchecked((int)0x80043215); // -2147208683 public const int unManagedidscontractinvalidtotalallotments = unchecked((int)0x80043214); // -2147208684 public const int ContractInvalidContract = unchecked((int)0x80043213); // -2147208685 public const int unManagedidscontractinvalidowner = unchecked((int)0x80043212); // -2147208686 public const int ContractInvalidContractTemplate = unchecked((int)0x80043211); // -2147208687 public const int ContractInvalidBillToCustomer = unchecked((int)0x80043210); // -2147208688 public const int ContractInvalidBillToAddress = unchecked((int)0x8004320f); // -2147208689 public const int ContractInvalidServiceAddress = unchecked((int)0x8004320e); // -2147208690 public const int ContractInvalidCustomer = unchecked((int)0x8004320d); // -2147208691 public const int ContractNoLineItems = unchecked((int)0x8004320c); // -2147208692 public const int ContractTemplateNoAbbreviation = unchecked((int)0x8004320b); // -2147208693 public const int unManagedidscontractopencasesexist = unchecked((int)0x8004320a); // -2147208694 public const int unManagedidscontractlineitemdoesnotexist = unchecked((int)0x80043208); // -2147208696 public const int unManagedidscontractdoesnotexist = unchecked((int)0x80043207); // -2147208697 public const int ContractTemplateDoesNotExist = unchecked((int)0x80043206); // -2147208698 public const int ContractInvalidAllotmentTypeCode = unchecked((int)0x80043205); // -2147208699 public const int ContractLineInvalidState = unchecked((int)0x80043204); // -2147208700 public const int ContractInvalidState = unchecked((int)0x80043203); // -2147208701 public const int ContractInvalidStartEndDate = unchecked((int)0x80043202); // -2147208702 public const int unManagedidscontractaccountmissing = unchecked((int)0x80043201); // -2147208703 public const int unManagedidscontractunexpected = unchecked((int)0x80043200); // -2147208704 public const int unManagedidsevalerrorformatlookupparameter = unchecked((int)0x80042c4c); // -2147210164 public const int unManagedidsevalerrorformattimezonecodeparameter = unchecked((int)0x80042c4b); // -2147210165 public const int unManagedidsevalerrorformatdecimalparameter = unchecked((int)0x80042c4a); // -2147210166 public const int unManagedidsevalerrorformatintegerparameter = unchecked((int)0x80042c49); // -2147210167 public const int unManagedidsevalerrorobjecttype = unchecked((int)0x80042c48); // -2147210168 public const int unManagedidsevalerrorqueueidparameter = unchecked((int)0x80042c47); // -2147210169 public const int unManagedidsevalerrorformatpicklistparameter = unchecked((int)0x80042c46); // -2147210170 public const int unManagedidsevalerrorformatbooleanparameter = unchecked((int)0x80042c45); // -2147210171 public const int unManagedidsevalerrorformatdatetimeparameter = unchecked((int)0x80042c44); // -2147210172 public const int unManagedidsevalerrorisnulllistparameter = unchecked((int)0x80042c43); // -2147210173 public const int unManagedidsevalerrorinlistparameter = unchecked((int)0x80042c42); // -2147210174 public const int unManagedidsevalerrorsetactivityparty = unchecked((int)0x80042c41); // -2147210175 public const int unManagedidsevalerrorremovefromactivityparty = unchecked((int)0x80042c40); // -2147210176 public const int unManagedidsevalerrorappendtoactivityparty = unchecked((int)0x80042c3f); // -2147210177 public const int unManagedidsevaltimererrorcalculatescheduletime = unchecked((int)0x80042c3e); // -2147210178 public const int unManagedidsevaltimerinvalidparameternumber = unchecked((int)0x80042c3d); // -2147210179 public const int unManagedidsevalcreateshouldhave2parameters = unchecked((int)0x80042c3c); // -2147210180 public const int unManagedidsevalerrorcreate = unchecked((int)0x80042c3b); // -2147210181 public const int unManagedidsevalerrorcontainparameter = unchecked((int)0x80042c3a); // -2147210182 public const int unManagedidsevalerrorendwithparameter = unchecked((int)0x80042c39); // -2147210183 public const int unManagedidsevalerrorbeginwithparameter = unchecked((int)0x80042c38); // -2147210184 public const int unManagedidsevalerrorstrlenparameter = unchecked((int)0x80042c37); // -2147210185 public const int unManagedidsevalerrorsubstrparameter = unchecked((int)0x80042c36); // -2147210186 public const int unManagedidsevalerrorinvalidrecipient = unchecked((int)0x80042c35); // -2147210187 public const int unManagedidsevalerrorinparameter = unchecked((int)0x80042c34); // -2147210188 public const int unManagedidsevalerrorbetweenparameter = unchecked((int)0x80042c33); // -2147210189 public const int unManagedidsevalerrorneqparameter = unchecked((int)0x80042c32); // -2147210190 public const int unManagedidsevalerroreqparameter = unchecked((int)0x80042c31); // -2147210191 public const int unManagedidsevalerrorleqparameter = unchecked((int)0x80042c30); // -2147210192 public const int unManagedidsevalerrorltparameter = unchecked((int)0x80042c2f); // -2147210193 public const int unManagedidsevalerrorgeqparameter = unchecked((int)0x80042c2e); // -2147210194 public const int unManagedidsevalerrorgtparameter = unchecked((int)0x80042c2d); // -2147210195 public const int unManagedidsevalerrorabsparameter = unchecked((int)0x80042c2c); // -2147210196 public const int unManagedidsevalerrorinvalidparameter = unchecked((int)0x80042c2b); // -2147210197 public const int unManagedidsevalgenericerror = unchecked((int)0x80042c2a); // -2147210198 public const int unManagedidsevalerrorincidentqueue = unchecked((int)0x80042c29); // -2147210199 public const int unManagedidsevalerrorhalt = unchecked((int)0x80042c28); // -2147210200 public const int unManagedidsevalerrorexec = unchecked((int)0x80042c27); // -2147210201 public const int unManagedidsevalerrorposturl = unchecked((int)0x80042c26); // -2147210202 public const int unManagedidsevalerrorsetstate = unchecked((int)0x80042c25); // -2147210203 public const int unManagedidsevalerrorroute = unchecked((int)0x80042c24); // -2147210204 public const int unManagedidsevalerrorupdate = unchecked((int)0x80042c23); // -2147210205 public const int unManagedidsevalerrorassign = unchecked((int)0x80042c22); // -2147210206 public const int unManagedidsevalerroremailtemplate = unchecked((int)0x80042c21); // -2147210207 public const int unManagedidsevalerrorsendemail = unchecked((int)0x80042c20); // -2147210208 public const int unManagedidsevalerrorunhandleincident = unchecked((int)0x80042c1f); // -2147210209 public const int unManagedidsevalerrorhandleincident = unchecked((int)0x80042c1e); // -2147210210 public const int unManagedidsevalerrorcreateincident = unchecked((int)0x80042c1d); // -2147210211 public const int unManagedidsevalerrornoteattachment = unchecked((int)0x80042c1c); // -2147210212 public const int unManagedidsevalerrorcreatenote = unchecked((int)0x80042c1b); // -2147210213 public const int unManagedidsevalerrorunhandleactivity = unchecked((int)0x80042c1a); // -2147210214 public const int unManagedidsevalerrorhandleactivity = unchecked((int)0x80042c19); // -2147210215 public const int unManagedidsevalerroractivityattachment = unchecked((int)0x80042c18); // -2147210216 public const int unManagedidsevalerrorcreateactivity = unchecked((int)0x80042c17); // -2147210217 public const int unManagedidsevalerrordividedbyzero = unchecked((int)0x80042c16); // -2147210218 public const int unManagedidsevalerrormodulusparameter = unchecked((int)0x80042c15); // -2147210219 public const int unManagedidsevalerrormodulusparameters = unchecked((int)0x80042c14); // -2147210220 public const int unManagedidsevalerrordivisionparameter = unchecked((int)0x80042c13); // -2147210221 public const int unManagedidsevalerrordivisionparameters = unchecked((int)0x80042c12); // -2147210222 public const int unManagedidsevalerrormultiplicationparameter = unchecked((int)0x80042c11); // -2147210223 public const int unManagedidsevalerrorsubtractionparameter = unchecked((int)0x80042c10); // -2147210224 public const int unManagedidsevalerroraddparameter = unchecked((int)0x80042c0f); // -2147210225 public const int unManagedidsevalmissselectquery = unchecked((int)0x80042c0e); // -2147210226 public const int unManagedidsevalchangetypeerror = unchecked((int)0x80042c0d); // -2147210227 public const int unManagedidsevalallcompleted = unchecked((int)0x80042c0c); // -2147210228 public const int unManagedidsevalmetabaseattributenotmatchquery = unchecked((int)0x80042c0b); // -2147210229 public const int unManagedidsevalmetabaseentitynotmatchquery = unchecked((int)0x80042c0a); // -2147210230 public const int unManagedidsevalpropertyisnull = unchecked((int)0x80042c09); // -2147210231 public const int unManagedidsevalmetabaseattributenotfound = unchecked((int)0x80042c08); // -2147210232 public const int unManagedidsevalmetabaseentitycompoundkeys = unchecked((int)0x80042c07); // -2147210233 public const int unManagedidsevalpropertynotfound = unchecked((int)0x80042c06); // -2147210234 public const int unManagedidsevalobjectnotfound = unchecked((int)0x80042c05); // -2147210235 public const int unManagedidsevalcompleted = unchecked((int)0x80042c04); // -2147210236 public const int unManagedidsevalaborted = unchecked((int)0x80042c03); // -2147210237 public const int unManagedidsevalallaborted = unchecked((int)0x80042c02); // -2147210238 public const int unManagedidsevalassignshouldhave4parameters = unchecked((int)0x80042c01); // -2147210239 public const int unManagedidsevalupdateshouldhave3parameters = unchecked((int)0x80042c00); // -2147210240 public const int unManagedidscpdecryptfailed = unchecked((int)0x80042903); // -2147211005 public const int unManagedidscpencryptfailed = unchecked((int)0x80042902); // -2147211006 public const int unManagedidscpbadpassword = unchecked((int)0x80042901); // -2147211007 public const int unManagedidscpuserdoesnotexist = unchecked((int)0x80042900); // -2147211008 public const int unManagedidsdataaccessunexpected = unchecked((int)0x80042300); // -2147212544 public const int unManagedidspropbagattributealreadyset = unchecked((int)0x8004203f); // -2147213249 public const int unManagedidspropbagattributenotnullable = unchecked((int)0x8004203e); // -2147213250 public const int unManagedidsrspropbagdbinfoalreadyset = unchecked((int)0x8004203d); // -2147213251 public const int unManagedidsrspropbagdbinfonotset = unchecked((int)0x8004203c); // -2147213252 public const int unManagedidspropbagcolloutofrange = unchecked((int)0x8004201e); // -2147213282 public const int unManagedidspropbagnullproperty = unchecked((int)0x80042002); // -2147213310 public const int unManagedidspropbagnointerface = unchecked((int)0x80042001); // -2147213311 public const int unManagedMissingObjectType = unchecked((int)0x80042003); // -2147213309 public const int unManagedObjectTypeUnexpected = unchecked((int)0x80042004); // -2147213308 public const int BusinessUnitCannotBeDisabled = unchecked((int)0x80041d59); // -2147213991 public const int BusinessUnitIsNotDisabledAndCannotBeDeleted = unchecked((int)0x80041d60); // -2147213984 public const int BusinessUnitHasChildAndCannotBeDeleted = unchecked((int)0x80041d61); // -2147213983 public const int BusinessUnitDefaultTeamOwnsRecords = unchecked((int)0x80041d62); // -2147213982 public const int RootBusinessUnitCannotBeDisabled = unchecked((int)0x80041d63); // -2147213981 public const int unManagedidspropbagpropertynotfound = unchecked((int)0x80042000); // -2147213312 public const int ReadOnlyUserNotSupported = unchecked((int)0x80041d40); // -2147214016 public const int SupportUserCannotBeCreateNorUpdated = unchecked((int)0x80041d41); // -2147214015 public const int DelegatedAdminUserCannotBeCreateNorUpdated = unchecked((int)0x80041d67); // -2147213977 public const int ApplicationUserCannotBeUpdated = unchecked((int)0x80041d48); // -2147214008 public const int ApplicationNotRegisteredWithDeployment = unchecked((int)0x80041d49); // -2147214007 public const int InvalidOAuthToken = unchecked((int)0x80041d50); // -2147214000 public const int ExpiredOAuthToken = unchecked((int)0x80041d52); // -2147213998 public const int CannotAssignRolesToSupportUser = unchecked((int)0x80041d51); // -2147213999 public const int CannotMakeSelfReadOnlyUser = unchecked((int)0x80041d39); // -2147214023 public const int CannotMakeReadOnlyUser = unchecked((int)0x80041d38); // -2147214024 public const int unManagedidsbizmgmtcantchangeorgname = unchecked((int)0x80041d36); // -2147214026 public const int MultipleOrganizationsNotAllowed = unchecked((int)0x80041d35); // -2147214027 public const int UserSettingsInvalidAdvancedFindStartupMode = unchecked((int)0x80041d34); // -2147214028 public const int UserSettingsInvalidSearchExperienceValue = unchecked((int)0x80041d53); // -2147213997 public const int CannotModifySpecialUser = unchecked((int)0x80041d33); // -2147214029 public const int unManagedidsbizmgmtcannotaddlocaluser = unchecked((int)0x80041d32); // -2147214030 public const int CannotModifySysAdmin = unchecked((int)0x80041d31); // -2147214031 public const int CannotModifySupportUser = unchecked((int)0x80041d43); // -2147214013 public const int CannotAssignSupportUser = unchecked((int)0x80041d44); // -2147214012 public const int CannotRemoveFromSupportUser = unchecked((int)0x80041d45); // -2147214011 public const int CannotCreateFromSupportUser = unchecked((int)0x80041d46); // -2147214010 public const int CannotUpdateSupportUser = unchecked((int)0x80041d47); // -2147214009 public const int CannotRemoveFromSysAdmin = unchecked((int)0x80041d30); // -2147214032 public const int CannotDisableSysAdmin = unchecked((int)0x80041d2f); // -2147214033 public const int CannotDeleteSysAdmin = unchecked((int)0x80041d2e); // -2147214034 public const int CannotDeleteSupportUser = unchecked((int)0x80041d42); // -2147214014 public const int CannotDeleteSystemCustomizer = unchecked((int)0x80041d4a); // -2147214006 public const int CannotCreateSyncUserObjectMissing = unchecked((int)0x80041d4b); // -2147214005 public const int CannotUpdateSyncUserIsLicensedField = unchecked((int)0x80041d4c); // -2147214004 public const int CannotCreateSyncUserIsLicensedField = unchecked((int)0x80041d4d); // -2147214003 public const int CannotUpdateSyncUserIsSyncWithDirectoryField = unchecked((int)0x80041d4e); // -2147214002 public const int CannotUpdateAzureActiveDirectoryObjectIdField = unchecked((int)0x80041d4f); // -2147214001 public const int unManagedidsbizmgmtcannotreadaccountcontrol = unchecked((int)0x80041d2d); // -2147214035 public const int UserAlreadyExists = unchecked((int)0x80041d2c); // -2147214036 public const int unManagedidsbizmgmtusersettingsnotcreated = unchecked((int)0x80041d2b); // -2147214037 public const int ObjectNotFoundInAD = unchecked((int)0x80041d2a); // -2147214038 public const int GenericActiveDirectoryError = unchecked((int)0x80041d37); // -2147214025 public const int GenericAzureActiveDirectoryError = unchecked((int)0x80041d54); // -2147213996 public const int unManagedidsbizmgmtnoparentbusiness = unchecked((int)0x80041d29); // -2147214039 public const int ParentUserDoesNotExist = unchecked((int)0x80041d27); // -2147214041 public const int ChildUserDoesNotExist = unchecked((int)0x80041d26); // -2147214042 public const int UserLoopBeingCreated = unchecked((int)0x80041d25); // -2147214043 public const int UserLoopExists = unchecked((int)0x80041d24); // -2147214044 public const int ParentBusinessDoesNotExist = unchecked((int)0x80041d23); // -2147214045 public const int ChildBusinessDoesNotExist = unchecked((int)0x80041d22); // -2147214046 public const int BusinessManagementLoopBeingCreated = unchecked((int)0x80041d21); // -2147214047 public const int BusinessManagementLoopExists = unchecked((int)0x80041d20); // -2147214048 public const int BusinessManagementInvalidUserId = unchecked((int)0x80041d1f); // -2147214049 public const int unManagedidsbizmgmtuserdoesnothaveparent = unchecked((int)0x80041d1e); // -2147214050 public const int unManagedidsbizmgmtcannotenableprovision = unchecked((int)0x80041d1d); // -2147214051 public const int unManagedidsbizmgmtcannotenablebusiness = unchecked((int)0x80041d1c); // -2147214052 public const int unManagedidsbizmgmtcannotdisableprovision = unchecked((int)0x80041d1b); // -2147214053 public const int unManagedidsbizmgmtcannotdisablebusiness = unchecked((int)0x80041d1a); // -2147214054 public const int unManagedidsbizmgmtcannotdeleteprovision = unchecked((int)0x80041d19); // -2147214055 public const int unManagedidsbizmgmtcannotdeletebusiness = unchecked((int)0x80041d18); // -2147214056 public const int unManagedidsbizmgmtcannotremovepartnershipdefaultuser = unchecked((int)0x80041d17); // -2147214057 public const int unManagedidsbizmgmtpartnershipnotinpendingstatus = unchecked((int)0x80041d16); // -2147214058 public const int unManagedidsbizmgmtdefaultusernotinpartnerbusiness = unchecked((int)0x80041d15); // -2147214059 public const int unManagedidsbizmgmtcallernotinpartnerbusiness = unchecked((int)0x80041d14); // -2147214060 public const int unManagedidsbizmgmtdefaultusernotinprimarybusiness = unchecked((int)0x80041d13); // -2147214061 public const int unManagedidsbizmgmtcallernotinprimarybusiness = unchecked((int)0x80041d12); // -2147214062 public const int unManagedidsbizmgmtpartnershipalreadyexists = unchecked((int)0x80041d11); // -2147214063 public const int unManagedidsbizmgmtprimarysameaspartner = unchecked((int)0x80041d10); // -2147214064 public const int unManagedidsbizmgmtmisspartnerbusiness = unchecked((int)0x80041d0f); // -2147214065 public const int unManagedidsbizmgmtmissprimarybusiness = unchecked((int)0x80041d0e); // -2147214066 public const int InvalidAccessModeTransition = unchecked((int)0x80041d66); // -2147213978 public const int MissingTeamName = unchecked((int)0x80041d0b); // -2147214069 public const int TeamAdministratorMissedPrivilege = unchecked((int)0x80041d0a); // -2147214070 public const int CannotDisableTenantAdmin = unchecked((int)0x80041d65); // -2147213979 public const int CannotRemoveTenantAdminFromSysAdminRole = unchecked((int)0x80041d64); // -2147213980 public const int UserNotInParentHierarchy = unchecked((int)0x80041d07); // -2147214073 public const int unManagedidsbizmgmtusercannotbeownparent = unchecked((int)0x80041d06); // -2147214074 public const int unManagedidsbizmgmtcannotmovedefaultuser = unchecked((int)0x80041d05); // -2147214075 public const int unManagedidsbizmgmtbusinessparentdiffmerchant = unchecked((int)0x80041d04); // -2147214076 public const int unManagedidsbizmgmtdefaultusernotinbusiness = unchecked((int)0x80041d03); // -2147214077 public const int unManagedidsbizmgmtmissparentbusiness = unchecked((int)0x80041d02); // -2147214078 public const int unManagedidsbizmgmtmissuserdomainname = unchecked((int)0x80041d01); // -2147214079 public const int unManagedidsbizmgmtmissbusinessname = unchecked((int)0x80041d00); // -2147214080 public const int unManagedidsxmlinvalidread = unchecked((int)0x80041a08); // -2147214840 public const int unManagedidsxmlinvalidfield = unchecked((int)0x80041a07); // -2147214841 public const int unManagedidsxmlinvalidentityattributes = unchecked((int)0x80041a06); // -2147214842 public const int unManagedidsxmlunexpected = unchecked((int)0x80041a05); // -2147214843 public const int unManagedidsxmlparseerror = unchecked((int)0x80041a04); // -2147214844 public const int unManagedidsxmlinvalidcollectionname = unchecked((int)0x80041a03); // -2147214845 public const int unManagedidsxmlinvalidupdate = unchecked((int)0x80041a02); // -2147214846 public const int unManagedidsxmlinvalidcreate = unchecked((int)0x80041a01); // -2147214847 public const int unManagedidsxmlinvalidentityname = unchecked((int)0x80041a00); // -2147214848 public const int unManagedidsnotesnoattachment = unchecked((int)0x80041704); // -2147215612 public const int unManagedidsnotesloopbeingcreated = unchecked((int)0x80041703); // -2147215613 public const int unManagedidsnotesloopexists = unchecked((int)0x80041702); // -2147215614 public const int unManagedidsnotesalreadyattached = unchecked((int)0x80041701); // -2147215615 public const int unManagedidsnotesnotedoesnotexist = unchecked((int)0x80041700); // -2147215616 public const int DuplicatedPrivilege = unchecked((int)0x8004140f); // -2147216369 public const int MemberHasAlreadyBeenContacted = unchecked((int)0x8004140e); // -2147216370 public const int TeamInWrongBusiness = unchecked((int)0x8004140d); // -2147216371 public const int unManagedidsrolesdeletenonparentrole = unchecked((int)0x8004140c); // -2147216372 public const int InvalidPrivilegeDepth = unchecked((int)0x8004140b); // -2147216373 public const int unManagedidsrolesinvalidrolename = unchecked((int)0x8004140a); // -2147216374 public const int UserInWrongBusiness = unchecked((int)0x80041409); // -2147216375 public const int unManagedidsrolesmissprivid = unchecked((int)0x80041408); // -2147216376 public const int unManagedidsrolesmissrolename = unchecked((int)0x80041407); // -2147216377 public const int unManagedidsrolesmissbusinessid = unchecked((int)0x80041406); // -2147216378 public const int unManagedidsrolesmissroleid = unchecked((int)0x80041405); // -2147216379 public const int unManagedidsrolesinvalidtemplateid = unchecked((int)0x80041404); // -2147216380 public const int RoleAlreadyExists = unchecked((int)0x80041403); // -2147216381 public const int unManagedidsrolesroledoesnotexist = unchecked((int)0x80041402); // -2147216382 public const int unManagedidsrolesinvalidroleid = unchecked((int)0x80041401); // -2147216383 public const int unManagedidsrolesinvalidroledata = unchecked((int)0x80041400); // -2147216384 public const int QueryBuilderNoEntityKey = unchecked((int)0x80041140); // -2147217088 public const int QueryBuilderInvalidAttributeValue = unchecked((int)0x80041139); // -2147217095 public const int QueryBuilderSerializationInvalidIsQuickFindFilter = unchecked((int)0x80041138); // -2147217096 public const int QueryBuilderAttributeCannotBeGroupByAndAggregate = unchecked((int)0x80041137); // -2147217097 public const int SqlArithmeticOverflowError = unchecked((int)0x80041136); // -2147217098 public const int QueryBuilderInvalidDateGrouping = unchecked((int)0x80041135); // -2147217099 public const int QueryBuilderAliasRequiredForAggregateOrderBy = unchecked((int)0x80041134); // -2147217100 public const int QueryBuilderAttributeRequiredForNonAggregateOrderBy = unchecked((int)0x80041133); // -2147217101 public const int QueryBuilderAliasNotAllowedForNonAggregateOrderBy = unchecked((int)0x80041132); // -2147217102 public const int QueryBuilderAttributeNotAllowedForAggregateOrderBy = unchecked((int)0x80041131); // -2147217103 public const int QueryBuilderDuplicateAlias = unchecked((int)0x80041130); // -2147217104 public const int QueryBuilderInvalidAggregateAttribute = unchecked((int)0x8004112f); // -2147217105 public const int QueryBuilderDeserializeInvalidGroupBy = unchecked((int)0x8004112e); // -2147217106 public const int QueryBuilderNoAttrsDistinctConflict = unchecked((int)0x8004112c); // -2147217108 public const int QueryBuilderInvalidPagingCookie = unchecked((int)0x8004112a); // -2147217110 public const int QueryBuilderPagingOrderBy = unchecked((int)0x80041129); // -2147217111 public const int QueryBuilderEntitiesDontMatch = unchecked((int)0x80041128); // -2147217112 public const int QueryBuilderLinkNodeForOrderNotFound = unchecked((int)0x80041126); // -2147217114 public const int QueryBuilderDeserializeNoDocElemXml = unchecked((int)0x80041125); // -2147217115 public const int QueryBuilderDeserializeEmptyXml = unchecked((int)0x80041124); // -2147217116 public const int QueryBuilderElementNotFound = unchecked((int)0x80041123); // -2147217117 public const int QueryBuilderInvalidFilterType = unchecked((int)0x80041122); // -2147217118 public const int QueryBuilderInvalidJoinOperator = unchecked((int)0x80041121); // -2147217119 public const int QueryBuilderInvalidConditionOperator = unchecked((int)0x80041120); // -2147217120 public const int QueryBuilderInvalidOrderType = unchecked((int)0x8004111f); // -2147217121 public const int QueryBuilderAttributeNotFound = unchecked((int)0x8004111e); // -2147217122 public const int QueryBuilderDeserializeInvalidUtcOffset = unchecked((int)0x8004111d); // -2147217123 public const int QueryBuilderDeserializeInvalidNode = unchecked((int)0x8004111c); // -2147217124 public const int QueryBuilderDeserializeInvalidGetMinActiveRowVersion = unchecked((int)0x8004111b); // -2147217125 public const int QueryBuilderDeserializeInvalidAggregate = unchecked((int)0x8004111a); // -2147217126 public const int QueryBuilderDeserializeInvalidDescending = unchecked((int)0x80041119); // -2147217127 public const int QueryBuilderDeserializeInvalidNoLock = unchecked((int)0x80041118); // -2147217128 public const int QueryBuilderDeserializeInvalidLinkType = unchecked((int)0x80041117); // -2147217129 public const int QueryBuilderDeserializeInvalidMapping = unchecked((int)0x80041116); // -2147217130 public const int QueryBuilderDeserializeInvalidDistinct = unchecked((int)0x80041115); // -2147217131 public const int QueryBuilderSerialzeLinkTopCriteria = unchecked((int)0x80041114); // -2147217132 public const int QueryBuilderColumnSetVersionMissing = unchecked((int)0x80041113); // -2147217133 public const int QueryBuilderInvalidColumnSetVersion = unchecked((int)0x80041112); // -2147217134 public const int QueryBuilderAttributePairMismatch = unchecked((int)0x80041111); // -2147217135 public const int QueryBuilderByAttributeNonEmpty = unchecked((int)0x80041110); // -2147217136 public const int QueryBuilderByAttributeMismatch = unchecked((int)0x8004110f); // -2147217137 public const int QueryBuilderMultipleIntersectEntities = unchecked((int)0x8004110e); // -2147217138 public const int QueryBuilderReportView_Does_Not_Exist = unchecked((int)0x8004110d); // -2147217139 public const int QueryBuilderValue_GreaterThanZero = unchecked((int)0x8004110c); // -2147217140 public const int QueryBuilderNoAlias = unchecked((int)0x8004110b); // -2147217141 public const int QueryBuilderAlias_Does_Not_Exist = unchecked((int)0x8004110a); // -2147217142 public const int QueryBuilderInvalid_Alias = unchecked((int)0x80041109); // -2147217143 public const int QueryBuilderInvalid_Value = unchecked((int)0x80041108); // -2147217144 public const int QueryBuilderAttribute_With_Aggregate = unchecked((int)0x80041107); // -2147217145 public const int QueryBuilderBad_Condition = unchecked((int)0x80041106); // -2147217146 public const int QueryBuilderNoAttribute = unchecked((int)0x80041103); // -2147217149 public const int QueryBuilderNoEntity = unchecked((int)0x80041102); // -2147217150 public const int QueryBuilderUnexpected = unchecked((int)0x80041101); // -2147217151 public const int QueryBuilderInvalidUpdate = unchecked((int)0x80041100); // -2147217152 public const int QueryBuilderInvalidLogicalOperator = unchecked((int)0x800410fe); // -2147217154 public const int unManagedidsmetadatanorelationship = unchecked((int)0x80040e02); // -2147217918 public const int MetadataNoMapping = unchecked((int)0x80040e01); // -2147217919 public const int MetadataNotSerializable = unchecked((int)0x80040e03); // -2147217917 public const int unManagedidsmetadatanoentity = unchecked((int)0x80040e00); // -2147217920 public const int unManagedidscommunicationsnosenderaddress = unchecked((int)0x80040b08); // -2147218680 public const int unManagedidscommunicationstemplateinvalidtemplate = unchecked((int)0x80040b07); // -2147218681 public const int unManagedidscommunicationsnoparticipationmask = unchecked((int)0x80040b06); // -2147218682 public const int unManagedidscommunicationsnorecipients = unchecked((int)0x80040b05); // -2147218683 public const int EmailRecipientNotSpecified = unchecked((int)0x80040b04); // -2147218684 public const int unManagedidscommunicationsnosender = unchecked((int)0x80040b02); // -2147218686 public const int unManagedidscommunicationsbadsender = unchecked((int)0x80040b01); // -2147218687 public const int unManagedidscommunicationsnopartyaddress = unchecked((int)0x80040b00); // -2147218688 public const int unManagedidsjournalingmissingincidentid = unchecked((int)0x80040809); // -2147219447 public const int unManagedidsjournalingmissingcontactid = unchecked((int)0x80040808); // -2147219448 public const int unManagedidsjournalingmissingopportunityid = unchecked((int)0x80040807); // -2147219449 public const int unManagedidsjournalingmissingaccountid = unchecked((int)0x80040806); // -2147219450 public const int unManagedidsjournalingmissingleadid = unchecked((int)0x80040805); // -2147219451 public const int unManagedidsjournalingmissingeventtype = unchecked((int)0x80040804); // -2147219452 public const int unManagedidsjournalinginvalideventtype = unchecked((int)0x80040803); // -2147219453 public const int unManagedidsjournalingmissingeventdirection = unchecked((int)0x80040802); // -2147219454 public const int unManagedidsjournalingunsupportedobjecttype = unchecked((int)0x80040801); // -2147219455 public const int SdkEntityDoesNotSupportMessage = unchecked((int)0x80040800); // -2147219456 public const int OpportunityAlreadyInOpenState = unchecked((int)0x8004051a); // -2147220198 public const int LeadAlreadyInClosedState = unchecked((int)0x80040519); // -2147220199 public const int LeadAlreadyInOpenState = unchecked((int)0x80040518); // -2147220200 public const int CustomerIsInactive = unchecked((int)0x80040517); // -2147220201 public const int OpportunityCannotBeClosed = unchecked((int)0x80040516); // -2147220202 public const int OpportunityIsAlreadyClosed = unchecked((int)0x80040515); // -2147220203 public const int unManagedidscustomeraddresstypeinvalid = unchecked((int)0x80040514); // -2147220204 public const int unManagedidsleadnotassignedtocaller = unchecked((int)0x80040513); // -2147220205 public const int unManagedidscontacthaschildopportunities = unchecked((int)0x80040512); // -2147220206 public const int unManagedidsaccounthaschildopportunities = unchecked((int)0x80040511); // -2147220207 public const int unManagedidsleadoneaccount = unchecked((int)0x80040510); // -2147220208 public const int unManagedidsopportunityorphan = unchecked((int)0x8004050f); // -2147220209 public const int unManagedidsopportunityoneaccount = unchecked((int)0x8004050e); // -2147220210 public const int unManagedidsleadusercannotreject = unchecked((int)0x8004050d); // -2147220211 public const int unManagedidsleadnotassigned = unchecked((int)0x8004050c); // -2147220212 public const int unManagedidsleadnoparent = unchecked((int)0x8004050b); // -2147220213 public const int ContactLoopBeingCreated = unchecked((int)0x8004050a); // -2147220214 public const int ContactLoopExists = unchecked((int)0x80040509); // -2147220215 public const int PresentParentAccountAndParentContact = unchecked((int)0x80040508); // -2147220216 public const int AccountLoopBeingCreated = unchecked((int)0x80040507); // -2147220217 public const int AccountLoopExists = unchecked((int)0x80040506); // -2147220218 public const int unManagedidsopportunitymissingparent = unchecked((int)0x80040505); // -2147220219 public const int unManagedidsopportunityinvalidparent = unchecked((int)0x80040504); // -2147220220 public const int ContactDoesNotExist = unchecked((int)0x80040503); // -2147220221 public const int AccountDoesNotExist = unchecked((int)0x80040502); // -2147220222 public const int unManagedidsleaddoesnotexist = unchecked((int)0x80040501); // -2147220223 public const int unManagedidsopportunitydoesnotexist = unchecked((int)0x80040500); // -2147220224 public const int ReportDoesNotExist = unchecked((int)0x80040499); // -2147220327 public const int ReportLoopBeingCreated = unchecked((int)0x80040498); // -2147220328 public const int ReportLoopExists = unchecked((int)0x80040497); // -2147220329 public const int ParentReportLinksToSameNameChild = unchecked((int)0x80040496); // -2147220330 public const int DuplicateReportVisibility = unchecked((int)0x80040495); // -2147220331 public const int ReportRenderError = unchecked((int)0x80040494); // -2147220332 public const int SubReportDoesNotExist = unchecked((int)0x80040493); // -2147220333 public const int SrsDataConnectorNotInstalled = unchecked((int)0x80040492); // -2147220334 public const int InvalidCustomReportingWizardXml = unchecked((int)0x80040491); // -2147220335 public const int UpdateNonCustomReportFromTemplate = unchecked((int)0x80040490); // -2147220336 public const int SnapshotReportNotReady = unchecked((int)0x80040489); // -2147220343 public const int ExistingExternalReport = unchecked((int)0x80040488); // -2147220344 public const int ParentReportNotSupported = unchecked((int)0x80040487); // -2147220345 public const int ParentReportDoesNotReferenceChild = unchecked((int)0x80040486); // -2147220346 public const int MultipleParentReportsFound = unchecked((int)0x80040485); // -2147220347 public const int ReportingServicesReportExpected = unchecked((int)0x80040484); // -2147220348 public const int InvalidTransformationParameter = unchecked((int)0x80040389); // -2147220599 public const int ReflexiveEntityParentOrChildDoesNotExist = unchecked((int)0x80040388); // -2147220600 public const int EntityLoopBeingCreated = unchecked((int)0x80040387); // -2147220601 public const int EntityLoopExists = unchecked((int)0x80040386); // -2147220602 public const int UnsupportedProcessCode = unchecked((int)0x80040385); // -2147220603 public const int NoOutputTransformationParameterMappingFound = unchecked((int)0x80040384); // -2147220604 public const int RequiredColumnsNotFoundInImportFile = unchecked((int)0x80040383); // -2147220605 public const int InvalidTransformationParameterMapping = unchecked((int)0x80040382); // -2147220606 public const int UnmappedTransformationOutputDataFound = unchecked((int)0x80040381); // -2147220607 public const int InvalidTransformationParameterDataType = unchecked((int)0x80040380); // -2147220608 public const int ArrayMappingFoundForSingletonParameter = unchecked((int)0x8004037f); // -2147220609 public const int SingletonMappingFoundForArrayParameter = unchecked((int)0x8004037e); // -2147220610 public const int IncompleteTransformationParameterMappingsFound = unchecked((int)0x8004037d); // -2147220611 public const int InvalidTransformationParameterMappings = unchecked((int)0x8004037c); // -2147220612 public const int GenericTransformationInvocationError = unchecked((int)0x8004037b); // -2147220613 public const int InvalidTransformationType = unchecked((int)0x8004037a); // -2147220614 public const int UnableToLoadTransformationType = unchecked((int)0x80040379); // -2147220615 public const int UnableToLoadTransformationAssembly = unchecked((int)0x80040378); // -2147220616 public const int InvalidColumnMapping = unchecked((int)0x80040377); // -2147220617 public const int CannotModifyOldDataFromImport = unchecked((int)0x80040376); // -2147220618 public const int ImportFileTooLargeToUpload = unchecked((int)0x80040375); // -2147220619 public const int InvalidImportFileContent = unchecked((int)0x80040374); // -2147220620 public const int EmptyRecord = unchecked((int)0x80040373); // -2147220621 public const int LongParseRow = unchecked((int)0x80040372); // -2147220622 public const int ParseMustBeCalledBeforeTransform = unchecked((int)0x80040371); // -2147220623 public const int HeaderValueDoesNotMatchAttributeDisplayLabel = unchecked((int)0x80040370); // -2147220624 public const int InvalidTargetEntity = unchecked((int)0x80040369); // -2147220631 public const int NoHeaderColumnFound = unchecked((int)0x80040368); // -2147220632 public const int ParsingMetadataNotFound = unchecked((int)0x80040367); // -2147220633 public const int EmptyHeaderRow = unchecked((int)0x80040366); // -2147220634 public const int EmptyContent = unchecked((int)0x80040365); // -2147220635 public const int InvalidIsFirstRowHeaderForUseSystemMap = unchecked((int)0x80040364); // -2147220636 public const int InvalidGuid = unchecked((int)0x80040363); // -2147220637 public const int GuidNotPresent = unchecked((int)0x80040362); // -2147220638 public const int OwnerValueNotMapped = unchecked((int)0x80040361); // -2147220639 public const int PicklistValueNotMapped = unchecked((int)0x80040360); // -2147220640 public const int ErrorInDelete = unchecked((int)0x8004035a); // -2147220646 public const int ErrorIncreate = unchecked((int)0x80040359); // -2147220647 public const int ErrorInUpdate = unchecked((int)0x80040358); // -2147220648 public const int ErrorInSetState = unchecked((int)0x80040357); // -2147220649 public const int InvalidDataFormat = unchecked((int)0x80040356); // -2147220650 public const int InvalidFormatForDataDelimiter = unchecked((int)0x80040355); // -2147220651 public const int CRMUserDoesNotExist = unchecked((int)0x80040354); // -2147220652 public const int LookupNotFound = unchecked((int)0x80040353); // -2147220653 public const int DuplicateLookupFound = unchecked((int)0x80040352); // -2147220654 public const int InvalidImportFileData = unchecked((int)0x80040351); // -2147220655 public const int InvalidXmlSSContent = unchecked((int)0x80040350); // -2147220656 public const int InvalidImportFileParseData = unchecked((int)0x80040349); // -2147220663 public const int InvalidValueForFileType = unchecked((int)0x80040348); // -2147220664 public const int EmptyImportFileRow = unchecked((int)0x80040347); // -2147220665 public const int ErrorInParseRow = unchecked((int)0x80040346); // -2147220666 public const int DataColumnsNumberMismatch = unchecked((int)0x80040345); // -2147220667 public const int InvalidHeaderColumn = unchecked((int)0x80040344); // -2147220668 public const int OwnerMappingExistsWithSourceSystemUserName = unchecked((int)0x80040343); // -2147220669 public const int PickListMappingExistsWithSourceValue = unchecked((int)0x80040342); // -2147220670 public const int InvalidValueForDataDelimiter = unchecked((int)0x80040341); // -2147220671 public const int InvalidValueForFieldDelimiter = unchecked((int)0x80040340); // -2147220672 public const int PickListMappingExistsForTargetValue = unchecked((int)0x8004033f); // -2147220673 public const int MappingExistsForTargetAttribute = unchecked((int)0x8004033e); // -2147220674 public const int SourceEntityMappedToMultipleTargets = unchecked((int)0x8004033d); // -2147220675 public const int AttributeNotOfTypePicklist = unchecked((int)0x8004033c); // -2147220676 public const int AttributeNotOfTypeReference = unchecked((int)0x80040390); // -2147220592 public const int TargetEntityNotFound = unchecked((int)0x80040391); // -2147220591 public const int TargetAttributeNotFound = unchecked((int)0x80040392); // -2147220590 public const int PicklistValueNotFound = unchecked((int)0x80040393); // -2147220589 public const int TargetAttributeInvalidForMap = unchecked((int)0x80040394); // -2147220588 public const int TargetEntityInvalidForMap = unchecked((int)0x80040395); // -2147220587 public const int InvalidFileBadCharacters = unchecked((int)0x80040396); // -2147220586 public const int ErrorsInImportFiles = unchecked((int)0x8004034a); // -2147220662 public const int InvalidOperationWhenListIsNotActive = unchecked((int)0x8004033a); // -2147220678 public const int InvalidOperationWhenPartyIsNotActive = unchecked((int)0x8004033b); // -2147220677 public const int AsyncOperationSuspendedOrLocked = unchecked((int)0x80040339); // -2147220679 public const int DuplicateHeaderColumn = unchecked((int)0x80040338); // -2147220680 public const int EmptyHeaderColumn = unchecked((int)0x80040337); // -2147220681 public const int InvalidColumnNumber = unchecked((int)0x80040336); // -2147220682 public const int TransformMustBeCalledBeforeImport = unchecked((int)0x80040335); // -2147220683 public const int OperationCanBeCalledOnlyOnce = unchecked((int)0x80040334); // -2147220684 public const int DuplicateRecordsFound = unchecked((int)0x80040333); // -2147220685 public const int CampaignActivityClosed = unchecked((int)0x80040331); // -2147220687 public const int UnexpectedErrorInMailMerge = unchecked((int)0x80040330); // -2147220688 public const int UserCancelledMailMerge = unchecked((int)0x8004032f); // -2147220689 public const int FilteredDuetoMissingEmailAddress = unchecked((int)0x8004032e); // -2147220690 public const int CannotDeleteAsBackgroundOperationInProgress = unchecked((int)0x8004032b); // -2147220693 public const int FilteredDuetoInactiveState = unchecked((int)0x8004032a); // -2147220694 public const int MissingBOWFRules = unchecked((int)0x80040329); // -2147220695 public const int AsyncOperationPostponed = unchecked((int)0x80040328); // -2147220696 public const int CannotSpecifyOwnerForActivityPropagation = unchecked((int)0x80040327); // -2147220697 public const int CampaignActivityAlreadyPropagated = unchecked((int)0x80040326); // -2147220698 public const int FilteredDuetoAntiSpam = unchecked((int)0x80040325); // -2147220699 public const int TemplateTypeNotSupportedForUnsubscribeAcknowledgement = unchecked((int)0x80040324); // -2147220700 public const int ErrorInImportConfig = unchecked((int)0x80040323); // -2147220701 public const int ImportConfigNotSpecified = unchecked((int)0x80040322); // -2147220702 public const int InvalidActivityType = unchecked((int)0x80040321); // -2147220703 public const int UnsupportedParameter = unchecked((int)0x80040320); // -2147220704 public const int MissingParameter = unchecked((int)0x8004031f); // -2147220705 public const int CannotSpecifyCommunicationAttributeOnActivityForPropagation = unchecked((int)0x8004031e); // -2147220706 public const int CannotSpecifyRecipientForActivityPropagation = unchecked((int)0x8004031d); // -2147220707 public const int CannotSpecifyAttendeeForAppointmentPropagation = unchecked((int)0x8004031c); // -2147220708 public const int CannotSpecifySenderForActivityPropagation = unchecked((int)0x8004031b); // -2147220709 public const int CannotSpecifyOrganizerForAppointmentPropagation = unchecked((int)0x8004031a); // -2147220710 public const int InvalidRegardingObjectTypeCode = unchecked((int)0x80040319); // -2147220711 public const int UnspecifiedActivityXmlForCampaignActivityPropagate = unchecked((int)0x80040318); // -2147220712 public const int MoneySizeExceeded = unchecked((int)0x80040317); // -2147220713 public const int ExtraPartyInformation = unchecked((int)0x80040316); // -2147220714 public const int NotSupported = unchecked((int)0x80040315); // -2147220715 public const int InvalidOperationForClosedOrCancelledCampaignActivity = unchecked((int)0x80040314); // -2147220716 public const int InvalidEmailTemplate = unchecked((int)0x80040313); // -2147220717 public const int CannotCreateResponseForTemplate = unchecked((int)0x80040312); // -2147220718 public const int CannotPropagateCamapaignActivityForTemplate = unchecked((int)0x80040311); // -2147220719 public const int InvalidChannelForCampaignActivityPropagate = unchecked((int)0x80040310); // -2147220720 public const int InvalidActivityTypeForCampaignActivityPropagate = unchecked((int)0x8004030f); // -2147220721 public const int ObjectNotRelatedToCampaign = unchecked((int)0x8004030e); // -2147220722 public const int CannotRelateObjectTypeToCampaignActivity = unchecked((int)0x8004030d); // -2147220723 public const int CannotUpdateCampaignForCampaignResponse = unchecked((int)0x8004030c); // -2147220724 public const int CannotUpdateCampaignForCampaignActivity = unchecked((int)0x8004030b); // -2147220725 public const int CampaignNotSpecifiedForCampaignResponse = unchecked((int)0x8004030a); // -2147220726 public const int CampaignNotSpecifiedForCampaignActivity = unchecked((int)0x80040309); // -2147220727 public const int CannotRelateObjectTypeToCampaign = unchecked((int)0x80040307); // -2147220729 public const int CannotCopyIncompatibleListType = unchecked((int)0x80040306); // -2147220730 public const int InvalidActivityTypeForList = unchecked((int)0x80040305); // -2147220731 public const int CannotAssociateInactiveItemToCampaign = unchecked((int)0x80040304); // -2147220732 public const int InvalidFetchXml = unchecked((int)0x80040303); // -2147220733 public const int InvalidOperationWhenListLocked = unchecked((int)0x80040302); // -2147220734 public const int UnsupportedListMemberType = unchecked((int)0x80040301); // -2147220735 public const int InvalidPrimaryKey = unchecked((int)0x80040266); // -2147220890 public const int IsvAborted = unchecked((int)0x80040265); // -2147220891 public const int CannotAssignOutlookFilters = unchecked((int)0x80040264); // -2147220892 public const int CannotCreateOutlookFilters = unchecked((int)0x80040263); // -2147220893 public const int CannotGrantAccessToOutlookFilters = unchecked((int)0x80040268); // -2147220888 public const int CannotModifyAccessToOutlookFilters = unchecked((int)0x80040269); // -2147220887 public const int CannotRevokeAccessToOutlookFilters = unchecked((int)0x80040270); // -2147220880 public const int CannotGrantAccessToOfflineFilters = unchecked((int)0x80040271); // -2147220879 public const int CannotModifyAccessToOfflineFilters = unchecked((int)0x80040272); // -2147220878 public const int CannotRevokeAccessToOfflineFilters = unchecked((int)0x80040273); // -2147220877 public const int DuplicateOutlookAppointment = unchecked((int)0x80040274); // -2147220876 public const int AppointmentScheduleNotSet = unchecked((int)0x80040275); // -2147220875 public const int PrivilegeCreateIsDisabledForOrganization = unchecked((int)0x80040276); // -2147220874 public const int UnauthorizedAccess = unchecked((int)0x80040277); // -2147220873 public const int InvalidCharactersInField = unchecked((int)0x80040278); // -2147220872 public const int CannotChangeStateOfNonpublicView = unchecked((int)0x80040279); // -2147220871 public const int CannotDeactivateDefaultView = unchecked((int)0x8004027a); // -2147220870 public const int CannotSetInactiveViewAsDefault = unchecked((int)0x8004027b); // -2147220869 public const int CannotExceedFilterLimit = unchecked((int)0x8004027c); // -2147220868 public const int CannotHaveMultipleDefaultFilterTemplates = unchecked((int)0x8004027d); // -2147220867 public const int CrmConstraintParsingError = unchecked((int)0x80040262); // -2147220894 public const int CrmConstraintEvaluationError = unchecked((int)0x80040261); // -2147220895 public const int CrmExpressionEvaluationError = unchecked((int)0x80040260); // -2147220896 public const int CrmExpressionParametersParsingError = unchecked((int)0x8004025f); // -2147220897 public const int CrmExpressionBodyParsingError = unchecked((int)0x8004025e); // -2147220898 public const int CrmExpressionParsingError = unchecked((int)0x8004025d); // -2147220899 public const int CrmMalformedExpressionError = unchecked((int)0x8004025c); // -2147220900 public const int CalloutException = unchecked((int)0x8004025b); // -2147220901 public const int DateTimeFormatFailed = unchecked((int)0x8004025a); // -2147220902 public const int NumberFormatFailed = unchecked((int)0x80040259); // -2147220903 public const int InvalidRestore = unchecked((int)0x80040258); // -2147220904 public const int InvalidCaller = unchecked((int)0x80040257); // -2147220905 public const int CrmSecurityError = unchecked((int)0x80040256); // -2147220906 public const int TransactionAborted = unchecked((int)0x80040255); // -2147220907 public const int CannotBindToSession = unchecked((int)0x80040254); // -2147220908 public const int SessionTokenUnavailable = unchecked((int)0x80040253); // -2147220909 public const int TransactionNotCommited = unchecked((int)0x80040252); // -2147220910 public const int TransactionNotStarted = unchecked((int)0x80040251); // -2147220911 public const int MultipleChildPicklist = unchecked((int)0x80040250); // -2147220912 public const int InvalidSingletonResults = unchecked((int)0x8004024f); // -2147220913 public const int FailedToLoadAssembly = unchecked((int)0x8004024e); // -2147220914 public const int CrmQueryExpressionNotInitialized = unchecked((int)0x8004024d); // -2147220915 public const int InvalidRegistryKey = unchecked((int)0x8004024c); // -2147220916 public const int InvalidPriv = unchecked((int)0x8004024b); // -2147220917 public const int MetadataNotFound = unchecked((int)0x8004024a); // -2147220918 public const int InvalidEntityClassException = unchecked((int)0x80040249); // -2147220919 public const int InvalidXmlEntityNameException = unchecked((int)0x80040248); // -2147220920 public const int InvalidXmlCollectionNameException = unchecked((int)0x80040247); // -2147220921 public const int InvalidRecurrenceRule = unchecked((int)0x80040246); // -2147220922 public const int CrmImpersonationError = unchecked((int)0x80040245); // -2147220923 public const int ServiceInstantiationFailed = unchecked((int)0x80040244); // -2147220924 public const int EntityInstantiationFailed = unchecked((int)0x80040243); // -2147220925 public const int FormTransitionError = unchecked((int)0x80040242); // -2147220926 public const int UserTimeConvertException = unchecked((int)0x80040241); // -2147220927 public const int UserTimeZoneException = unchecked((int)0x80040240); // -2147220928 public const int InvalidConnectionString = unchecked((int)0x8004023f); // -2147220929 public const int OpenCrmDBConnection = unchecked((int)0x8004023e); // -2147220930 public const int UnpopulatedPrimaryKey = unchecked((int)0x8004023d); // -2147220931 public const int InvalidVersion = unchecked((int)0x8004023c); // -2147220932 public const int InvalidOperation = unchecked((int)0x8004023b); // -2147220933 public const int InvalidMetadata = unchecked((int)0x8004023a); // -2147220934 public const int InvalidDateTime = unchecked((int)0x80040239); // -2147220935 public const int unManagedidscannotdefaultprivateview = unchecked((int)0x80040238); // -2147220936 public const int DuplicateRecord = unchecked((int)0x80040237); // -2147220937 public const int unManagedidsnorelationship = unchecked((int)0x80040236); // -2147220938 public const int MissingQueryType = unchecked((int)0x80040235); // -2147220939 public const int InvalidRollupType = unchecked((int)0x80040234); // -2147220940 public const int InvalidState = unchecked((int)0x80040233); // -2147220941 public const int unManagedidsviewisnotsharable = unchecked((int)0x80040232); // -2147220942 public const int PrincipalPrivilegeDenied = unchecked((int)0x80040231); // -2147220943 public const int CannotUpdateObjectBecauseItIsInactive = unchecked((int)0x80040230); // -2147220944 public const int CannotDeleteCannedView = unchecked((int)0x8004022f); // -2147220945 public const int CannotUpdateBecauseItIsReadOnly = unchecked((int)0x8004022e); // -2147220946 public const int CaseAlreadyResolved = unchecked((int)0x800404cf); // -2147220273 public const int InvalidCustomer = unchecked((int)0x8004022d); // -2147220947 public const int unManagedidsdataoutofrange = unchecked((int)0x8004022c); // -2147220948 public const int unManagedidsownernotenabled = unchecked((int)0x8004022b); // -2147220949 public const int BusinessManagementObjectAlreadyExists = unchecked((int)0x8004022a); // -2147220950 public const int InvalidOwnerID = unchecked((int)0x80040229); // -2147220951 public const int CannotDeleteAsItIsReadOnly = unchecked((int)0x80040228); // -2147220952 public const int CannotDeleteDueToAssociation = unchecked((int)0x80040227); // -2147220953 public const int unManagedidsanonymousenabled = unchecked((int)0x80040226); // -2147220954 public const int unManagedidsusernotenabled = unchecked((int)0x80040225); // -2147220955 public const int BusinessNotEnabled = unchecked((int)0x8004032c); // -2147220692 public const int CannotAssignToDisabledBusiness = unchecked((int)0x8004032d); // -2147220691 public const int IsvUnExpected = unchecked((int)0x80040224); // -2147220956 public const int OnlyOwnerCanRevoke = unchecked((int)0x80040223); // -2147220957 public const int unManagedidsoutofmemory = unchecked((int)0x80040222); // -2147220958 public const int unManagedidscannotassigntobusiness = unchecked((int)0x80040221); // -2147220959 public const int PrivilegeDenied = unchecked((int)0x80040220); // -2147220960 public const int InvalidObjectTypes = unchecked((int)0x8004021f); // -2147220961 public const int unManagedidscannotgrantorrevokeaccesstobusiness = unchecked((int)0x8004021e); // -2147220962 public const int unManagedidsinvaliduseridorbusinessidorusersbusinessinvalid = unchecked((int)0x8004021d); // -2147220963 public const int unManagedidspresentuseridandteamid = unchecked((int)0x8004021c); // -2147220964 public const int MissingUserId = unchecked((int)0x8004021b); // -2147220965 public const int MissingBusinessId = unchecked((int)0x8004021a); // -2147220966 public const int NotImplemented = unchecked((int)0x80040219); // -2147220967 public const int InvalidPointer = unchecked((int)0x80040218); // -2147220968 public const int ObjectDoesNotExist = unchecked((int)0x80040217); // -2147220969 public const int UnExpected = unchecked((int)0x80040216); // -2147220970 public const int MissingOwner = unchecked((int)0x80040215); // -2147220971 public const int CannotShareWithOwner = unchecked((int)0x80040214); // -2147220972 public const int unManagedidsinvalidvisibilitymodificationaccess = unchecked((int)0x80040213); // -2147220973 public const int unManagedidsinvalidowninguser = unchecked((int)0x80040212); // -2147220974 public const int unManagedidsinvalidassociation = unchecked((int)0x80040211); // -2147220975 public const int InvalidAssigneeId = unchecked((int)0x80040210); // -2147220976 public const int unManagedidsfailureinittoken = unchecked((int)0x8004020f); // -2147220977 public const int unManagedidsinvalidvisibility = unchecked((int)0x8004020e); // -2147220978 public const int InvalidAccessRights = unchecked((int)0x8004020d); // -2147220979 public const int InvalidSharee = unchecked((int)0x8004020c); // -2147220980 public const int unManagedidsinvaliditemid = unchecked((int)0x8004020b); // -2147220981 public const int unManagedidsinvalidorgid = unchecked((int)0x8004020a); // -2147220982 public const int unManagedidsinvalidbusinessid = unchecked((int)0x80040209); // -2147220983 public const int unManagedidsinvalidteamid = unchecked((int)0x80040208); // -2147220984 public const int unManagedidsinvaliduserid = unchecked((int)0x80040207); // -2147220985 public const int InvalidParentId = unchecked((int)0x80040206); // -2147220986 public const int InvalidParent = unchecked((int)0x80040205); // -2147220987 public const int InvalidUserAuth = unchecked((int)0x80040204); // -2147220988 public const int InvalidArgument = unchecked((int)0x80040203); // -2147220989 public const int EmptyXml = unchecked((int)0x80040202); // -2147220990 public const int InvalidXml = unchecked((int)0x80040201); // -2147220991 public const int RequiredFieldMissing = unchecked((int)0x80040200); // -2147220992 public const int SearchTextLenExceeded = unchecked((int)0x800401ff); // -2147220993 public const int CannotAssignOfflineFilters = unchecked((int)0x800404ff); // -2147220225 public const int ArticleIsPublished = unchecked((int)0x800404fe); // -2147220226 public const int InvalidArticleTemplateState = unchecked((int)0x800404fd); // -2147220227 public const int InvalidArticleStateTransition = unchecked((int)0x800404fc); // -2147220228 public const int InvalidArticleState = unchecked((int)0x800404fb); // -2147220229 public const int NullKBArticleTemplateId = unchecked((int)0x800404fa); // -2147220230 public const int NullArticleTemplateStructureXml = unchecked((int)0x800404f9); // -2147220231 public const int NullArticleTemplateFormatXml = unchecked((int)0x800404f8); // -2147220232 public const int NullArticleXml = unchecked((int)0x800404f7); // -2147220233 public const int InvalidContractDetailId = unchecked((int)0x800404f6); // -2147220234 public const int InvalidTotalPrice = unchecked((int)0x800404f5); // -2147220235 public const int InvalidTotalDiscount = unchecked((int)0x800404f4); // -2147220236 public const int InvalidNetPrice = unchecked((int)0x800404f3); // -2147220237 public const int InvalidAllotmentsRemaining = unchecked((int)0x800404f2); // -2147220238 public const int InvalidAllotmentsUsed = unchecked((int)0x800404f1); // -2147220239 public const int InvalidAllotmentsTotal = unchecked((int)0x800404f0); // -2147220240 public const int InvalidAllotmentsCalc = unchecked((int)0x800404ef); // -2147220241 public const int CannotRouteToSameQueue = unchecked((int)0x8004051b); // -2147220197 public const int CannotAddSingleQueueEnabledEntityToQueue = unchecked((int)0x8004051c); // -2147220196 public const int CannotUpdateDeactivatedQueueItem = unchecked((int)0x8004051d); // -2147220195 public const int CannotCreateQueueItemInactiveObject = unchecked((int)0x8004051e); // -2147220194 public const int InsufficientPrivilegeToQueueOwner = unchecked((int)0x80040520); // -2147220192 public const int NoPrivilegeToWorker = unchecked((int)0x80040521); // -2147220191 public const int CannotAddQueueItemsToInactiveQueue = unchecked((int)0x80040522); // -2147220190 public const int EmailAlreadyExistsInDestinationQueue = unchecked((int)0x80040523); // -2147220189 public const int CouldNotFindQueueItemInQueue = unchecked((int)0x80040524); // -2147220188 public const int MultipleQueueItemsFound = unchecked((int)0x80040525); // -2147220187 public const int ActiveQueueItemAlreadyExists = unchecked((int)0x80040526); // -2147220186 public const int CannotRouteInactiveQueueItem = unchecked((int)0x80040527); // -2147220185 public const int QueueIdNotPresent = unchecked((int)0x80040528); // -2147220184 public const int QueueItemNotPresent = unchecked((int)0x80040529); // -2147220183 public const int CannotUpdatePrivateOrWIPQueue = unchecked((int)0x800404ee); // -2147220242 public const int CannotFindUserQueue = unchecked((int)0x800404ec); // -2147220244 public const int CannotFindObjectInQueue = unchecked((int)0x800404eb); // -2147220245 public const int CannotRouteToQueue = unchecked((int)0x800404ea); // -2147220246 public const int RouteTypeUnsupported = unchecked((int)0x800404e9); // -2147220247 public const int UserIdOrQueueNotSet = unchecked((int)0x800404e8); // -2147220248 public const int RoutingNotAllowed = unchecked((int)0x800404e7); // -2147220249 public const int CannotUpdateMetricOnChildGoal = unchecked((int)0x80044900); // -2147202816 public const int CannotUpdateGoalPeriodInfoChildGoal = unchecked((int)0x80044901); // -2147202815 public const int CannotUpdateMetricOnGoalWithChildren = unchecked((int)0x80044902); // -2147202814 public const int FiscalPeriodGoalMissingInfo = unchecked((int)0x80044903); // -2147202813 public const int CustomPeriodGoalHavingExtraInfo = unchecked((int)0x80044904); // -2147202812 public const int ParentChildMetricIdDiffers = unchecked((int)0x80044905); // -2147202811 public const int ParentChildPeriodAttributesDiffer = unchecked((int)0x80044906); // -2147202810 public const int CustomPeriodGoalMissingInfo = unchecked((int)0x80044907); // -2147202809 public const int GoalMissingPeriodTypeInfo = unchecked((int)0x80044908); // -2147202808 public const int ParticipatingQueryEntityMismatch = unchecked((int)0x80044909); // -2147202807 public const int CannotUpdateGoalPeriodInfoClosedGoal = unchecked((int)0x80044910); // -2147202800 public const int CannotUpdateRollupFields = unchecked((int)0x80044911); // -2147202799 public const int CannotDeleteMetricWithGoals = unchecked((int)0x80044800); // -2147203072 public const int CannotUpdateRollupAttributeWithClosedGoals = unchecked((int)0x80044801); // -2147203071 public const int MetricNameAlreadyExists = unchecked((int)0x80044802); // -2147203070 public const int CannotUpdateMetricWithGoals = unchecked((int)0x80044803); // -2147203069 public const int CannotCreateUpdateSourceAttribute = unchecked((int)0x80044804); // -2147203068 public const int InvalidDateAttribute = unchecked((int)0x80044805); // -2147203067 public const int InvalidSourceEntityAttribute = unchecked((int)0x80044806); // -2147203066 public const int GoalAttributeAlreadyMapped = unchecked((int)0x80044807); // -2147203065 public const int InvalidSourceAttributeType = unchecked((int)0x80044808); // -2147203064 public const int MaxLimitForRollupAttribute = unchecked((int)0x8004480a); // -2147203062 public const int InvalidGoalAttribute = unchecked((int)0x8004480b); // -2147203061 public const int CannotUpdateParentAndDependents = unchecked((int)0x8004480c); // -2147203060 public const int UserDoesNotHaveSendAsAllowed = unchecked((int)0x8004480d); // -2147203059 public const int CannotUpdateQuoteCurrency = unchecked((int)0x8004480e); // -2147203058 public const int UserDoesNotHaveSendAsForQueue = unchecked((int)0x8004480f); // -2147203057 public const int InvalidSourceStateValue = unchecked((int)0x80044810); // -2147203056 public const int InvalidSourceStatusValue = unchecked((int)0x80044811); // -2147203055 public const int InvalidEntityForDateAttribute = unchecked((int)0x80044812); // -2147203054 public const int InvalidEntityForRollup = unchecked((int)0x80044813); // -2147203053 public const int InvalidFiscalPeriod = unchecked((int)0x80044814); // -2147203052 public const int unManagedchildentityisnotchild = unchecked((int)0x800404e6); // -2147220250 public const int unManagedmissingparententity = unchecked((int)0x800404e5); // -2147220251 public const int unManagedunablegetexecutioncontext = unchecked((int)0x800404e4); // -2147220252 public const int unManagedpendingtrxexists = unchecked((int)0x800404e3); // -2147220253 public const int unManagedinvalidtrxcountforcommit = unchecked((int)0x800404e2); // -2147220254 public const int unManagedinvalidtrxcountforrollback = unchecked((int)0x800404e1); // -2147220255 public const int unManagedunableswitchusercontext = unchecked((int)0x800404e0); // -2147220256 public const int unManagedmissingdataaccess = unchecked((int)0x800404df); // -2147220257 public const int unManagedinvalidcharacterdataforaggregate = unchecked((int)0x800404de); // -2147220258 public const int unManagedtrxinterophandlerset = unchecked((int)0x800404dd); // -2147220259 public const int unManagedinvalidbinaryfield = unchecked((int)0x800404dc); // -2147220260 public const int unManagedinvaludidispatchfield = unchecked((int)0x800404db); // -2147220261 public const int unManagedinvaliddbdatefield = unchecked((int)0x800404da); // -2147220262 public const int unManagedinvalddbtimefield = unchecked((int)0x800404d9); // -2147220263 public const int unManagedinvalidfieldtype = unchecked((int)0x800404d8); // -2147220264 public const int unManagedinvalidstreamfield = unchecked((int)0x800404d7); // -2147220265 public const int unManagedinvalidparametertypeforparameterizedquery = unchecked((int)0x800404d6); // -2147220266 public const int unManagedinvaliddynamicparameteraccessor = unchecked((int)0x800404d5); // -2147220267 public const int unManagedunablegetsessiontokennotrx = unchecked((int)0x800404d4); // -2147220268 public const int unManagedunablegetsessiontoken = unchecked((int)0x800404d3); // -2147220269 public const int unManagedinvalidsecurityprincipal = unchecked((int)0x800404d2); // -2147220270 public const int unManagedmissingpreviousownertype = unchecked((int)0x800404d0); // -2147220272 public const int unManagedinvalidprivilegeid = unchecked((int)0x800404ce); // -2147220274 public const int unManagedinvalidprivilegeusergroup = unchecked((int)0x800404cd); // -2147220275 public const int unManagedunexpectedpropertytype = unchecked((int)0x800404cc); // -2147220276 public const int unManagedmissingaddressentity = unchecked((int)0x800404cb); // -2147220277 public const int unManagederroraddingfiltertoqueryplan = unchecked((int)0x800404ca); // -2147220278 public const int unManagedmissingreferencesfromrelationship = unchecked((int)0x800404c9); // -2147220279 public const int unManagedmissingreferencingattribute = unchecked((int)0x800404c8); // -2147220280 public const int unManagedinvalidoperator = unchecked((int)0x800404c7); // -2147220281 public const int unManagedunabletoaccessqueryplanfilter = unchecked((int)0x800404c6); // -2147220282 public const int unManagedmissingattributefortag = unchecked((int)0x800404c5); // -2147220283 public const int unManagederrorprocessingfilternodes = unchecked((int)0x800404c4); // -2147220284 public const int unManagedunabletolocateconditionfilter = unchecked((int)0x800404c3); // -2147220285 public const int unManagedinvalidpagevalue = unchecked((int)0x800404c2); // -2147220286 public const int unManagedinvalidcountvalue = unchecked((int)0x800404c1); // -2147220287 public const int unManagedinvalidversionvalue = unchecked((int)0x800404c0); // -2147220288 public const int unManagedinvalidvaluettagoutsideconditiontag = unchecked((int)0x800404bf); // -2147220289 public const int unManagedinvalidorganizationid = unchecked((int)0x800404be); // -2147220290 public const int unManagedinvalidowninguser = unchecked((int)0x800404bd); // -2147220291 public const int unManagedinvalidowningbusinessunitorbusinessunitid = unchecked((int)0x800404bc); // -2147220292 public const int unManagedinvalidprivilegeedepth = unchecked((int)0x800404bb); // -2147220293 public const int unManagedinvalidlinkobjects = unchecked((int)0x800404ba); // -2147220294 public const int unManagedpartylistattributenotsupported = unchecked((int)0x800404b8); // -2147220296 public const int unManagedinvalidargumentsforcondition = unchecked((int)0x800404b7); // -2147220297 public const int unManagedunknownaggregateoperation = unchecked((int)0x800404b6); // -2147220298 public const int unManagedmissingparentattributeonentity = unchecked((int)0x800404b5); // -2147220299 public const int unManagedinvalidprocesschildofcondition = unchecked((int)0x800404b4); // -2147220300 public const int unManagedunexpectedrimarykey = unchecked((int)0x800404b3); // -2147220301 public const int unManagedmissinglinkentity = unchecked((int)0x800404b2); // -2147220302 public const int unManagedinvalidprocessliternalcondition = unchecked((int)0x800404b1); // -2147220303 public const int unManagedemptyprocessliteralcondition = unchecked((int)0x800404b0); // -2147220304 public const int unManagedunusablevariantdata = unchecked((int)0x800404af); // -2147220305 public const int unManagedfieldnotvalidatedbyplatform = unchecked((int)0x800404ae); // -2147220306 public const int unManagedmissingfilterattribute = unchecked((int)0x800404ad); // -2147220307 public const int unManagedinvalidequalityoperand = unchecked((int)0x800404ac); // -2147220308 public const int unManagedfilterindexoutofrange = unchecked((int)0x800404ab); // -2147220309 public const int unManagedentityisnotintersect = unchecked((int)0x800404aa); // -2147220310 public const int unManagedcihldofconditionforoffilefilters = unchecked((int)0x800404a9); // -2147220311 public const int unManagedinvalidowningbusinessunit = unchecked((int)0x800404a8); // -2147220312 public const int unManagedinvalidbusinessunitid = unchecked((int)0x800404a7); // -2147220313 public const int unManagedmorethanonesortattribute = unchecked((int)0x800404a6); // -2147220314 public const int unManagedunabletoaccessqueryplan = unchecked((int)0x800404a5); // -2147220315 public const int unManagedparentattributenotfound = unchecked((int)0x800404a4); // -2147220316 public const int unManagedinvalidtlsmananger = unchecked((int)0x800404a2); // -2147220318 public const int unManagedinvalidescapedxml = unchecked((int)0x800404a1); // -2147220319 public const int unManagedunabletoretrieveprivileges = unchecked((int)0x800404a0); // -2147220320 public const int unManagedproxycreationfailed = unchecked((int)0x8004049f); // -2147220321 public const int unManagedinvalidprincipal = unchecked((int)0x8004049e); // -2147220322 public const int RestrictInheritedRole = unchecked((int)0x80044152); // -2147204782 public const int unManagedidsfetchbetweentext = unchecked((int)0x80044153); // -2147204781 public const int unManagedidscantdisable = unchecked((int)0x80044154); // -2147204780 public const int CascadeInvalidLinkTypeTransition = unchecked((int)0x80044155); // -2147204779 public const int InvalidOrgOwnedCascadeLinkType = unchecked((int)0x80044156); // -2147204778 public const int CallerCannotChangeOwnDomainName = unchecked((int)0x80044161); // -2147204767 public const int AsyncOperationInvalidStateChange = unchecked((int)0x80044162); // -2147204766 public const int AsyncOperationInvalidStateChangeUnexpected = unchecked((int)0x80044163); // -2147204765 public const int AsyncOperationMissingId = unchecked((int)0x80044164); // -2147204764 public const int AsyncOperationInvalidStateChangeToComplete = unchecked((int)0x80044165); // -2147204763 public const int AsyncOperationInvalidStateChangeToReady = unchecked((int)0x80044166); // -2147204762 public const int AsyncOperationInvalidStateChangeToSuspended = unchecked((int)0x80044167); // -2147204761 public const int AsyncOperationCannotUpdateNonrecurring = unchecked((int)0x80044168); // -2147204760 public const int AsyncOperationCannotUpdateRecurring = unchecked((int)0x80044169); // -2147204759 public const int AsyncOperationCannotDeleteUnlessCompleted = unchecked((int)0x8004416a); // -2147204758 public const int SdkInvalidMessagePropertyName = unchecked((int)0x8004416b); // -2147204757 public const int PluginAssemblyMustHavePublicKeyToken = unchecked((int)0x8004416c); // -2147204756 public const int SdkMessageInvalidImageTypeRegistration = unchecked((int)0x8004416d); // -2147204755 public const int SdkMessageDoesNotSupportPostImageRegistration = unchecked((int)0x8004416e); // -2147204754 public const int CannotDeserializeRequest = unchecked((int)0x8004416f); // -2147204753 public const int InvalidPluginRegistrationConfiguration = unchecked((int)0x80044170); // -2147204752 public const int SandboxClientPluginTimeout = unchecked((int)0x80044171); // -2147204751 public const int SandboxHostPluginTimeout = unchecked((int)0x80044172); // -2147204750 public const int SandboxWorkerPluginTimeout = unchecked((int)0x80044173); // -2147204749 public const int SandboxSdkListenerStartFailed = unchecked((int)0x80044174); // -2147204748 public const int ServiceBusPostFailed = unchecked((int)0x80044175); // -2147204747 public const int ServiceBusIssuerNotFound = unchecked((int)0x80044176); // -2147204746 public const int ServiceBusIssuerCertificateError = unchecked((int)0x80044177); // -2147204745 public const int ServiceBusExtendedTokenFailed = unchecked((int)0x80044178); // -2147204744 public const int ServiceBusPostPostponed = unchecked((int)0x80044179); // -2147204743 public const int ServiceBusPostDisabled = unchecked((int)0x8004417a); // -2147204742 public const int SdkMessageNotSupportedOnServer = unchecked((int)0x80044180); // -2147204736 public const int SdkMessageNotSupportedOnClient = unchecked((int)0x80044181); // -2147204735 public const int SdkCorrelationTokenDepthTooHigh = unchecked((int)0x80044182); // -2147204734 public const int OnlyStepInPredefinedStagesCanBeModified = unchecked((int)0x80044184); // -2147204732 public const int OnlyStepInServerOnlyCanHaveSecureConfiguration = unchecked((int)0x80044185); // -2147204731 public const int OnlyStepOutsideTransactionCanCreateCrmService = unchecked((int)0x80044186); // -2147204730 public const int SdkCustomProcessingStepIsNotAllowed = unchecked((int)0x80044187); // -2147204729 public const int SdkEntityOfflineQueuePlaybackIsNotAllowed = unchecked((int)0x80044188); // -2147204728 public const int SdkMessageDoesNotSupportImageRegistration = unchecked((int)0x80044189); // -2147204727 public const int RequestLengthTooLarge = unchecked((int)0x8004418a); // -2147204726 public const int SandboxWorkerNotAvailable = unchecked((int)0x8004418d); // -2147204723 public const int SandboxHostNotAvailable = unchecked((int)0x8004418e); // -2147204722 public const int PluginAssemblyContentSizeExceeded = unchecked((int)0x8004418f); // -2147204721 public const int UnableToLoadPluginType = unchecked((int)0x80044190); // -2147204720 public const int UnableToLoadPluginAssembly = unchecked((int)0x80044191); // -2147204719 public const int InvalidPluginAssemblyContent = unchecked((int)0x8004418b); // -2147204725 public const int InvalidPluginTypeImplementation = unchecked((int)0x8004418c); // -2147204724 public const int InvalidPluginAssemblyVersion = unchecked((int)0x8004417b); // -2147204741 public const int PluginTypeMustBeUnique = unchecked((int)0x8004417c); // -2147204740 public const int InvalidAssemblySourceType = unchecked((int)0x8004417d); // -2147204739 public const int InvalidAssemblyProcessorArchitecture = unchecked((int)0x8004417e); // -2147204738 public const int CyclicReferencesNotSupported = unchecked((int)0x8004417f); // -2147204737 public const int InvalidQuery = unchecked((int)0x80044183); // -2147204733 public const int SandboxWorkerPluginExecuteTimeout = unchecked((int)0x80081111); // -2146954991 public const int ServiceBusEndpointNotConfigured = unchecked((int)0x80081112); // -2146954990 public const int VirtualEntityFCBOFF = unchecked((int)0x80081113); // -2146954989 public const int InvalidEmailAddressFormat = unchecked((int)0x80044192); // -2147204718 public const int ContractInvalidDiscount = unchecked((int)0x80044193); // -2147204717 public const int InvalidLanguageCode = unchecked((int)0x80044195); // -2147204715 public const int ConfigNullPrimaryKey = unchecked((int)0x80044196); // -2147204714 public const int ConfigMissingDescription = unchecked((int)0x80044197); // -2147204713 public const int AttributeDoesNotSupportLocalizedLabels = unchecked((int)0x80044198); // -2147204712 public const int NoLanguageProvisioned = unchecked((int)0x80044199); // -2147204711 public const int CannotImportNullStringsForBaseLanguage = unchecked((int)0x80044246); // -2147204538 public const int CannotUpdateNonCustomizableString = unchecked((int)0x80044247); // -2147204537 public const int InvalidOrganizationId = unchecked((int)0x80044248); // -2147204536 public const int InvalidTranslationsFile = unchecked((int)0x80044249); // -2147204535 public const int MetadataRecordNotDeletable = unchecked((int)0x80044250); // -2147204528 public const int InvalidImportJobTemplateFile = unchecked((int)0x80044251); // -2147204527 public const int InvalidImportJobId = unchecked((int)0x80044252); // -2147204526 public const int MissingCrmAuthenticationToken = unchecked((int)0x80044300); // -2147204352 public const int IntegratedAuthenticationIsNotAllowed = unchecked((int)0x80044301); // -2147204351 public const int RequestIsNotAuthenticated = unchecked((int)0x80044302); // -2147204350 public const int AsyncOperationTypeIsNotRecognized = unchecked((int)0x80044303); // -2147204349 public const int FailedToDeserializeAsyncOperationData = unchecked((int)0x80044304); // -2147204348 public const int UserSettingsOverMaxPagingLimit = unchecked((int)0x80044305); // -2147204347 public const int AsyncNetworkError = unchecked((int)0x80044306); // -2147204346 public const int AsyncCommunicationError = unchecked((int)0x80044307); // -2147204345 public const int MissingCrmAuthenticationTokenOrganizationName = unchecked((int)0x80044308); // -2147204344 public const int SdkNotEnoughPrivilegeToSetCallerOriginToken = unchecked((int)0x80044309); // -2147204343 public const int OverRetrievalUpperLimitWithoutPagingCookie = unchecked((int)0x8004430a); // -2147204342 public const int InvalidAllotmentsOverage = unchecked((int)0x8004430b); // -2147204341 public const int TooManyConditionsInQuery = unchecked((int)0x8004430c); // -2147204340 public const int TooManyLinkEntitiesInQuery = unchecked((int)0x8004430d); // -2147204339 public const int TooManyConditionParametersInQuery = unchecked((int)0x8004430e); // -2147204338 public const int InvalidOneToManyRelationshipForRelatedEntitiesQuery = unchecked((int)0x8004430f); // -2147204337 public const int PicklistValueNotUnique = unchecked((int)0x80044310); // -2147204336 public const int UnableToLogOnUserFromUserNameAndPassword = unchecked((int)0x80044311); // -2147204335 public const int PicklistValueOutOfRange = unchecked((int)0x8004431a); // -2147204326 public const int WrongNumberOfBooleanOptions = unchecked((int)0x8004431b); // -2147204325 public const int BooleanOptionOutOfRange = unchecked((int)0x8004431c); // -2147204324 public const int CannotAddNewBooleanValue = unchecked((int)0x8004431d); // -2147204323 public const int CannotAddNewStateValue = unchecked((int)0x8004431e); // -2147204322 public const int NoMoreCustomOptionValuesExist = unchecked((int)0x8004431f); // -2147204321 public const int InsertOptionValueInvalidType = unchecked((int)0x80044320); // -2147204320 public const int NewStatusRequiresAssociatedState = unchecked((int)0x80044321); // -2147204319 public const int NewStatusHasInvalidState = unchecked((int)0x80044322); // -2147204318 public const int CannotDeleteEnumOptionsFromAttributeType = unchecked((int)0x80044323); // -2147204317 public const int OptionReorderArrayIncorrectLength = unchecked((int)0x80044324); // -2147204316 public const int ValueMissingInOptionOrderArray = unchecked((int)0x80044325); // -2147204315 public const int NavPaneOrderValueNotAllowed = unchecked((int)0x80044327); // -2147204313 public const int EntityRelationshipRoleCustomLabelsMissing = unchecked((int)0x80044328); // -2147204312 public const int NavPaneNotCustomizable = unchecked((int)0x80044329); // -2147204311 public const int EntityRelationshipSchemaNameRequired = unchecked((int)0x8004432a); // -2147204310 public const int EntityRelationshipSchemaNameNotUnique = unchecked((int)0x8004432b); // -2147204309 public const int CustomReflexiveRelationshipNotAllowedForEntity = unchecked((int)0x8004432c); // -2147204308 public const int EntityCannotBeChildInCustomRelationship = unchecked((int)0x8004432d); // -2147204307 public const int ReferencedEntityHasLogicalPrimaryNameField = unchecked((int)0x8004432e); // -2147204306 public const int IntegerValueOutOfRange = unchecked((int)0x8004432f); // -2147204305 public const int DecimalValueOutOfRange = unchecked((int)0x80044330); // -2147204304 public const int StringLengthTooLong = unchecked((int)0x80044331); // -2147204303 public const int EntityCannotParticipateInEntityAssociation = unchecked((int)0x80044332); // -2147204302 public const int DataMigrationManagerUnknownProblem = unchecked((int)0x80044333); // -2147204301 public const int ImportOperationChildFailure = unchecked((int)0x80044334); // -2147204300 public const int AttributeDeprecated = unchecked((int)0x80044335); // -2147204299 public const int DataMigrationManagerMandatoryUpdatesNotInstalled = unchecked((int)0x80044336); // -2147204298 public const int ReferencedEntityMustHaveLookupView = unchecked((int)0x80044337); // -2147204297 public const int ReferencingEntityMustHaveAssociationView = unchecked((int)0x80044338); // -2147204296 public const int CouldNotObtainLockOnResource = unchecked((int)0x80044339); // -2147204295 public const int SourceAttributeHeaderTooBig = unchecked((int)0x80044340); // -2147204288 public const int CannotDeleteDefaultStatusOption = unchecked((int)0x80044341); // -2147204287 public const int CannotFindDomainAccount = unchecked((int)0x80044342); // -2147204286 public const int CannotUpdateAppDefaultValueForStateAttribute = unchecked((int)0x80044343); // -2147204285 public const int CannotUpdateAppDefaultValueForStatusAttribute = unchecked((int)0x80044344); // -2147204284 public const int InvalidOptionSetSchemaName = unchecked((int)0x80044345); // -2147204283 public const int ReferencingEntityCannotBeSolutionAware = unchecked((int)0x80044350); // -2147204272 public const int ErrorInFieldWidthIncrease = unchecked((int)0x80044351); // -2147204271 public const int ExpiredVersionStamp = unchecked((int)0x80044352); // -2147204270 public const int OrgIdNotDetermined = unchecked((int)0x80044353); // -2147204269 public const int AsyncOperationCannotCancel = unchecked((int)0x80044f00); // -2147201280 public const int AsyncOperationCannotPause = unchecked((int)0x80044f01); // -2147201279 public const int CannotDeleteOrCancelSystemJobs = unchecked((int)0x80044f02); // -2147201278 public const int WorkflowCompileFailure = unchecked((int)0x80045001); // -2147201023 public const int UpdatePublishedWorkflowDefinition = unchecked((int)0x80045002); // -2147201022 public const int UpdateWorkflowActivation = unchecked((int)0x80045003); // -2147201021 public const int DeleteWorkflowActivation = unchecked((int)0x80045004); // -2147201020 public const int DeleteWorkflowActivationWorkflowDependency = unchecked((int)0x80045005); // -2147201019 public const int DeletePublishedWorkflowDefinitionWorkflowDependency = unchecked((int)0x80045006); // -2147201018 public const int UpdateWorkflowActivationWorkflowDependency = unchecked((int)0x80045007); // -2147201017 public const int UpdatePublishedWorkflowDefinitionWorkflowDependency = unchecked((int)0x80045008); // -2147201016 public const int CreateWorkflowActivationWorkflowDependency = unchecked((int)0x80045009); // -2147201015 public const int CreatePublishedWorkflowDefinitionWorkflowDependency = unchecked((int)0x8004500a); // -2147201014 public const int WorkflowPublishedByNonOwner = unchecked((int)0x8004500b); // -2147201013 public const int PublishedWorkflowOwnershipChange = unchecked((int)0x8004500c); // -2147201012 public const int OnlyWorkflowDefinitionOrTemplateCanBePublished = unchecked((int)0x8004500d); // -2147201011 public const int OnlyWorkflowDefinitionOrTemplateCanBeUnpublished = unchecked((int)0x8004500e); // -2147201010 public const int DeleteWorkflowActiveDefinition = unchecked((int)0x8004500f); // -2147201009 public const int WorkflowConditionIncorrectUnaryOperatorFormation = unchecked((int)0x80045010); // -2147201008 public const int WorkflowConditionIncorrectBinaryOperatorFormation = unchecked((int)0x80045011); // -2147201007 public const int WorkflowConditionOperatorNotSupported = unchecked((int)0x80045012); // -2147201006 public const int WorkflowConditionTypeNotSupport = unchecked((int)0x80045013); // -2147201005 public const int WorkflowValidationFailure = unchecked((int)0x80045014); // -2147201004 public const int PublishedWorkflowLimitForSkuReached = unchecked((int)0x80045015); // -2147201003 public const int NoPrivilegeToPublishWorkflow = unchecked((int)0x80045016); // -2147201002 public const int WorkflowSystemPaused = unchecked((int)0x80045017); // -2147201001 public const int WorkflowPublishNoActivationParameters = unchecked((int)0x80045018); // -2147201000 public const int CreateWorkflowDependencyForPublishedTemplate = unchecked((int)0x80045019); // -2147200999 public const int DeleteActiveWorkflowTemplateDependency = unchecked((int)0x8004501a); // -2147200998 public const int UpdatePublishedWorkflowTemplate = unchecked((int)0x8004501b); // -2147200997 public const int DeleteWorkflowActiveTemplate = unchecked((int)0x8004501c); // -2147200996 public const int CustomActivityInvalid = unchecked((int)0x8004501d); // -2147200995 public const int PrimaryEntityInvalid = unchecked((int)0x8004501e); // -2147200994 public const int CannotDeserializeWorkflowInstance = unchecked((int)0x8004501f); // -2147200993 public const int CannotDeserializeXamlWorkflow = unchecked((int)0x80045020); // -2147200992 public const int CannotDeleteCustomEntityUsedInWorkflow = unchecked((int)0x8004502c); // -2147200980 public const int BulkMailOperationFailed = unchecked((int)0x8004502d); // -2147200979 public const int WorkflowExpressionOperatorNotSupported = unchecked((int)0x8004502e); // -2147200978 public const int ChildWorkflowNotFound = unchecked((int)0x8004502f); // -2147200977 public const int CannotDeleteAttributeUsedInWorkflow = unchecked((int)0x80045030); // -2147200976 public const int CannotLocateRecordForWorkflowActivity = unchecked((int)0x80045031); // -2147200975 public const int PublishWorkflowWhileActingOnBehalfOfAnotherUserError = unchecked((int)0x80045032); // -2147200974 public const int CannotDisableInternetMarketingUser = unchecked((int)0x80045033); // -2147200973 public const int CannotSetWindowsLiveIdForInternetMarketingUser = unchecked((int)0x80045034); // -2147200972 public const int CannotChangeAccessModeForInternetMarketingUser = unchecked((int)0x80045035); // -2147200971 public const int CannotChangeInvitationStatusForInternetMarketingUser = unchecked((int)0x80045036); // -2147200970 public const int UIDataGenerationFailed = unchecked((int)0x80045037); // -2147200969 public const int WorkflowReferencesInvalidActivity = unchecked((int)0x80045038); // -2147200968 public const int PublishWorkflowWhileImpersonatingError = unchecked((int)0x80045039); // -2147200967 public const int ExchangeAutodiscoverError = unchecked((int)0x8004503a); // -2147200966 public const int NonCrmUIWorkflowsNotSupported = unchecked((int)0x80045040); // -2147200960 public const int NotEnoughPrivilegesForXamlWorkflows = unchecked((int)0x80045041); // -2147200959 public const int WorkflowAutomaticallyDeactivated = unchecked((int)0x80045042); // -2147200958 public const int StepAutomaticallyDisabled = unchecked((int)0x80045043); // -2147200957 public const int NonCrmUIInteractiveWorkflowNotSupported = unchecked((int)0x80045044); // -2147200956 public const int WorkflowActivityNotSupported = unchecked((int)0x80045045); // -2147200955 public const int ExecuteNotOnDemandWorkflow = unchecked((int)0x80045046); // -2147200954 public const int ExecuteUnpublishedWorkflow = unchecked((int)0x80045047); // -2147200953 public const int ChildWorkflowParameterMismatch = unchecked((int)0x80045048); // -2147200952 public const int InvalidProcessStateData = unchecked((int)0x80045049); // -2147200951 public const int OutOfScopeSlug = unchecked((int)0x80045050); // -2147200944 public const int CustomWorkflowActivitiesNotSupported = unchecked((int)0x80045051); // -2147200943 public const int CustomOperationNotActivated = unchecked((int)0x80045052); // -2147200942 public const int ProcessActionIsNotActive = unchecked((int)0x80045053); // -2147200941 public const int ProcessActionDoesNotExist = unchecked((int)0x80045054); // -2147200940 public const int WorkflowIsNotActive = unchecked((int)0x80045055); // -2147200939 public const int ProcessActionWithInvalidOutputParam = unchecked((int)0x80045056); // -2147200938 public const int ProcessActionWithInvalidInputParam = unchecked((int)0x80045057); // -2147200937 public const int ProcessActionWithInvalidInputOutputParam = unchecked((int)0x80045058); // -2147200936 public const int WorkflowIsNotOnDemand = unchecked((int)0x80045059); // -2147200935 public const int CrmSqlGovernorDatabaseRequestDenied = unchecked((int)0x8004a001); // -2147180543 public const int AsyncOperationTypeThrottled = unchecked((int)0x80060916); // -2147088106 public const int AsyncOperationPostponedByExceptionCountThrottle = unchecked((int)0x80060917); // -2147088105 public const int InvalidAuthTicket = unchecked((int)0x8004a100); // -2147180288 public const int ExpiredAuthTicket = unchecked((int)0x8004a101); // -2147180287 public const int BadAuthTicket = unchecked((int)0x8004a102); // -2147180286 public const int InsufficientAuthTicket = unchecked((int)0x8004a103); // -2147180285 public const int OrganizationDisabled = unchecked((int)0x8004a104); // -2147180284 public const int TamperedAuthTicket = unchecked((int)0x8004a105); // -2147180283 public const int ExpiredKey = unchecked((int)0x8004a106); // -2147180282 public const int ScaleGroupDisabled = unchecked((int)0x8004a107); // -2147180281 public const int SupportLogOnExpired = unchecked((int)0x8004a108); // -2147180280 public const int InvalidPartnerSolutionCustomizationProvider = unchecked((int)0x8004a109); // -2147180279 public const int MultiplePartnerSecurityRoleWithSameInformation = unchecked((int)0x8004a10a); // -2147180278 public const int MultiplePartnerUserWithSameInformation = unchecked((int)0x8004a10b); // -2147180277 public const int MultipleRootBusinessUnit = unchecked((int)0x8004a10c); // -2147180276 public const int CannotDeletePartnerWithPartnerSolutions = unchecked((int)0x8004a10d); // -2147180275 public const int CannotDeletePartnerSolutionWithOrganizations = unchecked((int)0x8004a10e); // -2147180274 public const int CannotProvisionPartnerSolution = unchecked((int)0x8004a10f); // -2147180273 public const int CannotActOnBehalfOfAnotherUser = unchecked((int)0x8004a110); // -2147180272 public const int SystemUserDisabled = unchecked((int)0x8004a112); // -2147180270 public const int UserDoesNotHaveAdminOnlyModePermissions = unchecked((int)0x8004a113); // -2147180269 public const int PluginDoesNotImplementCorrectInterface = unchecked((int)0x8004a200); // -2147180032 public const int CannotCreatePluginInstance = unchecked((int)0x8004a201); // -2147180031 public const int CrmLiveGenericError = unchecked((int)0x8004b000); // -2147176448 public const int CrmLiveOrganizationProvisioningFailed = unchecked((int)0x8004b001); // -2147176447 public const int CrmLiveMissingActiveDirectoryGroup = unchecked((int)0x8004b002); // -2147176446 public const int CrmLiveInternalProvisioningError = unchecked((int)0x8004b003); // -2147176445 public const int CrmLiveQueueItemDoesNotExist = unchecked((int)0x8004b004); // -2147176444 public const int CrmLiveInvalidSetupParameter = unchecked((int)0x8004b005); // -2147176443 public const int CrmLiveMultipleWitnessServersInScaleGroup = unchecked((int)0x8004b006); // -2147176442 public const int CrmLiveMissingServerRolesInScaleGroup = unchecked((int)0x8004b007); // -2147176441 public const int CrmLiveServerCannotHaveWitnessAndDataServerRoles = unchecked((int)0x8004b008); // -2147176440 public const int IsNotLiveToSendInvitation = unchecked((int)0x8004b009); // -2147176439 public const int MissingOrganizationFriendlyName = unchecked((int)0x8004b00a); // -2147176438 public const int MissingOrganizationUniqueName = unchecked((int)0x8004b00b); // -2147176437 public const int OfferingCategoryAndTokenNull = unchecked((int)0x8004b00c); // -2147176436 public const int OfferingIdNotSupported = unchecked((int)0x8004b00d); // -2147176435 public const int OrganizationTakenByYou = unchecked((int)0x8004b00e); // -2147176434 public const int OrganizationTakenBySomeoneElse = unchecked((int)0x8004b00f); // -2147176433 public const int InvalidTemplate = unchecked((int)0x8004b010); // -2147176432 public const int InvalidUserQuota = unchecked((int)0x8004b011); // -2147176431 public const int InvalidRole = unchecked((int)0x8004b012); // -2147176430 public const int ErrorGeneratingInvitation = unchecked((int)0x8004b013); // -2147176429 public const int CrmLiveOrganizationUpgradeFailed = unchecked((int)0x8004b014); // -2147176428 public const int UnableToSendEmail = unchecked((int)0x8004b015); // -2147176427 public const int InvalidEmail = unchecked((int)0x8004b016); // -2147176426 public const int VersionMismatch = unchecked((int)0x8004b020); // -2147176416 public const int MissingParameterToMethod = unchecked((int)0x8004b021); // -2147176415 public const int InvalidValueForCountryCode = unchecked((int)0x8004b022); // -2147176414 public const int InvalidValueForCurrency = unchecked((int)0x8004b023); // -2147176413 public const int InvalidValueForLocale = unchecked((int)0x8004b024); // -2147176412 public const int CrmLiveSupportOrganizationExistsInScaleGroup = unchecked((int)0x8004b025); // -2147176411 public const int CrmLiveMonitoringOrganizationExistsInScaleGroup = unchecked((int)0x8004b026); // -2147176410 public const int InvalidUserLicenseCount = unchecked((int)0x8004b027); // -2147176409 public const int MissingColumn = unchecked((int)0x8004b028); // -2147176408 public const int InvalidResourceType = unchecked((int)0x8004b029); // -2147176407 public const int InvalidMinimumResourceLimit = unchecked((int)0x8004b02a); // -2147176406 public const int InvalidMaximumResourceLimit = unchecked((int)0x8004b02b); // -2147176405 public const int ConflictingProvisionTypes = unchecked((int)0x8004b02c); // -2147176404 public const int InvalidAmountProvided = unchecked((int)0x8004b02d); // -2147176403 public const int CrmLiveOrganizationDeleteFailed = unchecked((int)0x8004b02e); // -2147176402 public const int OnlyDisabledOrganizationCanBeDeleted = unchecked((int)0x8004b02f); // -2147176401 public const int CrmLiveOrganizationDetailsNotFound = unchecked((int)0x8004b030); // -2147176400 public const int CrmLiveOrganizationFriendlyNameTooShort = unchecked((int)0x8004b031); // -2147176399 public const int CrmLiveOrganizationFriendlyNameTooLong = unchecked((int)0x8004b032); // -2147176398 public const int CrmLiveOrganizationUniqueNameTooShort = unchecked((int)0x8004b033); // -2147176397 public const int CrmLiveOrganizationUniqueNameTooLong = unchecked((int)0x8004b034); // -2147176396 public const int CrmLiveOrganizationUniqueNameInvalid = unchecked((int)0x8004b035); // -2147176395 public const int CrmLiveOrganizationUniqueNameReserved = unchecked((int)0x8004b036); // -2147176394 public const int ValueParsingError = unchecked((int)0x8004b037); // -2147176393 public const int InvalidGranularityValue = unchecked((int)0x8004b038); // -2147176392 public const int CrmLiveInvalidQueueItemSchedule = unchecked((int)0x8004b039); // -2147176391 public const int CrmLiveQueueItemTimeInPast = unchecked((int)0x8004b040); // -2147176384 public const int CrmLiveUnknownSku = unchecked((int)0x8004b041); // -2147176383 public const int ExceedCustomEntityQuota = unchecked((int)0x8004b042); // -2147176382 public const int ImportWillExceedCustomEntityQuota = unchecked((int)0x8004b043); // -2147176381 public const int OrganizationMigrationUnderway = unchecked((int)0x8004b044); // -2147176380 public const int CrmLiveInvoicingAccountIdMissing = unchecked((int)0x8004b045); // -2147176379 public const int CrmLiveDuplicateWindowsLiveId = unchecked((int)0x8004b046); // -2147176378 public const int CrmLiveDnsDomainNotFound = unchecked((int)0x8004b047); // -2147176377 public const int CrmLiveDnsDomainAlreadyExists = unchecked((int)0x8004b048); // -2147176376 public const int InvalidInteractiveUserQuota = unchecked((int)0x8004b049); // -2147176375 public const int InvalidNonInteractiveUserQuota = unchecked((int)0x8004b050); // -2147176368 public const int CrmLiveCannotFindExternalMessageProvider = unchecked((int)0x8004b051); // -2147176367 public const int CrmLiveInvalidExternalMessageData = unchecked((int)0x8004b052); // -2147176366 public const int CrmLiveOrganizationEnableFailed = unchecked((int)0x8004b053); // -2147176365 public const int CrmLiveOrganizationDisableFailed = unchecked((int)0x8004b054); // -2147176364 public const int CrmLiveAddOnUnexpectedError = unchecked((int)0x8004b055); // -2147176363 public const int CrmLiveAddOnAddLicenseLimitReached = unchecked((int)0x8004b056); // -2147176362 public const int CrmLiveAddOnAddStorageLimitReached = unchecked((int)0x8004b057); // -2147176361 public const int CrmLiveAddOnRemoveStorageLimitReached = unchecked((int)0x8004b058); // -2147176360 public const int CrmLiveAddOnOrgInNoUpdateMode = unchecked((int)0x8004b059); // -2147176359 public const int CrmLiveUnknownCategory = unchecked((int)0x8004b05a); // -2147176358 public const int CrmLiveInvalidInvoicingAccountNumber = unchecked((int)0x8004b05b); // -2147176357 public const int CrmLiveAddOnDataChanged = unchecked((int)0x8004b05c); // -2147176356 public const int CrmLiveInvalidEmail = unchecked((int)0x8004b05d); // -2147176355 public const int CrmLiveInvalidPhone = unchecked((int)0x8004b05e); // -2147176354 public const int CrmLiveInvalidZipCode = unchecked((int)0x8004b05f); // -2147176353 public const int InvalidAmountFreeResourceLimit = unchecked((int)0x8004b060); // -2147176352 public const int InvalidToken = unchecked((int)0x8004b061); // -2147176351 public const int CrmLiveRegisterCustomCodeDisabled = unchecked((int)0x8004b062); // -2147176350 public const int CrmLiveExecuteCustomCodeDisabled = unchecked((int)0x8004b063); // -2147176349 public const int CrmLiveInvalidTaxId = unchecked((int)0x8004b064); // -2147176348 public const int DatacenterNotAvailable = unchecked((int)0x8004b065); // -2147176347 public const int ErrorConnectingToDiscoveryService = unchecked((int)0x8004b066); // -2147176346 public const int OrgDoesNotExistInDiscoveryService = unchecked((int)0x8004b067); // -2147176345 public const int ErrorConnectingToOrganizationService = unchecked((int)0x8004b068); // -2147176344 public const int UserIsNotSystemAdminInOrganization = unchecked((int)0x8004b069); // -2147176343 public const int MobileServiceError = unchecked((int)0x8004b070); // -2147176336 public const int LivePlatformGeneralEmailError = unchecked((int)0x8005b520); // -2147109600 public const int LivePlatformEmailInvalidTo = unchecked((int)0x8004b521); // -2147175135 public const int LivePlatformEmailInvalidFrom = unchecked((int)0x8004b522); // -2147175134 public const int LivePlatformEmailInvalidSubject = unchecked((int)0x8004b523); // -2147175133 public const int LivePlatformEmailInvalidBody = unchecked((int)0x8004b524); // -2147175132 public const int BillingPartnerCertificate = unchecked((int)0x8004b530); // -2147175120 public const int BillingNoSettingError = unchecked((int)0x8004b531); // -2147175119 public const int BillingTestConnectionError = unchecked((int)0x8004b532); // -2147175118 public const int BillingTestConnectionException = unchecked((int)0x8004b533); // -2147175117 public const int BillingUserPuidNullError = unchecked((int)0x8004b534); // -2147175116 public const int BillingUnmappedErrorCode = unchecked((int)0x8004b535); // -2147175115 public const int BillingUnknownErrorCode = unchecked((int)0x8004b536); // -2147175114 public const int BillingUnknownException = unchecked((int)0x8004b537); // -2147175113 public const int BillingRetrieveKeyError = unchecked((int)0x8004b538); // -2147175112 public const int BDK_E_ADDRESS_VALIDATION_FAILURE = unchecked((int)0x8004b540); // -2147175104 public const int BDK_E_AGREEMENT_ALREADY_SIGNED = unchecked((int)0x8004b541); // -2147175103 public const int BDK_E_AUTHORIZATION_FAILED = unchecked((int)0x8004b542); // -2147175102 public const int BDK_E_AVS_FAILED = unchecked((int)0x8004b543); // -2147175101 public const int BDK_E_BAD_CITYNAME_LENGTH = unchecked((int)0x8004b544); // -2147175100 public const int BDK_E_BAD_STATECODE_LENGTH = unchecked((int)0x8004b545); // -2147175099 public const int BDK_E_BAD_ZIPCODE_LENGTH = unchecked((int)0x8004b546); // -2147175098 public const int BDK_E_BADXML = unchecked((int)0x8004b547); // -2147175097 public const int BDK_E_BANNED_PAYMENT_INSTRUMENT = unchecked((int)0x8004b548); // -2147175096 public const int BDK_E_BANNEDPERSON = unchecked((int)0x8004b549); // -2147175095 public const int BDK_E_CANNOT_EXCEED_MAX_OWNERSHIP = unchecked((int)0x8004b54a); // -2147175094 public const int BDK_E_COUNTRY_CURRENCY_PI_MISMATCH = unchecked((int)0x8004b54b); // -2147175093 public const int BDK_E_CREDIT_CARD_EXPIRED = unchecked((int)0x8004b54c); // -2147175092 public const int BDK_E_DATE_EXPIRED = unchecked((int)0x8004b54d); // -2147175091 public const int BDK_E_ERROR_COUNTRYCODE_MISMATCH = unchecked((int)0x8004b54e); // -2147175090 public const int BDK_E_ERROR_COUNTRYCODE_REQUIRED = unchecked((int)0x8004b54f); // -2147175089 public const int BDK_E_EXTRA_REFERRAL_DATA = unchecked((int)0x8004b550); // -2147175088 public const int BDK_E_GUID_EXISTS = unchecked((int)0x8004b551); // -2147175087 public const int BDK_E_INVALID_ADDRESS_ID = unchecked((int)0x8004b552); // -2147175086 public const int BDK_E_INVALID_BILLABLE_ACCOUNT_ID = unchecked((int)0x8004b553); // -2147175085 public const int BDK_E_INVALID_BUF_SIZE = unchecked((int)0x8004b554); // -2147175084 public const int BDK_E_INVALID_CATEGORY_NAME = unchecked((int)0x8004b555); // -2147175083 public const int BDK_E_INVALID_COUNTRY_CODE = unchecked((int)0x8004b556); // -2147175082 public const int BDK_E_INVALID_CURRENCY = unchecked((int)0x8004b557); // -2147175081 public const int BDK_E_INVALID_CUSTOMER_TYPE = unchecked((int)0x8004b558); // -2147175080 public const int BDK_E_INVALID_DATE = unchecked((int)0x8004b559); // -2147175079 public const int BDK_E_INVALID_EMAIL_ADDRESS = unchecked((int)0x8004b55a); // -2147175078 public const int BDK_E_INVALID_FILTER = unchecked((int)0x8004b55b); // -2147175077 public const int BDK_E_INVALID_GUID = unchecked((int)0x8004b55c); // -2147175076 public const int BDK_E_INVALID_INPUT_TO_TAXWARE_OR_VERAZIP = unchecked((int)0x8004b55d); // -2147175075 public const int BDK_E_INVALID_LOCALE = unchecked((int)0x8004b55e); // -2147175074 public const int BDK_E_INVALID_OBJECT_ID = unchecked((int)0x8004b55f); // -2147175073 public const int BDK_E_INVALID_OFFERING_GUID = unchecked((int)0x8004b560); // -2147175072 public const int BDK_E_INVALID_PAYMENT_INSTRUMENT_STATUS = unchecked((int)0x8004b561); // -2147175071 public const int BDK_E_INVALID_PAYMENT_METHOD_ID = unchecked((int)0x8004b562); // -2147175070 public const int BDK_E_INVALID_PHONE_TYPE = unchecked((int)0x8004b563); // -2147175069 public const int BDK_E_INVALID_POLICY_ID = unchecked((int)0x8004b564); // -2147175068 public const int BDK_E_INVALID_REFERRALDATA_XML = unchecked((int)0x8004b565); // -2147175067 public const int BDK_E_INVALID_STATE_FOR_COUNTRY = unchecked((int)0x8004b566); // -2147175066 public const int BDK_E_INVALID_SUBSCRIPTION_ID = unchecked((int)0x8004b567); // -2147175065 public const int BDK_E_INVALID_TAX_EXEMPT_TYPE = unchecked((int)0x8004b568); // -2147175064 public const int BDK_E_MEG_CONFLICT = unchecked((int)0x8004b569); // -2147175063 public const int BDK_E_MULTIPLE_CITIES_FOUND = unchecked((int)0x8004b56a); // -2147175062 public const int BDK_E_MULTIPLE_COUNTIES_FOUND = unchecked((int)0x8004b56b); // -2147175061 public const int BDK_E_NON_ACTIVE_ACCOUNT = unchecked((int)0x8004b56c); // -2147175060 public const int BDK_E_NOPERMISSION = unchecked((int)0x8004b56d); // -2147175059 public const int BDK_E_OBJECT_ROLE_LIMIT_EXCEEDED = unchecked((int)0x8004b56e); // -2147175058 public const int BDK_E_OFFERING_ACCOUNT_CURRENCY_MISMATCH = unchecked((int)0x8004b56f); // -2147175057 public const int BDK_E_OFFERING_COUNTRY_ACCOUNT_MISMATCH = unchecked((int)0x8004b570); // -2147175056 public const int BDK_E_OFFERING_NOT_PURCHASEABLE = unchecked((int)0x8004b571); // -2147175055 public const int BDK_E_OFFERING_PAYMENT_INSTRUMENT_MISMATCH = unchecked((int)0x8004b572); // -2147175054 public const int BDK_E_OFFERING_REQUIRES_PI = unchecked((int)0x8004b573); // -2147175053 public const int BDK_E_PARTNERNOTINBILLING = unchecked((int)0x8004b574); // -2147175052 public const int BDK_E_PAYMENT_PROVIDER_CONNECTION_FAILED = unchecked((int)0x8004b575); // -2147175051 public const int BDK_E_PRIMARY_PHONE_REQUIRED = unchecked((int)0x8004b576); // -2147175050 public const int BDK_E_POLICY_DEAL_COUNTRY_MISMATCH = unchecked((int)0x8004b577); // -2147175049 public const int BDK_E_PUID_ROLE_LIMIT_EXCEEDED = unchecked((int)0x8004b578); // -2147175048 public const int BDK_E_RATING_FAILURE = unchecked((int)0x8004b579); // -2147175047 public const int BDK_E_REQUIRED_FIELD_MISSING = unchecked((int)0x8004b57a); // -2147175046 public const int BDK_E_STATE_CITY_INVALID = unchecked((int)0x8004b57b); // -2147175045 public const int BDK_E_STATE_INVALID = unchecked((int)0x8004b57c); // -2147175044 public const int BDK_E_STATE_ZIP_CITY_INVALID = unchecked((int)0x8004b57d); // -2147175043 public const int BDK_E_STATE_ZIP_CITY_INVALID2 = unchecked((int)0x8004b57e); // -2147175042 public const int BDK_E_STATE_ZIP_CITY_INVALID3 = unchecked((int)0x8004b57f); // -2147175041 public const int BDK_E_STATE_ZIP_CITY_INVALID4 = unchecked((int)0x8004b580); // -2147175040 public const int BDK_E_STATE_ZIP_COVERS_MULTIPLE_CITIES = unchecked((int)0x8004b581); // -2147175039 public const int BDK_E_STATE_ZIP_INVALID = unchecked((int)0x8004b582); // -2147175038 public const int BDK_E_TAXID_EXPDATE = unchecked((int)0x8004b583); // -2147175037 public const int BDK_E_TOKEN_BLACKLISTED = unchecked((int)0x8004b584); // -2147175036 public const int BDK_E_TOKEN_EXPIRED = unchecked((int)0x8004b585); // -2147175035 public const int BDK_E_TOKEN_NOT_VALID_FOR_OFFERING = unchecked((int)0x8004b586); // -2147175034 public const int BDK_E_TOKEN_RANGE_BLACKLISTED = unchecked((int)0x8004b587); // -2147175033 public const int BDK_E_TRANS_BALANCE_TO_PI_INVALID = unchecked((int)0x8004b588); // -2147175032 public const int BDK_E_UNKNOWN_SERVER_FAILURE = unchecked((int)0x8004b589); // -2147175031 public const int BDK_E_UNSUPPORTED_CHAR_EXIST = unchecked((int)0x8004b58a); // -2147175030 public const int BDK_E_VATID_DOESNOTHAVEEXPDATE = unchecked((int)0x8004b58b); // -2147175029 public const int BDK_E_ZIP_CITY_MISSING = unchecked((int)0x8004b58c); // -2147175028 public const int BDK_E_ZIP_INVALID = unchecked((int)0x8004b58d); // -2147175027 public const int BDK_E_ZIP_INVALID_FOR_ENTERED_STATE = unchecked((int)0x8004b58e); // -2147175026 public const int BDK_E_USAGE_COUNT_FOR_TOKEN_EXCEEDED = unchecked((int)0x8004b58f); // -2147175025 public const int MissingParameterToStoredProcedure = unchecked((int)0x8004c000); // -2147172352 public const int SqlErrorInStoredProcedure = unchecked((int)0x8004c001); // -2147172351 public const int StoredProcedureContext = unchecked((int)0x8004c002); // -2147172350 public const int InvitingOrganizationNotFound = unchecked((int)0x8004d200); // -2147167744 public const int InvitingUserNotInOrganization = unchecked((int)0x8004d201); // -2147167743 public const int InvitedUserAlreadyExists = unchecked((int)0x8004d202); // -2147167742 public const int InvitedUserIsOrganization = unchecked((int)0x8004d203); // -2147167741 public const int InvitationNotFound = unchecked((int)0x8004d204); // -2147167740 public const int InvitedUserAlreadyAdded = unchecked((int)0x8004d205); // -2147167739 public const int InvitationWrongUserOrgRelation = unchecked((int)0x8004d206); // -2147167738 public const int InvitationIsExpired = unchecked((int)0x8004d207); // -2147167737 public const int InvitationIsAccepted = unchecked((int)0x8004d208); // -2147167736 public const int InvitationIsRejected = unchecked((int)0x8004d209); // -2147167735 public const int InvitationIsRevoked = unchecked((int)0x8004d20a); // -2147167734 public const int InvitedUserMultipleTimes = unchecked((int)0x8004d20b); // -2147167733 public const int InvitationStatusError = unchecked((int)0x8004d20c); // -2147167732 public const int InvalidInvitationToken = unchecked((int)0x8004d20d); // -2147167731 public const int InvalidInvitationLiveId = unchecked((int)0x8004d20e); // -2147167730 public const int InvitationSendToSelf = unchecked((int)0x8004d20f); // -2147167729 public const int InvitationCannotBeReset = unchecked((int)0x8004d210); // -2147167728 public const int UserDataNotFound = unchecked((int)0x8004d211); // -2147167727 public const int CannotInviteDisabledUser = unchecked((int)0x8004d212); // -2147167726 public const int InvitationBillingAdminUnknown = unchecked((int)0x8004d213); // -2147167725 public const int CannotResetSysAdminInvite = unchecked((int)0x8004d214); // -2147167724 public const int CannotSendInviteToDuplicateWindowsLiveId = unchecked((int)0x8004d215); // -2147167723 public const int UserInviteDisabled = unchecked((int)0x8004d216); // -2147167722 public const int InvitationOrganizationNotEnabled = unchecked((int)0x8004d217); // -2147167721 public const int ClientAuthSignedOut = unchecked((int)0x8004d221); // -2147167711 public const int ClientAuthSyncIssue = unchecked((int)0x8004d223); // -2147167709 public const int ClientAuthCanceled = unchecked((int)0x8004d224); // -2147167708 public const int ClientAuthNoConnectivityOffline = unchecked((int)0x8004d225); // -2147167707 public const int ClientAuthNoConnectivity = unchecked((int)0x8004d226); // -2147167706 public const int ClientAuthOfflineInvalidCallerId = unchecked((int)0x8004d227); // -2147167705 public const int AuthenticateToServerBeforeRequestingProxy = unchecked((int)0x8004d228); // -2147167704 public const int ConfigDBObjectDoesNotExist = unchecked((int)0x8004d230); // -2147167696 public const int ConfigDBDuplicateRecord = unchecked((int)0x8004d231); // -2147167695 public const int ConfigDBCannotDeleteObjectDueState = unchecked((int)0x8004d232); // -2147167694 public const int ConfigDBCascadeDeleteNotAllowDelete = unchecked((int)0x8004d233); // -2147167693 public const int MoveBothToPrimary = unchecked((int)0x8004d234); // -2147167692 public const int MoveBothToSecondary = unchecked((int)0x8004d235); // -2147167691 public const int MoveOrganizationFailedNotDisabled = unchecked((int)0x8004d236); // -2147167690 public const int ConfigDBCannotUpdateObjectDueState = unchecked((int)0x8004d237); // -2147167689 public const int LiveAdminUnknownObject = unchecked((int)0x8004d238); // -2147167688 public const int LiveAdminUnknownCommand = unchecked((int)0x8004d239); // -2147167687 public const int OperationOrganizationNotFullyDisabled = unchecked((int)0x8004d23a); // -2147167686 public const int ConfigDBCannotDeleteDefaultOrganization = unchecked((int)0x8004d23b); // -2147167685 public const int LicenseNotEnoughToActivate = unchecked((int)0x80042f14); // -2147209452 public const int UserNotAssignedRoles = unchecked((int)0x80042f09); // -2147209463 public const int TeamNotAssignedRoles = unchecked((int)0x80042f0a); // -2147209462 public const int InvalidLicenseKey = unchecked((int)0x8004d240); // -2147167680 public const int NoLicenseInConfigDB = unchecked((int)0x8004d241); // -2147167679 public const int InvalidLicensePid = unchecked((int)0x8004d242); // -2147167678 public const int InvalidLicensePidGenCannotLoad = unchecked((int)0x8004d243); // -2147167677 public const int InvalidLicensePidGenOtherError = unchecked((int)0x8004d244); // -2147167676 public const int InvalidLicenseCannotReadMpcFile = unchecked((int)0x8004d245); // -2147167675 public const int InvalidLicenseMpcCode = unchecked((int)0x8004d246); // -2147167674 public const int LicenseUpgradePathNotAllowed = unchecked((int)0x8004d247); // -2147167673 public const int OrgsInaccessible = unchecked((int)0x8004d24a); // -2147167670 public const int UserNotAssignedLicense = unchecked((int)0x8004d24b); // -2147167669 public const int UserCannotEnableWithoutLicense = unchecked((int)0x8004d24c); // -2147167668 public const int LicenseConfigFileInvalid = unchecked((int)0x8004d250); // -2147167664 public const int LicenseTrialExpired = unchecked((int)0x8004415c); // -2147204772 public const int LicenseRegistrationExpired = unchecked((int)0x8004415d); // -2147204771 public const int LicenseTampered = unchecked((int)0x8004415f); // -2147204769 public const int NonInteractiveUserCannotAccessUI = unchecked((int)0x80044160); // -2147204768 public const int InvalidOrganizationUniqueName = unchecked((int)0x8004d251); // -2147167663 public const int InvalidOrganizationFriendlyName = unchecked((int)0x8004d252); // -2147167662 public const int OrganizationNotConfigured = unchecked((int)0x8004d253); // -2147167661 public const int InvalidDeviceToConfigureOrganization = unchecked((int)0x8004d254); // -2147167660 public const int InvalidBrowserToConfigureOrganization = unchecked((int)0x8004d255); // -2147167659 public const int DeploymentServiceNotAllowSetToThisState = unchecked((int)0x8004d260); // -2147167648 public const int DeploymentServiceNotAllowOperation = unchecked((int)0x8004d261); // -2147167647 public const int DeploymentServiceCannotChangeStateForDeploymentService = unchecked((int)0x8004d262); // -2147167646 public const int DeploymentServiceRequestValidationFailure = unchecked((int)0x8004d263); // -2147167645 public const int DeploymentServiceOperationIdentifierNotFound = unchecked((int)0x8004d264); // -2147167644 public const int DeploymentServiceCannotDeleteOperationInProgress = unchecked((int)0x8004d265); // -2147167643 public const int ConfigureClaimsBeforeIfd = unchecked((int)0x8004d266); // -2147167642 public const int EndUserNotificationTypeNotValidForEmail = unchecked((int)0x8004d291); // -2147167599 public const int ClientUpdateAvailable = unchecked((int)0x8004d294); // -2147167596 public const int InvalidRecurrenceRuleForBulkDeleteAndDuplicateDetection = unchecked((int)0x8004d2a0); // -2147167584 public const int InvalidRecurrenceInterval = unchecked((int)0x8004d2a1); // -2147167583 public const int InvalidRecurrenceIntervalForRollupJobs = unchecked((int)0x8004d2a2); // -2147167582 public const int QueriesForDifferentEntities = unchecked((int)0x8004d2b0); // -2147167568 public const int AggregateInnerQuery = unchecked((int)0x8004d2b1); // -2147167567 public const int InvalidDataDescription = unchecked((int)0x8004e000); // -2147164160 public const int NonPrimaryEntityDataDescriptionFound = unchecked((int)0x8004e001); // -2147164159 public const int InvalidPresentationDescription = unchecked((int)0x8004e002); // -2147164158 public const int SeriesMeasureCollectionMismatch = unchecked((int)0x8004e003); // -2147164157 public const int YValuesPerPointMeasureMismatch = unchecked((int)0x8004e004); // -2147164156 public const int ChartAreaCategoryMismatch = unchecked((int)0x8004e005); // -2147164155 public const int MultipleSubcategoriesFound = unchecked((int)0x8004e006); // -2147164154 public const int MultipleMeasuresFound = unchecked((int)0x8004e007); // -2147164153 public const int MultipleChartAreasFound = unchecked((int)0x8004e008); // -2147164152 public const int InvalidCategory = unchecked((int)0x8004e009); // -2147164151 public const int InvalidMeasureCollection = unchecked((int)0x8004e00a); // -2147164150 public const int DuplicateAliasFound = unchecked((int)0x8004e00b); // -2147164149 public const int EntityNotEnabledForCharts = unchecked((int)0x8004e00c); // -2147164148 public const int InvalidPageResponse = unchecked((int)0x8004e00d); // -2147164147 public const int VisualizationRenderingError = unchecked((int)0x8004e00e); // -2147164146 public const int InvalidGroupByAlias = unchecked((int)0x8004e00f); // -2147164145 public const int MeasureDataTypeInvalid = unchecked((int)0x8004e010); // -2147164144 public const int NoDataForVisualization = unchecked((int)0x8004e011); // -2147164143 public const int VisualizationModuleNotFound = unchecked((int)0x8004e012); // -2147164142 public const int ImportVisualizationDeletedError = unchecked((int)0x8004e013); // -2147164141 public const int ImportVisualizationExistingError = unchecked((int)0x8004e014); // -2147164140 public const int VisualizationOtcNotFoundError = unchecked((int)0x8004e015); // -2147164139 public const int InvalidDundasPresentationDescription = unchecked((int)0x8004e016); // -2147164138 public const int InvalidWebResourceForVisualization = unchecked((int)0x8004e017); // -2147164137 public const int ChartTypeNotSupportedForComparisonChart = unchecked((int)0x8004e018); // -2147164136 public const int InvalidFetchCollection = unchecked((int)0x8004e019); // -2147164135 public const int CategoryDataTypeInvalid = unchecked((int)0x8004e01a); // -2147164134 public const int DuplicateGroupByFound = unchecked((int)0x8004e01b); // -2147164133 public const int MultipleMeasureCollectionsFound = unchecked((int)0x8004e01c); // -2147164132 public const int InvalidGroupByColumn = unchecked((int)0x8004e01d); // -2147164131 public const int InvalidFilterCriteriaForVisualization = unchecked((int)0x8004e01e); // -2147164130 public const int CountSpecifiedWithoutOrder = unchecked((int)0x8004e01f); // -2147164129 public const int NoPreviewForCustomWebResource = unchecked((int)0x8004e020); // -2147164128 public const int ChartTypeNotSupportedForMultipleSeriesChart = unchecked((int)0x8004e021); // -2147164127 public const int InsufficientColumnsInSubQuery = unchecked((int)0x8004e022); // -2147164126 public const int AggregateQueryRecordLimitExceeded = unchecked((int)0x8004e023); // -2147164125 public const int RollupAggregateQueryRecordLimitExceeded = unchecked((int)0x8004e025); // -2147164123 public const int CurrencyFieldMissing = unchecked((int)0x8004e026); // -2147164122 public const int QuickFindQueryRecordLimitExceeded = unchecked((int)0x8004e024); // -2147164124 public const int RollupFieldNoWriteAccess = unchecked((int)0x8004e027); // -2147164121 public const int CannotAddOrActonBehalfAnotherUserPrivilege = unchecked((int)0x8004ed43); // -2147160765 public const int HipNoSettingError = unchecked((int)0x8004ed44); // -2147160764 public const int HipInvalidCertificate = unchecked((int)0x8004ed45); // -2147160763 public const int NoSettingError = unchecked((int)0x8004ed46); // -2147160762 public const int AppLockTimeout = unchecked((int)0x8004ed47); // -2147160761 public const int InvalidRecurrencePattern = unchecked((int)0x8004e100); // -2147163904 public const int CreateRecurrenceRuleFailed = unchecked((int)0x8004e101); // -2147163903 public const int PartialExpansionSettingLoadError = unchecked((int)0x8004e102); // -2147163902 public const int InvalidCrmDateTime = unchecked((int)0x8004e103); // -2147163901 public const int InvalidAppointmentInstance = unchecked((int)0x8004e104); // -2147163900 public const int InvalidSeriesId = unchecked((int)0x8004e105); // -2147163899 public const int AppointmentDeleted = unchecked((int)0x8004e106); // -2147163898 public const int InvalidInstanceTypeCode = unchecked((int)0x8004e107); // -2147163897 public const int OverlappingInstances = unchecked((int)0x8004e108); // -2147163896 public const int InvalidSeriesIdOriginalStart = unchecked((int)0x8004e109); // -2147163895 public const int ValidateNotSupported = unchecked((int)0x8004e10a); // -2147163894 public const int RecurringSeriesCompleted = unchecked((int)0x8004e10b); // -2147163893 public const int ExpansionRequestIsOutsideExpansionWindow = unchecked((int)0x8004e10c); // -2147163892 public const int InvalidInstanceEntityName = unchecked((int)0x8004e10d); // -2147163891 public const int BookFirstInstanceFailed = unchecked((int)0x8004e10e); // -2147163890 public const int InvalidSeriesStatus = unchecked((int)0x8004e10f); // -2147163889 public const int RecurrenceRuleUpdateFailure = unchecked((int)0x8004e110); // -2147163888 public const int RecurrenceRuleDeleteFailure = unchecked((int)0x8004e111); // -2147163887 public const int EntityNotRule = unchecked((int)0x8004e112); // -2147163886 public const int RecurringSeriesMasterIsLocked = unchecked((int)0x8004e113); // -2147163885 public const int UpdateRecurrenceRuleFailed = unchecked((int)0x8004e114); // -2147163884 public const int InstanceOutsideEffectiveRange = unchecked((int)0x8004e115); // -2147163883 public const int RecurrenceCalendarTypeNotSupported = unchecked((int)0x8004e116); // -2147163882 public const int RecurrenceHasNoOccurrence = unchecked((int)0x8004e117); // -2147163881 public const int RecurrenceStartDateTooSmall = unchecked((int)0x8004e118); // -2147163880 public const int RecurrenceEndDateTooBig = unchecked((int)0x8004e119); // -2147163879 public const int OccurrenceCrossingBoundary = unchecked((int)0x8004e120); // -2147163872 public const int OccurrenceTimeSpanTooBig = unchecked((int)0x8004e121); // -2147163871 public const int OccurrenceSkipsOverForward = unchecked((int)0x8004e122); // -2147163870 public const int OccurrenceSkipsOverBackward = unchecked((int)0x8004e123); // -2147163869 public const int InvalidDaysInFebruary = unchecked((int)0x8004e124); // -2147163868 public const int InvalidOccurrenceNumber = unchecked((int)0x8004e125); // -2147163867 public const int InvalidNumberOfPartitions = unchecked((int)0x8004e200); // -2147163648 public const int InvalidElementFound = unchecked((int)0x8004e300); // -2147163392 public const int MaximumControlsLimitExceeded = unchecked((int)0x8004e301); // -2147163391 public const int UserViewsOrVisualizationsFound = unchecked((int)0x8004e302); // -2147163390 public const int InvalidAttributeFound = unchecked((int)0x8004e303); // -2147163389 public const int MultipleFormElementsFound = unchecked((int)0x8004e304); // -2147163388 public const int NullDashboardName = unchecked((int)0x8004e305); // -2147163387 public const int InvalidFormType = unchecked((int)0x8004e306); // -2147163386 public const int InvalidControlClass = unchecked((int)0x8004e307); // -2147163385 public const int ImportDashboardDeletedError = unchecked((int)0x8004e308); // -2147163384 public const int PersonalReportFound = unchecked((int)0x8004e309); // -2147163383 public const int ObjectAlreadyExists = unchecked((int)0x8004e30a); // -2147163382 public const int EntityTypeSpecifiedForDashboard = unchecked((int)0x8004e30b); // -2147163381 public const int UnrestrictedIFrameInUserDashboard = unchecked((int)0x8004e30c); // -2147163380 public const int MultipleLabelsInUserDashboard = unchecked((int)0x8004e30d); // -2147163379 public const int UnsupportedDashboardInEditor = unchecked((int)0x8004e30e); // -2147163378 public const int InvalidUrlProtocol = unchecked((int)0x8004e30f); // -2147163377 public const int CannotRemoveComponentFromDefaultSolution = unchecked((int)0x8004f000); // -2147160064 public const int InvalidSolutionUniqueName = unchecked((int)0x8004f002); // -2147160062 public const int CannotUndeleteLabel = unchecked((int)0x8004f003); // -2147160061 public const int ErrorReactivatingComponentInstance = unchecked((int)0x8004f004); // -2147160060 public const int CannotDeleteRestrictedSolution = unchecked((int)0x8004f005); // -2147160059 public const int CannotDeleteRestrictedPublisher = unchecked((int)0x8004f006); // -2147160058 public const int ImportRestrictedSolutionError = unchecked((int)0x8004f007); // -2147160057 public const int CannotSetSolutionSystemAttributes = unchecked((int)0x8004f008); // -2147160056 public const int CannotUpdateDefaultSolution = unchecked((int)0x8004f009); // -2147160055 public const int CannotUpdateRestrictedSolution = unchecked((int)0x8004f00a); // -2147160054 public const int CannotAddWorkflowActivationToSolution = unchecked((int)0x8004f00c); // -2147160052 public const int CannotQueryBaseTableWithAggregates = unchecked((int)0x8004f00d); // -2147160051 public const int InvalidStateTransition = unchecked((int)0x8004f00e); // -2147160050 public const int CannotUpdateUnpublishedDeleteInstance = unchecked((int)0x8004f00f); // -2147160049 public const int UnsupportedComponentOperation = unchecked((int)0x8004f010); // -2147160048 public const int InvalidCreateOnProtectedComponent = unchecked((int)0x8004f011); // -2147160047 public const int InvalidUpdateOnProtectedComponent = unchecked((int)0x8004f012); // -2147160046 public const int InvalidDeleteOnProtectedComponent = unchecked((int)0x8004f013); // -2147160045 public const int InvalidPublishOnProtectedComponent = unchecked((int)0x8004f014); // -2147160044 public const int CannotAddNonCustomizableComponent = unchecked((int)0x8004f015); // -2147160043 public const int CannotOverwriteActiveComponent = unchecked((int)0x8004f016); // -2147160042 public const int CannotUpdateRestrictedPublisher = unchecked((int)0x8004f017); // -2147160041 public const int CannotAddSolutionComponentWithoutRoots = unchecked((int)0x8004f018); // -2147160040 public const int ComponentDefinitionDoesNotExists = unchecked((int)0x8004f019); // -2147160039 public const int DependencyAlreadyExists = unchecked((int)0x8004f01a); // -2147160038 public const int DependencyTableNotEmpty = unchecked((int)0x8004f01b); // -2147160037 public const int InvalidPublisherUniqueName = unchecked((int)0x8004f01c); // -2147160036 public const int CannotUninstallWithDependencies = unchecked((int)0x8004f01d); // -2147160035 public const int InvalidSolutionVersion = unchecked((int)0x8004f01e); // -2147160034 public const int CannotDeleteInUseComponent = unchecked((int)0x8004f01f); // -2147160033 public const int CannotUninstallReferencedProtectedSolution = unchecked((int)0x8004f020); // -2147160032 public const int CannotRemoveComponentFromSolution = unchecked((int)0x8004f021); // -2147160031 public const int RestrictedSolutionName = unchecked((int)0x8004f022); // -2147160030 public const int SolutionUniqueNameViolation = unchecked((int)0x8004f023); // -2147160029 public const int CannotUpdateManagedSolution = unchecked((int)0x8004f024); // -2147160028 public const int DependencyTrackingClosed = unchecked((int)0x8004f025); // -2147160027 public const int GenericManagedPropertyFailure = unchecked((int)0x8004f026); // -2147160026 public const int CombinedManagedPropertyFailure = unchecked((int)0x8004f027); // -2147160025 public const int ReportImportCategoryOptionNotFound = unchecked((int)0x8004f028); // -2147160024 public const int RequiredChildReportHasOtherParent = unchecked((int)0x8004f029); // -2147160023 public const int InvalidManagedPropertyException = unchecked((int)0x8004f030); // -2147160016 public const int OnlyOwnerCanSetManagedProperties = unchecked((int)0x8004f031); // -2147160015 public const int CannotDeleteMetadata = unchecked((int)0x8004f032); // -2147160014 public const int CannotUpdateReadOnlyPublisher = unchecked((int)0x8004f033); // -2147160013 public const int CannotSelectReadOnlyPublisher = unchecked((int)0x8004f034); // -2147160012 public const int CannotRemoveComponentFromSystemSolution = unchecked((int)0x8004f035); // -2147160011 public const int InvalidDependency = unchecked((int)0x8004f036); // -2147160010 public const int InvalidDependencyFetchXml = unchecked((int)0x8004f037); // -2147160009 public const int CannotModifyReportOutsideSolutionIfManaged = unchecked((int)0x8004f038); // -2147160008 public const int DuplicateDetectionRulesWereUnpublished = unchecked((int)0x8004f039); // -2147160007 public const int InvalidDependencyComponent = unchecked((int)0x8004f040); // -2147160000 public const int InvalidDependencyEntity = unchecked((int)0x8004f041); // -2147159999 public const int CannotUpdateSolutionPatch = unchecked((int)0x8004f042); // -2147159998 public const int SPFolderCreationFailure = unchecked((int)0x8004f0f0); // -2147159824 public const int SharePointUnableToAddUserToGroup = unchecked((int)0x8004f0f1); // -2147159823 public const int SharePointUnableToRemoveUserFromGroup = unchecked((int)0x8004f0f2); // -2147159822 public const int SharePointSiteNotPresentInSharePoint = unchecked((int)0x8004f0f3); // -2147159821 public const int SharePointUnableToRetrieveGroup = unchecked((int)0x8004f0f4); // -2147159820 public const int SharePointUnableToAclSiteWithPrivilege = unchecked((int)0x8004f0f5); // -2147159819 public const int SharePointUnableToAclSite = unchecked((int)0x8004f0f6); // -2147159818 public const int SharePointUnableToCreateSiteGroup = unchecked((int)0x8004f0f7); // -2147159817 public const int SharePointSiteCreationFailure = unchecked((int)0x8004f0f8); // -2147159816 public const int SharePointTeamProvisionJobAlreadyExists = unchecked((int)0x8004f0f9); // -2147159815 public const int SharePointRoleProvisionJobAlreadyExists = unchecked((int)0x8004f0fa); // -2147159814 public const int SharePointSiteWideProvisioningJobFailed = unchecked((int)0x8004f0fb); // -2147159813 public const int DataTypeMismatchForLinkedAttribute = unchecked((int)0x8004f0fc); // -2147159812 public const int InvalidEntityForLinkedAttribute = unchecked((int)0x8004f0fd); // -2147159811 public const int AlreadyLinkedToAnotherAttribute = unchecked((int)0x8004f0fe); // -2147159810 public const int DocumentManagementDisabled = unchecked((int)0x8004f0ff); // -2147159809 public const int DefaultSiteCollectionUrlChanged = unchecked((int)0x8004f100); // -2147159808 public const int RibbonImportHidingBasicHomeTab = unchecked((int)0x8004f101); // -2147159807 public const int RibbonImportInvalidPrivilegeName = unchecked((int)0x8004f102); // -2147159806 public const int RibbonImportEntityNotSupported = unchecked((int)0x8004f103); // -2147159805 public const int RibbonImportDependencyMissingEntity = unchecked((int)0x8004f104); // -2147159804 public const int RibbonImportDependencyMissingRibbonElement = unchecked((int)0x8004f105); // -2147159803 public const int RibbonImportDependencyMissingWebResource = unchecked((int)0x8004f106); // -2147159802 public const int RibbonImportDependencyMissingRibbonControl = unchecked((int)0x8004f107); // -2147159801 public const int RibbonImportModifyingTopLevelNode = unchecked((int)0x8004f108); // -2147159800 public const int RibbonImportLocationAndIdDoNotMatch = unchecked((int)0x8004f109); // -2147159799 public const int RibbonImportHidingJewel = unchecked((int)0x8004f10a); // -2147159798 public const int RibbonImportDuplicateElementId = unchecked((int)0x8004f10b); // -2147159797 public const int WebResourceInvalidType = unchecked((int)0x8004f111); // -2147159791 public const int WebResourceEmptySilverlightVersion = unchecked((int)0x8004f112); // -2147159790 public const int WebResourceInvalidSilverlightVersion = unchecked((int)0x8004f113); // -2147159789 public const int WebResourceContentSizeExceeded = unchecked((int)0x8004f114); // -2147159788 public const int WebResourceDuplicateName = unchecked((int)0x8004f115); // -2147159787 public const int WebResourceEmptyName = unchecked((int)0x8004f116); // -2147159786 public const int WebResourceNameInvalidCharacters = unchecked((int)0x8004f117); // -2147159785 public const int WebResourceNameInvalidPrefix = unchecked((int)0x8004f118); // -2147159784 public const int WebResourceNameInvalidFileExtension = unchecked((int)0x8004f119); // -2147159783 public const int WebResourceImportMissingFile = unchecked((int)0x8004f11a); // -2147159782 public const int WebResourceImportError = unchecked((int)0x8004f11b); // -2147159781 public const int InvalidActivityOwnershipTypeMask = unchecked((int)0x8004f120); // -2147159776 public const int ActivityCannotHaveRelatedActivities = unchecked((int)0x8004f121); // -2147159775 public const int CustomActivityMustHaveOfflineAvailability = unchecked((int)0x8004f122); // -2147159774 public const int ActivityMustHaveRelatedNotes = unchecked((int)0x8004f123); // -2147159773 public const int CustomActivityCannotBeMailMergeEnabled = unchecked((int)0x8004f124); // -2147159772 public const int InvalidCustomActivityType = unchecked((int)0x8004f125); // -2147159771 public const int ActivityMetadataUpdate = unchecked((int)0x8004f126); // -2147159770 public const int InvalidPrimaryFieldForActivity = unchecked((int)0x8004f127); // -2147159769 public const int CannotDeleteNonLeafNode = unchecked((int)0x8004f200); // -2147159552 public const int DuplicateUIStatementRootsFound = unchecked((int)0x8004f201); // -2147159551 public const int ErrorUpdateStatementTextIsReferenced = unchecked((int)0x8004f202); // -2147159550 public const int ErrorDeleteStatementTextIsReferenced = unchecked((int)0x8004f203); // -2147159549 public const int ErrorScriptSessionCannotCreateForDraftScript = unchecked((int)0x8004f204); // -2147159548 public const int ErrorScriptSessionCannotUpdateForDraftScript = unchecked((int)0x8004f205); // -2147159547 public const int ErrorScriptLanguageNotInstalled = unchecked((int)0x8004f206); // -2147159546 public const int ErrorScriptInitialStatementNotInScript = unchecked((int)0x8004f207); // -2147159545 public const int ErrorScriptInitialStatementNotRoot = unchecked((int)0x8004f208); // -2147159544 public const int ErrorScriptCannotDeletePublishedScript = unchecked((int)0x8004f209); // -2147159543 public const int ErrorScriptPublishMissingInitialStatement = unchecked((int)0x8004f20a); // -2147159542 public const int ErrorScriptPublishMalformedScript = unchecked((int)0x8004f20b); // -2147159541 public const int ErrorScriptUnpublishActiveScript = unchecked((int)0x8004f20c); // -2147159540 public const int ErrorScriptSessionCannotSetStateForDraftScript = unchecked((int)0x8004f20d); // -2147159539 public const int ErrorScriptStatementResponseTypeOnlyForPrompt = unchecked((int)0x8004f20e); // -2147159538 public const int ErrorStatementOnlyForDraftScript = unchecked((int)0x8004f20f); // -2147159537 public const int ErrorStatementDeleteOnlyForDraftScript = unchecked((int)0x8004f210); // -2147159536 public const int ErrorInvalidUIScriptImportFile = unchecked((int)0x8004f211); // -2147159535 public const int ErrorScriptFileParse = unchecked((int)0x8004f212); // -2147159534 public const int ErrorScriptCannotUpdatePublishedScript = unchecked((int)0x8004f213); // -2147159533 public const int ErrorInvalidFileNameChars = unchecked((int)0x8004f214); // -2147159532 public const int ErrorMimeTypeNullOrEmpty = unchecked((int)0x8004f215); // -2147159531 public const int ErrorImportInvalidForPublishedScript = unchecked((int)0x8004f216); // -2147159530 public const int UIScriptIdentifierDuplicate = unchecked((int)0x8004f217); // -2147159529 public const int UIScriptIdentifierInvalid = unchecked((int)0x8004f218); // -2147159528 public const int UIScriptIdentifierInvalidLength = unchecked((int)0x8004f219); // -2147159527 public const int ErrorNoQueryData = unchecked((int)0x8004f220); // -2147159520 public const int ErrorUIScriptPromptMissing = unchecked((int)0x8004f221); // -2147159519 public const int SharePointUrlHostValidator = unchecked((int)0x8004f301); // -2147159295 public const int SharePointCrmDomainValidator = unchecked((int)0x8004f302); // -2147159294 public const int SharePointServerDiscoveryValidator = unchecked((int)0x8004f303); // -2147159293 public const int SharePointServerVersionValidator = unchecked((int)0x8004f304); // -2147159292 public const int SharePointSiteCollectionIsAccessibleValidator = unchecked((int)0x8004f305); // -2147159291 public const int SharePointUrlIsRootWebValidator = unchecked((int)0x8004f306); // -2147159290 public const int SharePointSitePermissionsValidator = unchecked((int)0x8004f307); // -2147159289 public const int SharePointServerLanguageValidator = unchecked((int)0x8004f308); // -2147159288 public const int SharePointCrmGridIsInstalledValidator = unchecked((int)0x8004f309); // -2147159287 public const int SharePointErrorRetrieveAbsoluteUrl = unchecked((int)0x8004f310); // -2147159280 public const int SharePointInvalidEntityForValidation = unchecked((int)0x8004f311); // -2147159279 public const int DocumentManagementIsDisabled = unchecked((int)0x8004f312); // -2147159278 public const int DocumentManagementNotEnabledNoPrimaryField = unchecked((int)0x8004f313); // -2147159277 public const int SharePointErrorAbsoluteUrlClipped = unchecked((int)0x8004f314); // -2147159276 public const int SiteMapXsdValidationError = unchecked((int)0x8004f401); // -2147159039 public const int CannotSecureAttribute = unchecked((int)0x8004f501); // -2147158783 public const int AttributePrivilegeCreateIsMissing = unchecked((int)0x8004f502); // -2147158782 public const int AttributePermissionUpdateIsMissingDuringShare = unchecked((int)0x8004f503); // -2147158781 public const int AttributePermissionReadIsMissing = unchecked((int)0x8004f504); // -2147158780 public const int CannotRemoveSysAdminProfileFromSysAdminUser = unchecked((int)0x8004f505); // -2147158779 public const int QueryContainedSecuredAttributeWithoutAccess = unchecked((int)0x8004f506); // -2147158778 public const int AttributePermissionUpdateIsMissingDuringUpdate = unchecked((int)0x8004f507); // -2147158777 public const int AttributeNotSecured = unchecked((int)0x8004f508); // -2147158776 public const int AttributeSharingCreateShouldSetReadOrAndUpdateAccess = unchecked((int)0x8004f509); // -2147158775 public const int AttributeSharingUpdateInvalid = unchecked((int)0x8004f50a); // -2147158774 public const int AttributeSharingCreateDuplicate = unchecked((int)0x8004f50b); // -2147158773 public const int AdminProfileCannotBeEditedOrDeleted = unchecked((int)0x8004f50c); // -2147158772 public const int AttributePrivilegeInvalidToUnsecure = unchecked((int)0x8004f50d); // -2147158771 public const int AttributePermissionIsInvalid = unchecked((int)0x8004f50e); // -2147158770 public const int ApplicationUserAllowCustomRoleOnly = unchecked((int)0x8004f50f); // -2147158769 public const int AzureApplicationIdNotFound = unchecked((int)0x8004f510); // -2147158768 public const int DuplicateApplicationUser = unchecked((int)0x8004f511); // -2147158767 public const int AzureApplicationIdNotFoundInOrgDB = unchecked((int)0x8004f512); // -2147158766 public const int RequireValidImportMapForUpdate = unchecked((int)0x8004f600); // -2147158528 public const int InvalidFormatForUpdateMode = unchecked((int)0x8004f601); // -2147158527 public const int MaximumCountForUpdateModeExceeded = unchecked((int)0x8004f602); // -2147158526 public const int RecordResolutionFailed = unchecked((int)0x8004f603); // -2147158525 public const int InvalidOperationForDynamicList = unchecked((int)0x8004f701); // -2147158271 public const int QueryNotValidForStaticList = unchecked((int)0x8004f702); // -2147158270 public const int LockStatusNotValidForDynamicList = unchecked((int)0x8004f703); // -2147158269 public const int CannotCopyStaticList = unchecked((int)0x8004f704); // -2147158268 public const int CannotDeleteSystemForm = unchecked((int)0x8004f652); // -2147158446 public const int CannotUpdateSystemEntityIcons = unchecked((int)0x8004f653); // -2147158445 public const int FallbackFormDeletion = unchecked((int)0x8004f654); // -2147158444 public const int SystemFormImportMissingRoles = unchecked((int)0x8004f655); // -2147158443 public const int SystemFormCopyUnmatchedEntity = unchecked((int)0x8004f656); // -2147158442 public const int SystemFormCopyUnmatchedFormType = unchecked((int)0x8004f657); // -2147158441 public const int SystemFormCreateWithExistingLabel = unchecked((int)0x8004f658); // -2147158440 public const int QuickFormNotCustomizableThroughSdk = unchecked((int)0x8004f659); // -2147158439 public const int InvalidDeactivateFormType = unchecked((int)0x8004f660); // -2147158432 public const int FallbackFormDeactivation = unchecked((int)0x8004f661); // -2147158431 public const int DeprecatedFormActivation = unchecked((int)0x8004f662); // -2147158430 public const int CannotUpdateEntitySetName = unchecked((int)0x8004f663); // -2147158429 public const int FallbackCardFormDeactivation = unchecked((int)0x8004f664); // -2147158428 public const int FallbackQuickFormDeactivation = unchecked((int)0x8004f665); // -2147158427 public const int FallbackMainInteractionCentricFormDeactivation = unchecked((int)0x8004f666); // -2147158426 public const int DeprecatedMobileFormsCreation = unchecked((int)0x8004f667); // -2147158425 public const int DeprecatedMobileFormsEdit = unchecked((int)0x8004f668); // -2147158424 public const int RuntimeRibbonXmlValidation = unchecked((int)0x8004f671); // -2147158415 public const int InitializeErrorNoReadOnSource = unchecked((int)0x8004f800); // -2147158016 public const int NoRollupAttributesDefined = unchecked((int)0x8004f681); // -2147158399 public const int GoalPercentageAchievedValueOutOfRange = unchecked((int)0x8004f682); // -2147158398 public const int InvalidRollupQueryAttributeSet = unchecked((int)0x8004f683); // -2147158397 public const int InvalidGoalManager = unchecked((int)0x8004f684); // -2147158396 public const int InactiveRollupQuerySetOnGoal = unchecked((int)0x8004f685); // -2147158395 public const int InactiveMetricSetOnGoal = unchecked((int)0x8004f686); // -2147158394 public const int MetricEntityOrFieldDeleted = unchecked((int)0x8004f687); // -2147158393 public const int ExceededNumberOfRecordsCanFollow = unchecked((int)0x8004f6a0); // -2147158368 public const int EntityIsNotEnabledForFollowUser = unchecked((int)0x8004f6a1); // -2147158367 public const int EntityIsNotEnabledForFollow = unchecked((int)0x8004f6a2); // -2147158366 public const int CannotFollowInactiveEntity = unchecked((int)0x8004f6a3); // -2147158365 public const int MustContainAtLeastACharInMention = unchecked((int)0x8004f6a4); // -2147158364 public const int LanguageProvisioningSrsDataConnectorNotInstalled = unchecked((int)0x8004f710); // -2147158256 public const int BidsInvalidConnectionString = unchecked((int)0x8005e000); // -2147098624 public const int BidsInvalidUrl = unchecked((int)0x8005e001); // -2147098623 public const int BidsServerConnectionFailed = unchecked((int)0x8005e002); // -2147098622 public const int BidsAuthenticationError = unchecked((int)0x8005e003); // -2147098621 public const int BidsNoOrganizationsFound = unchecked((int)0x8005e004); // -2147098620 public const int BidsOrganizationNotFound = unchecked((int)0x8005e005); // -2147098619 public const int BidsAuthenticationFailed = unchecked((int)0x8005e006); // -2147098618 public const int TransactionNotSupported = unchecked((int)0x8005e007); // -2147098617 public const int IndexOutOfRange = unchecked((int)0x8005e008); // -2147098616 public const int InvalidAttribute = unchecked((int)0x8005e009); // -2147098615 public const int MultiValueParameterFound = unchecked((int)0x8005e00a); // -2147098614 public const int QueryParameterNotUnique = unchecked((int)0x8005e00b); // -2147098613 public const int InvalidEntity = unchecked((int)0x8005e00c); // -2147098612 public const int UnsupportedAttributeType = unchecked((int)0x8005e00d); // -2147098611 public const int FetchDataSetQueryTimeout = unchecked((int)0x8005e00e); // -2147098610 public const int InvalidCommand = unchecked((int)0x8005e100); // -2147098368 public const int InvalidDataXml = unchecked((int)0x8005e101); // -2147098367 public const int InvalidLanguageForProcessConfiguration = unchecked((int)0x8005e102); // -2147098366 public const int InvalidComplexControlId = unchecked((int)0x8005e103); // -2147098365 public const int InvalidProcessControlEntity = unchecked((int)0x8005e104); // -2147098364 public const int InvalidProcessControlAttribute = unchecked((int)0x8005e105); // -2147098363 public const int BadRequest = unchecked((int)0x8005f100); // -2147094272 public const int AccessTokenExpired = unchecked((int)0x8005f101); // -2147094271 public const int Forbidden = unchecked((int)0x8005f102); // -2147094270 public const int Throttling = unchecked((int)0x8005f103); // -2147094269 public const int NetworkIssue = unchecked((int)0x8005f104); // -2147094268 public const int CouldNotReadAccessToken = unchecked((int)0x8005f105); // -2147094267 public const int NotVerifiedAdmin = unchecked((int)0x8005f106); // -2147094266 public const int YammerAuthTimedOut = unchecked((int)0x8005f107); // -2147094265 public const int NoYammerNetworksFound = unchecked((int)0x8005f108); // -2147094264 public const int OAuthTokenNotFound = unchecked((int)0x8005f109); // -2147094263 public const int CouldNotDecryptOAuthToken = unchecked((int)0x8005f110); // -2147094256 public const int UserNeverLoggedIntoYammer = unchecked((int)0x8005f111); // -2147094255 public const int StepNotSupportedForClientBusinessRule = unchecked((int)0x80060000); // -2147090432 public const int EventNotSupportedForBusinessRule = unchecked((int)0x80060001); // -2147090431 public const int CannotUpdateTriggerForPublishedRules = unchecked((int)0x80060002); // -2147090430 public const int EventTypeAndControlNameAreMismatched = unchecked((int)0x80060003); // -2147090429 public const int ExpressionNotSupportedForEditor = unchecked((int)0x80060004); // -2147090428 public const int EditorOnlySupportAndOperatorForLogicalConditions = unchecked((int)0x80060005); // -2147090427 public const int UnexpectedRightOperandCount = unchecked((int)0x80060006); // -2147090426 public const int RuleNotSupportedForEditor = unchecked((int)0x80060007); // -2147090425 public const int BusinessRuleEditorSupportsOnlyIfConditionBranch = unchecked((int)0x80060008); // -2147090424 public const int UnsupportedStepForBusinessRuleEditor = unchecked((int)0x80060009); // -2147090423 public const int UnsupportedAttributeForEditor = unchecked((int)0x80060010); // -2147090416 public const int ExpectingAtLeastOneBusinessRuleStep = unchecked((int)0x80060011); // -2147090415 public const int RuleCreationNotAllowedForCyclicReferences = unchecked((int)0x80060012); // -2147090414 public const int NoConditionRuleCreationNotAllowedForSetValueShowError = unchecked((int)0x80060013); // -2147090413 public const int RuleActivationNotAllowedWithDeletedStages = unchecked((int)0x80060014); // -2147090412 public const int EntityLimitExceeded = unchecked((int)0x80060200); // -2147089920 public const int InvalidSearchEntity = unchecked((int)0x80060201); // -2147089919 public const int InvalidSearchEntities = unchecked((int)0x80060202); // -2147089918 public const int NoQuickFindFound = unchecked((int)0x80060203); // -2147089917 public const int InvalidSearchName = unchecked((int)0x80060204); // -2147089916 public const int EntityGroupNameOrEntityNamesMustBeProvided = unchecked((int)0x80060205); // -2147089915 public const int OnlyOneSearchParameterMustBeProvided = unchecked((int)0x80060206); // -2147089914 public const int ExternalSearchAttributeLimitExceeded = unchecked((int)0x80060300); // -2147089664 public const int CannotEnableEntityForRelevanceSearch = unchecked((int)0x80060302); // -2147089662 public const int CannotDisableRelevanceSearchManagedProperty = unchecked((int)0x80060303); // -2147089661 public const int DuplicateAttributePhysicalName = unchecked((int)0x80060304); // -2147089660 public const int AttributeIsNotFacetable = unchecked((int)0x80060305); // -2147089659 public const int ExceededLimitForAllowedFacetableAttributes = unchecked((int)0x80060306); // -2147089658 public const int BusinessProcessFlowDefinitionOutdated = unchecked((int)0x80060375); // -2147089547 public const int InvalidExportProcessFlowNotActivated = unchecked((int)0x80060376); // -2147089546 public const int InvalidStageTransitionOnInactiveInstance = unchecked((int)0x80060377); // -2147089545 public const int InputParameterFieldIncorrect = unchecked((int)0x80060378); // -2147089544 public const int ProcessActionNameIncorrect = unchecked((int)0x80060379); // -2147089543 public const int ProcessActionWorkflowNotEnabledForOnDemand = unchecked((int)0x80060380); // -2147089536 public const int CustomActionMustBeMarked = unchecked((int)0x80060381); // -2147089535 public const int ActionSupportNotEnabled = unchecked((int)0x80060382); // -2147089534 public const int ManagedBpfDeletionInvalid = unchecked((int)0x80060383); // -2147089533 public const int BPFEntityAlreadyExists = unchecked((int)0x80060384); // -2147089532 public const int MissingControlStep = unchecked((int)0x80060385); // -2147089531 public const int InvalidUniqueName = unchecked((int)0x80060386); // -2147089530 public const int ArgumentTypeMismatch = unchecked((int)0x80060387); // -2147089529 public const int ArgumentDirectionMismatch = unchecked((int)0x80060388); // -2147089528 public const int InvalidBusinessProcess = unchecked((int)0x80060389); // -2147089527 public const int UnsupportedActionType = unchecked((int)0x80060390); // -2147089520 public const int NotExistBusinessProcess = unchecked((int)0x80060391); // -2147089519 public const int InvalidTaskFlow = unchecked((int)0x80060392); // -2147089518 public const int NotExistArgumentInAction = unchecked((int)0x80060393); // -2147089517 public const int UnsupportedArgumentsMarkedRequired = unchecked((int)0x80060394); // -2147089516 public const int EntityReferenceArgumentsNotBound = unchecked((int)0x80060395); // -2147089515 public const int NoDefaultValueForOptionSetArgument = unchecked((int)0x80060396); // -2147089514 public const int BpfInstanceAlreadyExists = unchecked((int)0x80060397); // -2147089513 public const int ProcessNameContainsInvalidCharacters = unchecked((int)0x80060398); // -2147089512 public const int ProcessEmptyBranches = unchecked((int)0x80060399); // -2147089511 public const int WorkflowIdIsNull = unchecked((int)0x80060400); // -2147089408 public const int PrimaryEntityIsNull = unchecked((int)0x80060401); // -2147089407 public const int TypeNotSetToDefinition = unchecked((int)0x80060402); // -2147089406 public const int ScopeNotSetToGlobal = unchecked((int)0x80060403); // -2147089405 public const int CategoryNotSetToBusinessProcessFlow = unchecked((int)0x80060404); // -2147089404 public const int BusinessProcessFlowStepHasInvalidParent = unchecked((int)0x80060405); // -2147089403 public const int NullOrEmptyAttributeInXaml = unchecked((int)0x80060406); // -2147089402 public const int InvalidGuidInXaml = unchecked((int)0x80060407); // -2147089401 public const int NoLabelsAssociatedWithStep = unchecked((int)0x80060408); // -2147089400 public const int StepStepDoesNotHaveAnyControlStepAsItsChildren = unchecked((int)0x80060409); // -2147089399 public const int InvalidXmlForParameters = unchecked((int)0x80060410); // -2147089392 public const int ControlIdIsNotUnique = unchecked((int)0x80060411); // -2147089391 public const int InvalidAttributeInXaml = unchecked((int)0x80060412); // -2147089390 public const int AttributeCannotBeUpdated = unchecked((int)0x80060413); // -2147089389 public const int StepCountInXamlExceedsMaxAllowed = unchecked((int)0x80060414); // -2147089388 public const int EntitiesExceedMaxAllowed = unchecked((int)0x80060415); // -2147089387 public const int StepDoesNotHaveAnyChildInXaml = unchecked((int)0x80060416); // -2147089386 public const int InvalidXaml = unchecked((int)0x80060417); // -2147089385 public const int ProcessNameIsNullOrEmpty = unchecked((int)0x80060418); // -2147089384 public const int LabelIdDoesNotMatchStepId = unchecked((int)0x80060419); // -2147089383 public const int RequiredProcessStepIsNull = unchecked((int)0x8006041a); // -2147089382 public const int EntityExceedsMaxActiveBusinessProcessFlows = unchecked((int)0x80060420); // -2147089376 public const int EntityIsNotBusinessProcessFlowEnabled = unchecked((int)0x80060421); // -2147089375 public const int BusinessProcessFlowMissingEntityErrorMessage = unchecked((int)0x80060440); // -2147089344 public const int ParticipatingEntityDoesNotAppearInTraversedPath = unchecked((int)0x80060441); // -2147089343 public const int ValidationContextIsNull = unchecked((int)0x80060442); // -2147089342 public const int FinalMergedEntityIsNull = unchecked((int)0x80060443); // -2147089341 public const int EntityInstanceIsNull = unchecked((int)0x80060444); // -2147089340 public const int ContextIsNull = unchecked((int)0x80060445); // -2147089339 public const int BpfEntityServiceIsNull = unchecked((int)0x80060446); // -2147089338 public const int BpfFactoryIsNull = unchecked((int)0x80060447); // -2147089337 public const int BpfVisitorIsNull = unchecked((int)0x80060448); // -2147089336 public const int ActiveStageIDIsNull = unchecked((int)0x80060449); // -2147089335 public const int StageIdIsNotPresentInBusinessProcess = unchecked((int)0x80060450); // -2147089328 public const int StageEntityIsNull = unchecked((int)0x80060451); // -2147089327 public const int InvalidStage = unchecked((int)0x80060452); // -2147089326 public const int PrimaryParticipatingEntityIsNotPresent = unchecked((int)0x80060453); // -2147089325 public const int StageIdIsEmpty = unchecked((int)0x80060454); // -2147089324 public const int ActiveStageIdDoesNotMatchLastStageInTraversedPath = unchecked((int)0x80060455); // -2147089323 public const int FirstStageIdInTraversedPathDoesNotMatchFirstStageIdInBusinessProcess = unchecked((int)0x80060456); // -2147089322 public const int StageIdIsNotValid = unchecked((int)0x80060458); // -2147089320 public const int ProcessIdIsEmpty = unchecked((int)0x80060459); // -2147089319 public const int ProcessIdDoesNotMatchBusinessProcessDefinition = unchecked((int)0x80060460); // -2147089312 public const int ProcessStageIdIsEmpty = unchecked((int)0x80060461); // -2147089311 public const int CalculatedFieldsFeatureNotEnabled = unchecked((int)0x80060422); // -2147089374 public const int CalculatedFieldsInvalidEntity = unchecked((int)0x80060423); // -2147089373 public const int CalculatedFieldsInvalidXaml = unchecked((int)0x80060424); // -2147089372 public const int CalculatedFieldsNonCalculatedFieldAssignment = unchecked((int)0x80060425); // -2147089371 public const int CalculatedFieldsTypeMismatch = unchecked((int)0x80060426); // -2147089370 public const int CalculatedFieldsInvalidFunction = unchecked((int)0x80060427); // -2147089369 public const int CalculatedFieldsInvalidAttribute = unchecked((int)0x80060428); // -2147089368 public const int TooManyCalculatedFieldsInQuery = unchecked((int)0x80060429); // -2147089367 public const int CalculatedFieldsPrimitiveOverflow = unchecked((int)0x8006042a); // -2147089366 public const int CalculatedFieldsAssignmentMismatch = unchecked((int)0x8006042b); // -2147089365 public const int CalculatedFieldsFunctionMismatch = unchecked((int)0x8006042c); // -2147089364 public const int CalculatedFieldsDivideByZero = unchecked((int)0x8006042d); // -2147089363 public const int CalculatedFieldsInvalidAttributes = unchecked((int)0x8006042e); // -2147089362 public const int CalculatedFieldsInvalidValue = unchecked((int)0x8006042f); // -2147089361 public const int CalculatedFieldsInvalidValues = unchecked((int)0x80060430); // -2147089360 public const int CalculatedFieldsCyclicReference = unchecked((int)0x80060431); // -2147089359 public const int CalculatedFieldsDepthExceeded = unchecked((int)0x80060432); // -2147089358 public const int CalculatedFieldsEntitiesExceeded = unchecked((int)0x80060433); // -2147089357 public const int InvalidSourceType = unchecked((int)0x80060437); // -2147089353 public const int CalculatedFieldsInvalidSourceTypeMask = unchecked((int)0x80060438); // -2147089352 public const int AttributeFormulaDefinitionIsEmpty = unchecked((int)0x80060439); // -2147089351 public const int InvalidWorkflowOrWorkflowDoesNotExist = unchecked((int)0x8006040a); // -2147089398 public const int WorkflowDoesNotExist = unchecked((int)0x8006040b); // -2147089397 public const int ActionStepInvalidStageid = unchecked((int)0x8006040c); // -2147089396 public const int ActionStepInvalidProcessid = unchecked((int)0x8006040d); // -2147089395 public const int ActionStepInvalidPipelineStageid = unchecked((int)0x8006040e); // -2147089394 public const int DatafieldNameShouldBeNull = unchecked((int)0x8006041b); // -2147089381 public const int ActionStepInvalidProcessAction = unchecked((int)0x8006041c); // -2147089380 public const int CalculatedFieldsDateOnlyBehaviorTypeMismatch = unchecked((int)0x8006043a); // -2147089350 public const int CalculatedFieldsTimeInvBehaviorTypeMismatch = unchecked((int)0x8006043b); // -2147089349 public const int CalculatedFieldsUserLocBehaviorTypeMismatch = unchecked((int)0x8006043c); // -2147089348 public const int RollupFieldsTargetRelationshipNull = unchecked((int)0x80060533); // -2147089101 public const int RollupFieldsTargetRelationshipNotPartOfOneToNRelationship = unchecked((int)0x80060534); // -2147089100 public const int RollupFieldsSourceEntityNotHierarchical = unchecked((int)0x80060535); // -2147089099 public const int RollupFieldsAggregateNotDefined = unchecked((int)0x80060536); // -2147089098 public const int RollupFieldsAggregateFieldNotPartOfEntity = unchecked((int)0x80060537); // -2147089097 public const int RollupFieldsSourceFilterConditionInvalid = unchecked((int)0x80060538); // -2147089096 public const int RollupFieldsTargetFilterConditionInvalid = unchecked((int)0x80060539); // -2147089095 public const int RollupFieldsAggregateFunctionTypeMismatch = unchecked((int)0x8006053a); // -2147089094 public const int RollupFieldsGeneric = unchecked((int)0x8006053b); // -2147089093 public const int RollupFieldsAggregateOnRollupFieldOrComplexCalcFieldNotAllowed = unchecked((int)0x8006053c); // -2147089092 public const int RollupFieldsAggregateFieldDataTypeNotAllowedSimilarRollupFieldDataType = unchecked((int)0x8006053d); // -2147089091 public const int RollupFieldsDataTypeNotValid = unchecked((int)0x8006053e); // -2147089090 public const int RollupFieldsAggregateFieldNotBelongToSourceEntity = unchecked((int)0x8006053f); // -2147089089 public const int RollupFieldsAggregateFieldNotBelongToRelatedEntity = unchecked((int)0x80060540); // -2147089088 public const int RollupFieldDependentFieldCannotDeleted = unchecked((int)0x80060541); // -2147089087 public const int ExceededRollupFieldsPerOrgQuota = unchecked((int)0x80060542); // -2147089086 public const int ExceededRollupFieldsPerEntityQuota = unchecked((int)0x80060543); // -2147089085 public const int RollupFieldAndAggregateFieldDataTypeFormatMismatch = unchecked((int)0x80060544); // -2147089084 public const int RollupFieldAggregateFunctionNotAllowedForRollupFieldDataType = unchecked((int)0x80060545); // -2147089083 public const int RollupFieldAggregateFunctionNotAllowed = unchecked((int)0x80060546); // -2147089082 public const int HierarchyCalculateLimitReached = unchecked((int)0x80060547); // -2147089081 public const int RollupFieldSourceFilterFieldNotAllowed = unchecked((int)0x80060548); // -2147089080 public const int RollupFieldTargetFilterFieldNotAllowed = unchecked((int)0x80060549); // -2147089079 public const int CalculatedFieldUsedInRollupFieldCannotBeComplex = unchecked((int)0x80060550); // -2147089072 public const int RollupFieldsTargetSameAsSourceEntity = unchecked((int)0x80060551); // -2147089071 public const int RollupFieldsTargetEntityNotValid = unchecked((int)0x80060552); // -2147089070 public const int RollupFieldDefinitionNotValid = unchecked((int)0x80060553); // -2147089069 public const int RecalculateNotSupportedOnNonRollupField = unchecked((int)0x80060554); // -2147089068 public const int CannotModifyRollupDependentField = unchecked((int)0x80060555); // -2147089067 public const int RollupDependentFieldNameAlreadyExists = unchecked((int)0x80060556); // -2147089066 public const int RollupOrCalcNotAllowedInWorkflowWaitCondition = unchecked((int)0x80060557); // -2147089065 public const int CalculateNowOverflowError = unchecked((int)0x80060558); // -2147089064 public const int AttributeCannotBeUsedInAggregate = unchecked((int)0x80060559); // -2147089063 public const int RollupFormulaFieldInvalid = unchecked((int)0x80060560); // -2147089056 public const int RollupCalculationLimitReached = unchecked((int)0x80060561); // -2147089055 public const int RollupTargetLinkedEntityOnlySupportedForActivityEntities = unchecked((int)0x80060562); // -2147089054 public const int RollupTargetLinkedEntityCanOnlyUsedForActivityPartyEntities = unchecked((int)0x80060563); // -2147089053 public const int RollupInvalidAttributeForFilterCondition = unchecked((int)0x80060564); // -2147089052 public const int RollupFieldsV2FeatureNotEnabled = unchecked((int)0x80060565); // -2147089051 public const int RollupTargetLinkedRelationshipNotValid = unchecked((int)0x80060566); // -2147089050 public const int ConditionBranchDoesHaveSetNextStageOnlyChildInXaml = unchecked((int)0x80060434); // -2147089356 public const int ConditionStepCountInXamlExceedsMaxAllowed = unchecked((int)0x80060435); // -2147089355 public const int ConditionAttributesNotAnSubsetOfStepAttributes = unchecked((int)0x80060436); // -2147089354 public const int CannotDeleteUserMailbox = unchecked((int)0x8005e200); // -2147098112 public const int EmailServerProfileSslRequiredForOnline = unchecked((int)0x8005e201); // -2147098111 public const int EmailServerProfileInvalidCredentialRetrievalForOnline = unchecked((int)0x8005e202); // -2147098110 public const int EmailServerProfileInvalidCredentialRetrievalForExchange = unchecked((int)0x8005e203); // -2147098109 public const int EmailServerProfileAutoDiscoverNotAllowed = unchecked((int)0x8005e204); // -2147098108 public const int EmailServerProfileLocationNotRequired = unchecked((int)0x8005e205); // -2147098107 public const int ForwardMailboxCannotAssociateWithUser = unchecked((int)0x8005e207); // -2147098105 public const int HybridSSSExchangeOnlineS2SCertExpired = unchecked((int)0x80131509); // -2146233079 public const int HybridSSSExchangeOnlineS2SCertActsExpired = unchecked((int)0x80131500); // -2146233088 public const int MailboxCannotModifyEmailAddress = unchecked((int)0x8005e208); // -2147098104 public const int MailboxCredentialNotSpecified = unchecked((int)0x8005e209); // -2147098103 public const int EmailServerProfileInvalidServerLocation = unchecked((int)0x8005e20a); // -2147098102 public const int CannotAcceptEmail = unchecked((int)0x8005e20b); // -2147098101 public const int QueueMailboxUnexpectedDeliveryMethod = unchecked((int)0x8005e210); // -2147098096 public const int ForwardMailboxEmailAddressRequired = unchecked((int)0x8005e211); // -2147098095 public const int ForwardMailboxUnexpectedIncomingDeliveryMethod = unchecked((int)0x8005e212); // -2147098094 public const int ForwardMailboxUnexpectedOutgoingDeliveryMethod = unchecked((int)0x8005e213); // -2147098093 public const int InvalidCredentialTypeForNonExchangeIncomingConnection = unchecked((int)0x8005e214); // -2147098092 public const int Pop3UnexpectedException = unchecked((int)0x8005e215); // -2147098091 public const int OpenMailboxException = unchecked((int)0x8005e216); // -2147098090 public const int InvalidMailbox = unchecked((int)0x8005e217); // -2147098089 public const int InvalidEmailServerLocation = unchecked((int)0x8005e218); // -2147098088 public const int InactiveMailbox = unchecked((int)0x8005e219); // -2147098087 public const int UnapprovedMailbox = unchecked((int)0x8005e220); // -2147098080 public const int InvalidEmailAddressInMailbox = unchecked((int)0x8005e221); // -2147098079 public const int EmailServerProfileNotAssociated = unchecked((int)0x8005e222); // -2147098078 public const int IncomingDeliveryIsForwardMailbox = unchecked((int)0x8005e223); // -2147098077 public const int InvalidIncomingDeliveryExpectingEmailConnector = unchecked((int)0x8005e224); // -2147098076 public const int OutgoingNotAllowedForForwardMailbox = unchecked((int)0x8005e225); // -2147098075 public const int InvalidOutgoingDeliveryExpectingEmailConnector = unchecked((int)0x8005e226); // -2147098074 public const int InaccessibleSmtpServer = unchecked((int)0x8005e227); // -2147098073 public const int InactiveEmailServerProfile = unchecked((int)0x8005e228); // -2147098072 public const int CannotUseUserCredentials = unchecked((int)0x8005e229); // -2147098071 public const int CannotActivateMailboxForDisabledUserOrQueue = unchecked((int)0x8005e230); // -2147098064 public const int ZeroEmailReceived = unchecked((int)0x8005e231); // -2147098063 public const int NoTestEmailAccessPrivilege = unchecked((int)0x8005e232); // -2147098062 public const int MailboxCannotDeleteEmails = unchecked((int)0x8005e233); // -2147098061 public const int EmailServerProfileSslRequiredForOnPremise = unchecked((int)0x8005e234); // -2147098060 public const int EmailServerProfileDelegateAccessNotAllowed = unchecked((int)0x8005e235); // -2147098059 public const int EmailServerProfileImpersonationNotAllowed = unchecked((int)0x8005e236); // -2147098058 public const int EmailMessageSizeExceeded = unchecked((int)0x8005e237); // -2147098057 public const int OutgoingSettingsUpdateNotAllowed = unchecked((int)0x8005e238); // -2147098056 public const int CertificateNotFound = unchecked((int)0x8005e239); // -2147098055 public const int InvalidCertificate = unchecked((int)0x8005e23a); // -2147098054 public const int EmailServerProfileInvalidAuthenticationProtocol = unchecked((int)0x8005e23b); // -2147098053 public const int EmailServerProfileADBasedAuthenticationProtocolNotAllowed = unchecked((int)0x8005e23c); // -2147098052 public const int EmailServerProfileBasicAuthenticationProtocolNotAllowed = unchecked((int)0x8005e23d); // -2147098051 public const int IncomingServerLocationAndSslSetToNo = unchecked((int)0x8005e23e); // -2147098050 public const int OutgoingServerLocationAndSslSetToNo = unchecked((int)0x8005e23f); // -2147098049 public const int IncomingServerLocationAndSslSetToYes = unchecked((int)0x8005e240); // -2147098048 public const int OutgoingServerLocationAndSslSetToYes = unchecked((int)0x8005e241); // -2147098047 public const int UnsupportedEmailServer = unchecked((int)0x8005e242); // -2147098046 public const int S2SAccessTokenCannotBeAcquired = unchecked((int)0x8005e243); // -2147098045 public const int InvalidValueProcessEmailAfter = unchecked((int)0x8005e244); // -2147098044 public const int InvalidS2SAuthentication = unchecked((int)0x8005e245); // -2147098043 public const int RouterIsDisabled = unchecked((int)0x8005e246); // -2147098042 public const int MailboxUnsupportedEmailServerType = unchecked((int)0x8005e247); // -2147098041 public const int TestEmailConfigurationScheduledInProgress = unchecked((int)0x8005e248); // -2147098040 public const int ServiceAccountMailboxesCountIsZero = unchecked((int)0x8005e249); // -2147098039 public const int ServiceAccountMailboxesCountIsGreaterThanOne = unchecked((int)0x8005e24a); // -2147098038 public const int TenantIDIsEmpty = unchecked((int)0x8005e25a); // -2147098022 public const int InvalidTenantIDValue = unchecked((int)0x8005e25b); // -2147098021 public const int TenantIDValueChanged = unchecked((int)0x8005e25c); // -2147098020 public const int SpecifyIncomingServerLocation = unchecked((int)0x8005e24b); // -2147098037 public const int SpecifyOutgoingServerLocation = unchecked((int)0x8005e24c); // -2147098036 public const int UserNameRequiredForImpersonation = unchecked((int)0x8005e24d); // -2147098035 public const int PasswordRequiredForImpersonation = unchecked((int)0x8005e24e); // -2147098034 public const int ServerLocationIsEmpty = unchecked((int)0x8005e250); // -2147098032 public const int SpecifyIncomingUserName = unchecked((int)0x8005e251); // -2147098031 public const int SpecifyOutgoingUserName = unchecked((int)0x8005e252); // -2147098030 public const int SpecifyIncomingPassword = unchecked((int)0x8005e253); // -2147098029 public const int SpecifyOutgoingPassword = unchecked((int)0x8005e254); // -2147098028 public const int ServerLocationAndSSLSetToYes = unchecked((int)0x8005e255); // -2147098027 public const int SpecifyInComingPort = unchecked((int)0x8005e24f); // -2147098033 public const int SpecifyOutgoingPort = unchecked((int)0x8005e256); // -2147098026 public const int TraceMessageConstructionError = unchecked((int)0x8004f900); // -2147157760 public const int TooManyBytesInInputStream = unchecked((int)0x8004f901); // -2147157759 public const int EmailRouterFileTooLargeToProcess = unchecked((int)0x8005f031); // -2147094479 public const int ErrorsInEmailRouterMigrationFiles = unchecked((int)0x8005f032); // -2147094478 public const int InvalidMigrationFileContent = unchecked((int)0x8005f033); // -2147094477 public const int ErrorMigrationProcessExcessOnServer = unchecked((int)0x8005f034); // -2147094476 public const int EntityNotEnabledForThisDevice = unchecked((int)0x8005f200); // -2147094016 public const int MobileClientLanguageNotSupported = unchecked((int)0x8005f201); // -2147094015 public const int MobileClientVersionNotSupported = unchecked((int)0x8005f202); // -2147094014 public const int RoleNotEnabledForTabletApp = unchecked((int)0x8005f203); // -2147094013 public const int NoMinimumRequiredPrivilegesForTabletApp = unchecked((int)0x8005f20f); // -2147094001 public const int FilePickerErrorAttachmentTypeBlocked = unchecked((int)0x8005f204); // -2147094012 public const int FilePickerErrorFileSizeBreached = unchecked((int)0x8005f205); // -2147094011 public const int FilePickerErrorFileSizeCannotBeZero = unchecked((int)0x8005f206); // -2147094010 public const int FilePickerErrorUnableToOpenFile = unchecked((int)0x8005f207); // -2147094009 public const int GetPhotoFromGalleryFailed = unchecked((int)0x8005f208); // -2147094008 public const int SaveDataFileErrorOutOfSpace = unchecked((int)0x8005f209); // -2147094007 public const int OpenDocumentErrorCodeUnableToFindAnActivity = unchecked((int)0x8005f20a); // -2147094006 public const int OpenDocumentErrorCodeUnableToFindTheDataId = unchecked((int)0x8005f20b); // -2147094005 public const int OpenDocumentErrorCodeGeneric = unchecked((int)0x8005f20c); // -2147094004 public const int FilePickerErrorApplicationInSnapView = unchecked((int)0x8005f20d); // -2147094003 public const int MobileClientNotConfiguredForCurrentUser = unchecked((int)0x8005f20e); // -2147094002 public const int DataSourceInitializeFailedErrorCode = unchecked((int)0x8005f210); // -2147094000 public const int DataSourceOfflineErrorCode = unchecked((int)0x8005f211); // -2147093999 public const int PingFailureErrorCode = unchecked((int)0x8005f212); // -2147093998 public const int RetrieveRecordOfflineErrorCode = unchecked((int)0x8005f213); // -2147093997 public const int CantSaveRecordInOffline = unchecked((int)0x8005f214); // -2147093996 public const int NotMobileEnabled = unchecked((int)0x8005f215); // -2147093995 public const int InvalidPreviewModeOperation = unchecked((int)0x8005f219); // -2147093991 public const int PageNotFound = unchecked((int)0x8005f21a); // -2147093990 public const int ViewNotAvailableForMobileOffline = unchecked((int)0x8005f21b); // -2147093989 public const int NotMobileWriteEnabled = unchecked((int)0x8005f21c); // -2147093988 public const int DataStoreKeyNotFoundErrorCode = unchecked((int)0x8005f21d); // -2147093987 public const int RelatedEntityAlreadyExistsInProfile = unchecked((int)0x8005f21e); // -2147093986 public const int RelatedEntityDoesNotExistsInProfile = unchecked((int)0x8005f21f); // -2147093985 public const int RelatedEntityGenericError = unchecked((int)0x8005f220); // -2147093984 public const int RelatioshipAlreadyExists = unchecked((int)0x8005f221); // -2147093983 public const int InvalidDataDownloadFilterBusinessUnit = unchecked((int)0x8005f222); // -2147093982 public const int InvalidDataDownloadFilterOrganization = unchecked((int)0x8005f223); // -2147093981 public const int CantUpdateOnlineRecord = unchecked((int)0x8005f224); // -2147093980 public const int ApplicationMetadataUserValidationUnknownError = unchecked((int)0x8005f225); // -2147093979 public const int ApplicationMetadataPrepareCustomizationsUnknownError = unchecked((int)0x8005f226); // -2147093978 public const int ApplicationMetadataRetrieveUserContextUnknownError = unchecked((int)0x8005f227); // -2147093977 public const int ApplicationMetadataSyncUnknownError = unchecked((int)0x8005f228); // -2147093976 public const int ApplicationMetadataRetrieveUnknownError = unchecked((int)0x8005f229); // -2147093975 public const int ApplicationMetadataGetPreviewMetadataUnknownError = unchecked((int)0x8005f230); // -2147093968 public const int ApplicationMetadataConverterFailed = unchecked((int)0x8005f231); // -2147093967 public const int ApplicationMetadatadaNullData = unchecked((int)0x8005f232); // -2147093966 public const int ApplicationMetadatadaCreateFailed = unchecked((int)0x8005f233); // -2147093965 public const int ApplicationMetadatadaUpdateFailed = unchecked((int)0x8005f234); // -2147093964 public const int ApplicationMetadataPrepareCustomizationsRetrieverError = unchecked((int)0x8005f235); // -2147093963 public const int ApplicationMetadataPrepareCustomizationsTimeout = unchecked((int)0x8005f236); // -2147093962 public const int ApplicationMetadataPrepareCustomizationsAppLock = unchecked((int)0x8005f237); // -2147093961 public const int EntityMetadataSyncFailed = unchecked((int)0x8005f238); // -2147093960 public const int EntityMetadataSyncFailedWithContinue = unchecked((int)0x8005f239); // -2147093959 public const int ApplicationMetadataSyncFailed = unchecked((int)0x8005f240); // -2147093952 public const int ApplicationMetadataFailedWithContinue = unchecked((int)0x8005f241); // -2147093951 public const int ApplicationMetadataSyncTimeout = unchecked((int)0x8005f242); // -2147093950 public const int ApplicationMetadataSyncTimeoutWithContinue = unchecked((int)0x8005f243); // -2147093949 public const int ApplicationMetadataSyncAppLock = unchecked((int)0x8005f244); // -2147093948 public const int ApplicationMetadataSyncAppLockWithContinue = unchecked((int)0x8005f245); // -2147093947 public const int GenericMetadataSyncFailed = unchecked((int)0x8005f246); // -2147093946 public const int GenericMetadataSyncFailedWithContinue = unchecked((int)0x8005f247); // -2147093945 public const int CannotDeleteOnlineRecord = unchecked((int)0x8005f248); // -2147093944 public const int EntitlementInvalidStartEndDate = unchecked((int)0x80060600); // -2147088896 public const int EntitlementInvalidState = unchecked((int)0x80060601); // -2147088895 public const int InvalidChannelOrigin = unchecked((int)0x80060602); // -2147088894 public const int EntitlementChannelInvalidState = unchecked((int)0x80060603); // -2147088893 public const int EntitlementInvalidTerms = unchecked((int)0x80060604); // -2147088892 public const int InvalidEntitlementChannelTerms = unchecked((int)0x80060605); // -2147088891 public const int InvalidEntitlementActivate = unchecked((int)0x80060606); // -2147088890 public const int InvalidEntitlementCancel = unchecked((int)0x80060607); // -2147088889 public const int InvalidEntitlementDeactivate = unchecked((int)0x80060608); // -2147088888 public const int InvalidEntitlementAssociationToCase = unchecked((int)0x80060609); // -2147088887 public const int InvalidEntitlementRenew = unchecked((int)0x80060610); // -2147088880 public const int InvalidEntitlementStateAssociateToCase = unchecked((int)0x80060611); // -2147088879 public const int EntitlementChannelWithoutEntitlementId = unchecked((int)0x80060612); // -2147088878 public const int EntitlementEditDraft = unchecked((int)0x80060613); // -2147088877 public const int EntitlementAlreadyInDraftState = unchecked((int)0x80060614); // -2147088876 public const int EntitlementAlreadyInactiveState = unchecked((int)0x80060615); // -2147088875 public const int EntitlementNotActiveInAssociationToCase = unchecked((int)0x80060616); // -2147088874 public const int ExpiredEntitlementActivate = unchecked((int)0x80060617); // -2147088873 public const int InvalidEntitlementExpire = unchecked((int)0x80060618); // -2147088872 public const int InvalidDeleteProcess = unchecked((int)0x80060691); // -2147088751 public const int EntitlementTotalTerms = unchecked((int)0x80060619); // -2147088871 public const int EntitlementTemplateTotalTerms = unchecked((int)0x80060620); // -2147088864 public const int SocialCareDisabledError = unchecked((int)0x80060621); // -2147088863 public const int EntitlementBlankTerms = unchecked((int)0x80060622); // -2147088862 public const int InvalidProduct = unchecked((int)0x80060623); // -2147088861 public const int EntitlementInvalidRemainingTerms = unchecked((int)0x80060624); // -2147088860 public const int NoIncidentMergeHavingSameParent = unchecked((int)0x8003f450); // -2147224496 public const int CancelActiveChildCaseFirst = unchecked((int)0x8003f451); // -2147224495 public const int CloseActiveChildCaseFirst = unchecked((int)0x8003f452); // -2147224494 public const int MultilevelParentChildRelationshipNotAllowed = unchecked((int)0x8003f453); // -2147224493 public const int MaxChildCasesLimitExceeded = unchecked((int)0x8003f454); // -2147224492 public const int ParentCaseNotAllowedAsAChildCase = unchecked((int)0x8003f455); // -2147224491 public const int CannotCloseCase = unchecked((int)0x8004f456); // -2147158954 public const int CannotMergeCase = unchecked((int)0x8004f457); // -2147158953 public const int CaseStateChangeInvalid = unchecked((int)0x8006074); // 134242420 public const int CannotDeleteActiveRule = unchecked((int)0x8004f850); // -2147157936 public const int CannotEditActiveRule = unchecked((int)0x8004f851); // -2147157935 public const int RuleAlreadyInactiveState = unchecked((int)0x8004f852); // -2147157934 public const int RuleAlreadyInDraftState = unchecked((int)0x8004f853); // -2147157933 public const int RuleAlreadyExistsWithSameQueueAndChannel = unchecked((int)0x8004f884); // -2147157884 public const int RoutingRuleActivateDeactivateByNonOwner = unchecked((int)0x8004f885); // -2147157883 public const int ConvertRuleActivateDeactivateByNonOwner = unchecked((int)0x8004f886); // -2147157882 public const int ConvertRuleResponseTemplateValidity = unchecked((int)0x80060730); // -2147088592 public const int ConvertRuleAlreadyActive = unchecked((int)0x80060731); // -2147088591 public const int ConvertRuleAlreadyInDraftState = unchecked((int)0x80060732); // -2147088590 public const int ConvertRulePermissionToPerformAction = unchecked((int)0x80060733); // -2147088589 public const int CannotDeleteQueueWithQueueItems = unchecked((int)0x80631117); // -2140991209 public const int CannotDeleteQueueWithRouteRules = unchecked((int)0x80731118); // -2139942632 public const int CannotRoutePrivateQueueItemNonmember = unchecked((int)0x80631121); // -2140991199 public const int CannotRouteToNonQueueMember = unchecked((int)0x80731119); // -2139942631 public const int StateTransitionActiveToResolve = unchecked((int)0x8004f854); // -2147157932 public const int StateTransitionActiveToCanceled = unchecked((int)0x8004f855); // -2147157931 public const int StateTransitionResolvedOrCanceledToActive = unchecked((int)0x8004f856); // -2147157930 public const int StateTransitionActivateNewStatus = unchecked((int)0x8004f857); // -2147157929 public const int StateTransitionDeactivateNewStatus = unchecked((int)0x8004f858); // -2147157928 public const int CannotDeleteRelatedSla = unchecked((int)0x8004f859); // -2147157927 public const int CannotEditActiveSla = unchecked((int)0x8004f860); // -2147157920 public const int SlaAlreadyInactiveState = unchecked((int)0x8004f861); // -2147157919 public const int SlaAlreadyInDraftState = unchecked((int)0x8004f862); // -2147157918 public const int CannotChangeState = unchecked((int)0x8004f863); // -2147157917 public const int ImportRoutingRuleError = unchecked((int)0x8004f867); // -2147157913 public const int ImportSlaError = unchecked((int)0x8004f868); // -2147157912 public const int ImportConvertRuleError = unchecked((int)0x8004f869); // -2147157911 public const int CannotDeleteActiveSla = unchecked((int)0x8004f870); // -2147157904 public const int ActiveSlaCannotEdit = unchecked((int)0x8004f871); // -2147157903 public const int MaxActiveSLAError = unchecked((int)0x8004f897); // -2147157865 public const int MaxActiveSLAKPIError = unchecked((int)0x8004f898); // -2147157864 public const int BundleCannotContainBundle = unchecked((int)0x8004f972); // -2147157646 public const int ProductOrBundleCannotBeAsParent = unchecked((int)0x8004f973); // -2147157645 public const int CannotAssociateRetiredProducts = unchecked((int)0x8004f974); // -2147157644 public const int CannotUpdateDraftProducts = unchecked((int)0x8004f975); // -2147157643 public const int CannotAddProductToBundle = unchecked((int)0x8004f976); // -2147157642 public const int ProductFromRetiredToActiveState = unchecked((int)0x8004f977); // -2147157641 public const int ProductFromDraftToRetiredState = unchecked((int)0x8004f978); // -2147157640 public const int ProductFromRetiredToDraftState = unchecked((int)0x8004f979); // -2147157639 public const int ProductFromRetiredToRetiredState = unchecked((int)0x8004f980); // -2147157632 public const int ProductFromDraftToDraftState = unchecked((int)0x8004f981); // -2147157631 public const int ProductFromActiveToActiveState = unchecked((int)0x8004f982); // -2147157630 public const int SaveRecordBeforeAddingBundle = unchecked((int)0x8004f983); // -2147157629 public const int RecordCanOnlyBeRevisedFromActiveState = unchecked((int)0x8004f883); // -2147157885 public const int CannotAddDraftFamilyProductBundleToCases = unchecked((int)0x8004f984); // -2147157628 public const int CannotCloneBundleAsProductLimitExceeded = unchecked((int)0x8004f985); // -2147157627 public const int CannotChangeSelectedBundleToAnotherValue = unchecked((int)0x8004f986); // -2147157626 public const int CannotChangeSelectedProductWithBundle = unchecked((int)0x8004f987); // -2147157625 public const int InvalidRelationshipTypeForUpSell = unchecked((int)0x8004f988); // -2147157624 public const int InvalidRelationshipTypeForAccessory = unchecked((int)0x8004f989); // -2147157623 public const int ProductNoSubstitutedProductNumber = unchecked((int)0x8004f990); // -2147157616 public const int DuplicateProductRelationship = unchecked((int)0x8004f891); // -2147157871 public const int BundleCannotContainProductFamily = unchecked((int)0x8004f992); // -2147157614 public const int RetiredProductToBundle = unchecked((int)0x8004f993); // -2147157613 public const int DraftBundleToProduct = unchecked((int)0x8004f994); // -2147157612 public const int ProductCanOnlyBeUpdatedInDraft = unchecked((int)0x8004f995); // -2147157611 public const int InconsistentProductRelationshipState = unchecked((int)0x8004f996); // -2147157610 public const int CannotRetireProductFromActiveBundle = unchecked((int)0x8004f997); // -2147157609 public const int CannotSetProductAsParent = unchecked((int)0x8004f998); // -2147157608 public const int CannotAssociateProductFamily = unchecked((int)0x8004f999); // -2147157607 public const int CannotAddPricelistToProductFamily = unchecked((int)0x8004f902); // -2147157758 public const int SdkMessagesDeprecatedError = unchecked((int)0x8004f903); // -2147157757 public const int CanOnlySetActiveOrDraftProductFamilyAsParent = unchecked((int)0x8004f906); // -2147157754 public const int CannotPublishBundleWithProductStateDraftOrRetire = unchecked((int)0x8004f907); // -2147157753 public const int CannotPublishKitWithProductStateDraftOrRetire = unchecked((int)0x8004f916); // -2147157738 public const int CannotAddProduct = unchecked((int)0x8004f908); // -2147157752 public const int CannotPublishChildOfNonActiveProductFamily = unchecked((int)0x8004f909); // -2147157751 public const int ProductHasUnretiredChild = unchecked((int)0x8004f910); // -2147157744 public const int ProductFromActiveToDraftState = unchecked((int)0x8004f912); // -2147157742 public const int ProductFromDraftToRevisedState = unchecked((int)0x8004f913); // -2147157741 public const int CannotOverridePropertyFromDifferentHierarchy = unchecked((int)0x8004f914); // -2147157740 public const int CannotRetireProduct = unchecked((int)0x8004f915); // -2147157739 public const int InvalidStateForPublish = unchecked((int)0x8004f90a); // -2147157750 public const int HiddenPropertyValidationFailed = unchecked((int)0x80061000); // -2147086336 public const int ActivePropertyValidationFailed = unchecked((int)0x80061001); // -2147086335 public const int ReadOnlyCreateValidationFailed = unchecked((int)0x80061002); // -2147086334 public const int ReadOnlyUpdateValidationFailed = unchecked((int)0x80061003); // -2147086333 public const int MinMaxValidationFailed = unchecked((int)0x80061004); // -2147086332 public const int OptionSetValidationFailed = unchecked((int)0x80061005); // -2147086331 public const int ValidationFailedForDynamicProperty = unchecked((int)0x80061021); // -2147086303 public const int ProductCloneFailed = unchecked((int)0x80061006); // -2147086330 public const int CannotAddBundleToPricelist = unchecked((int)0x80061007); // -2147086329 public const int CannotRemoveProductFromPricelist = unchecked((int)0x80061008); // -2147086328 public const int CannotAddRetiredProductToPricelist = unchecked((int)0x80061009); // -2147086327 public const int CannotDeleteProductFromActiveBundle = unchecked((int)0x80061010); // -2147086320 public const int CannotPublishNestedBundle = unchecked((int)0x80061011); // -2147086319 public const int CannotCreateKitOfTypeFamilyOrBundle = unchecked((int)0x80061012); // -2147086318 public const int CannotChangeProductRelationship = unchecked((int)0x80061013); // -2147086317 public const int BundleCannotContainProductKit = unchecked((int)0x80061014); // -2147086316 public const int CannotAddParentToAKit = unchecked((int)0x80061015); // -2147086315 public const int CannotConvertProductAssociatedWithFamilyToKit = unchecked((int)0x80061016); // -2147086314 public const int OnlyProductCanBeConvertedToKit = unchecked((int)0x80061017); // -2147086313 public const int CannotConvertProductAssociatedWithBundleToKit = unchecked((int)0x80061018); // -2147086312 public const int UnsupportedCudOperationForDynamicProperties = unchecked((int)0x80061019); // -2147086311 public const int CannotCloneProductKit = unchecked((int)0x80061020); // -2147086304 public const int CannotAddProductBundleToKit = unchecked((int)0x80061022); // -2147086302 public const int CannotAddProductFamilyToKit = unchecked((int)0x80061023); // -2147086301 public const int CannotAddProductToKit = unchecked((int)0x80061024); // -2147086300 public const int UnsupportedSdkMessageForBundles = unchecked((int)0x80061025); // -2147086299 public const int CannotAddProductToRetiredKit = unchecked((int)0x80061026); // -2147086298 public const int CannotAddRetiredProductToKit = unchecked((int)0x80061027); // -2147086297 public const int CannotConvertProductFamilyToKit = unchecked((int)0x80061029); // -2147086295 public const int CannotConvertBundleToKit = unchecked((int)0x80061030); // -2147086288 public const int CannotAddBundleToItself = unchecked((int)0x80061031); // -2147086287 public const int CannotAddKitToItself = unchecked((int)0x80061032); // -2147086286 public const int CannotAddRetiredProduct = unchecked((int)0x80061033); // -2147086285 public const int CannotCloneBundleWithRetiredProducts = unchecked((int)0x80061034); // -2147086284 public const int CannotSetPublishRetiredProductsToDraft = unchecked((int)0x80061035); // -2147086283 public const int CannotOverwriteProperty = unchecked((int)0x80061036); // -2147086282 public const int MissingRequiredAttributes = unchecked((int)0x80061037); // -2147086281 public const int DynamicPropertyDefaultValueNeeded = unchecked((int)0x80061038); // -2147086280 public const int NonDraftBundleUpdate = unchecked((int)0x80061039); // -2147086279 public const int AssociateProductFailureDifferentUom = unchecked((int)0x80061040); // -2147086272 public const int DynamicPropertyInvalidStateForUpdate = unchecked((int)0x80081000); // -2146955264 public const int DynamicPropertyInvalidStateChange = unchecked((int)0x80081001); // -2146955263 public const int DynamicPropertyInvalidStateForDelete = unchecked((int)0x80081002); // -2146955262 public const int CannotDeleteDynamicPropertyInUse = unchecked((int)0x80081003); // -2146955261 public const int DynamicPropertyInvalidRegardingForUpdate = unchecked((int)0x80081004); // -2146955260 public const int CannotOverrideOwnedDynamicProperty = unchecked((int)0x80081005); // -2146955259 public const int CannotDeleteNotOwnedDynamicProperty = unchecked((int)0x80081006); // -2146955258 public const int ProductFamilyCanCreateDynamicProperty = unchecked((int)0x80081007); // -2146955257 public const int CannotDeleteOverriddenProperty = unchecked((int)0x80081100); // -2146955008 public const int SlaActivateDeactivateByNonOwner = unchecked((int)0x8004f872); // -2147157902 public const int PartialHolidayScheduleCreation = unchecked((int)0x8004f873); // -2147157901 public const int ErrorNoActiveRoutingRuleExists = unchecked((int)0x8004f874); // -2147157900 public const int SlaPermissionToPerformAction = unchecked((int)0x8004f875); // -2147157899 public const int RoutingRulePublishedByOwner = unchecked((int)0x8004f876); // -2147157898 public const int RoutingRuleMissingRuleCriteria = unchecked((int)0x8004f877); // -2147157897 public const int RoutingRulePublishedByNonOwner = unchecked((int)0x8004f878); // -2147157896 public const int ConvertRuleInvalidAutoResponseSettings = unchecked((int)0x8004f879); // -2147157895 public const int CannotDeleteActiveCaseCreationRule = unchecked((int)0x8004f880); // -2147157888 public const int CannotOverrideProperty = unchecked((int)0x8004f887); // -2147157881 public const int ParentHierarchyExistProperty = unchecked((int)0x8004f888); // -2147157880 public const int CreatePropertyError = unchecked((int)0x8004f889); // -2147157879 public const int CreatePropertyInstanceError = unchecked((int)0x8004f890); // -2147157872 public const int CannotDeleteDynamicPropertyInRetiredState = unchecked((int)0x8004f892); // -2147157870 public const int CannotDeleteActiveRecordCreationRuleItem = unchecked((int)0x8004f894); // -2147157868 public const int ConvertRuleQueueIdMissingForEmailSource = unchecked((int)0x8004f896); // -2147157866 public const int SPFileNotCheckedOutErrorCode = unchecked((int)0x80060700); // -2147088640 public const int SPUnauthorizedAccessErrorCode = unchecked((int)0x80060701); // -2147088639 public const int SPFileAlreadyCheckedOutErrorCode = unchecked((int)0x80060702); // -2147088638 public const int SPFileCheckedOutInvalidArgsErrorCode = unchecked((int)0x80060703); // -2147088637 public const int SPSharedLockOnFileErrorCode = unchecked((int)0x80060704); // -2147088636 public const int SPExclusiveLockOnFileErrorCode = unchecked((int)0x80060705); // -2147088635 public const int SPFileNotFoundErrorCode = unchecked((int)0x80060706); // -2147088634 public const int SPFileNotLockedErrorCode = unchecked((int)0x80060707); // -2147088633 public const int SPDuplicateValuesFoundErrorCode = unchecked((int)0x80060708); // -2147088632 public const int SPFileTooLargeOrInfectedErrorCode = unchecked((int)0x80060709); // -2147088631 public const int SPBadLockInFileCollectionErrorCode = unchecked((int)0x8006070a); // -2147088630 public const int SPInvalidLookupValuesErrorCode = unchecked((int)0x8006070b); // -2147088629 public const int SPNullFileUrlErrorCode = unchecked((int)0x8006070c); // -2147088628 public const int SPFileContentNullErrorCode = unchecked((int)0x8006070d); // -2147088627 public const int SPFileSizeMismatchErrorCode = unchecked((int)0x8006070e); // -2147088626 public const int SPFileIsReadOnlyErrorCode = unchecked((int)0x8006070f); // -2147088625 public const int SPModifiedOnServerErrorCode = unchecked((int)0x80060710); // -2147088624 public const int SPDataValidationFiledOnFieldErrorCode = unchecked((int)0x80060711); // -2147088623 public const int SPDataValidationFiledOnListErrorCode = unchecked((int)0x80060712); // -2147088622 public const int SPDataValidationFiledOnFieldAndListErrorCode = unchecked((int)0x80060713); // -2147088621 public const int SPThrottlingLimitExceededErrorCode = unchecked((int)0x80060714); // -2147088620 public const int SPOperationNotSupportedErrorCode = unchecked((int)0x80060715); // -2147088619 public const int SPInstanceOfRecurringEventErrorCode = unchecked((int)0x80060716); // -2147088618 public const int SPItemNotExistErrorCode = unchecked((int)0x80060717); // -2147088617 public const int SPInvalidSavedQueryErrorCode = unchecked((int)0x80060718); // -2147088616 public const int SPGenericErrorCode = unchecked((int)0x80060719); // -2147088615 public const int SPSiteNotFoundErrorCode = unchecked((int)0x8006071a); // -2147088614 public const int SPFolderNotFoundErrorCode = unchecked((int)0x8006071b); // -2147088613 public const int SPNoActiveDocumentLocationErrorCode = unchecked((int)0x8006071c); // -2147088612 public const int SPIllegalFileTypeErrorCode = unchecked((int)0x8006071d); // -2147088611 public const int SPInvalidFieldValueErrorCode = unchecked((int)0x8006071e); // -2147088610 public const int SPIllegalCharactersInFileNameErrorCode = unchecked((int)0x8006071f); // -2147088609 public const int SPCurrentDocumentLocationDisabledErrorCode = unchecked((int)0x80060720); // -2147088608 public const int SPCurrentFolderAlreadyExistErrorCode = unchecked((int)0x80060721); // -2147088607 public const int SPNullRegardingObjectErrorCode = unchecked((int)0x80060723); // -2147088605 public const int SPOperatorNotSupportedErrorCode = unchecked((int)0x80060724); // -2147088604 public const int SPRequiredColCheckInErrorCode = unchecked((int)0x80060725); // -2147088603 public const int SPFileIsCheckedOutByOtherUser = unchecked((int)0x80060728); // -2147088600 public const int SPFileNameModifiedErrorCode = unchecked((int)0x80060729); // -2147088599 public const int SPAccountNameFetchFailure = unchecked((int)0x8006072a); // -2147088598 public const int SPPersonalSiteNotFound = unchecked((int)0x8006072b); // -2147088597 public const int SPFolderRenameFailure = unchecked((int)0x8006072c); // -2147088596 public const int SPMultipleOdbSitesError = unchecked((int)0x8006072d); // -2147088595 public const int SPOdbDisabledError = unchecked((int)0x8006072e); // -2147088594 public const int SPOdbUpdateDeleteError = unchecked((int)0x8006072f); // -2147088593 public const int SPDocumentMappingFailure = unchecked((int)0x80060734); // -2147088588 public const int SPOdbDuplicateLocationError = unchecked((int)0x80060735); // -2147088587 public const int SPOdbUpdateDeleteLocationError = unchecked((int)0x80060736); // -2147088586 public const int SPSearchOneDriveNotCreated = unchecked((int)0x80060737); // -2147088585 public const int SPSiteProtocolError = unchecked((int)0x80060738); // -2147088584 public const int SPDefaultSiteNotPresent = unchecked((int)0x80060739); // -2147088583 public const int SPUploadFailure = unchecked((int)0x80060740); // -2147088576 public const int SPAllFilesErrorScenario = unchecked((int)0x80060760); // -2147088544 public const int RequiredBundleProductCannotBeDeleted = unchecked((int)0x80081008); // -2146955256 public const int RequiredBundleItemCannotBeUpdated = unchecked((int)0x80081009); // -2146955255 public const int DynamicPropertyInstanceMissingRequiredColumns = unchecked((int)0x8008100a); // -2146955254 public const int DynamicPropertyInstanceUpdateValuesDifferentRegarding = unchecked((int)0x8008100b); // -2146955253 public const int DynamicPropertyOptionSetInvalidStateForUpdate = unchecked((int)0x8008100c); // -2146955252 public const int ProductMaxPropertyLimitExceeded = unchecked((int)0x8008100d); // -2146955251 public const int BundleMaxPropertyLimitExceeded = unchecked((int)0x8008100e); // -2146955250 public const int HierarchicalOperationFailed = unchecked((int)0x8008100f); // -2146955249 public const int ConflictForOverriddenPropertiesEncountered = unchecked((int)0x80081010); // -2146955248 public const int ProductFamilyRootParentisLocked = unchecked((int)0x8008101f); // -2146955233 public const int CannotAssociateRetiredBundles = unchecked((int)0x80081011); // -2146955247 public const int MissingQuantity = unchecked((int)0x80081012); // -2146955246 public const int CannotCreatePropertyOptionSetItem = unchecked((int)0x80081013); // -2146955245 public const int CannotDeleteInheritedDynamicProperty = unchecked((int)0x80081014); // -2146955244 public const int CannotDeletePropertyOverriddenByBundleItem = unchecked((int)0x80081015); // -2146955243 public const int CannotDeleteProductStatusCode = unchecked((int)0x80081016); // -2146955242 public const int CannotActivateRecord = unchecked((int)0x80081017); // -2146955241 public const int CannotQualifyLead = unchecked((int)0x80081018); // -2146955240 public const int ImportHierarchyRuleDeletedError = unchecked((int)0x8004f9a1); // -2147157599 public const int ImportHierarchyRuleExistingError = unchecked((int)0x8004f9a2); // -2147157598 public const int ImportHierarchyRuleOtcMismatchError = unchecked((int)0x8004f9a3); // -2147157597 public const int HonorPauseWithoutSLAKPIError = unchecked((int)0x80045000); // -2147201024 public const int CannotSetCaseOnHold = unchecked((int)0x80055000); // -2147135488 public const int ApplyActiveSLAOnly = unchecked((int)0x80055001); // -2147135487 public const int NoPrivilegeToApplyManualSLA = unchecked((int)0x80055002); // -2147135486 public const int SlaNotEnabledEntity = unchecked((int)0x80055003); // -2147135485 public const int CannotSetEntityOnHold = unchecked((int)0x80055004); // -2147135484 public const int CannotCreateSLAForEntity = unchecked((int)0x80055005); // -2147135483 public const int SyncAttributeMappingCannotBeUpdated = unchecked((int)0x80060741); // -2147088575 public const int InvalidSyncDirectionValueForUpdate = unchecked((int)0x80060742); // -2147088574 public const int InvalidLanguageForCreate = unchecked((int)0x80060750); // -2147088560 public const int InvalidLanguageForUpdate = unchecked((int)0x80060751); // -2147088559 public const int GenericImportTranslationsError = unchecked((int)0x80060752); // -2147088558 public const int CannotSetEntitlementTermsDecrementBehavior = unchecked((int)0x80060851); // -2147088303 public const int CannotUpdateEntitlement = unchecked((int)0x80060852); // -2147088302 public const int CannotCreateCase = unchecked((int)0x80060853); // -2147088301 public const int KBInvalidCreateAssociation = unchecked((int)0x80060861); // -2147088287 public const int InvalidNumberOfTabsInDialog = unchecked((int)0x80060871); // -2147088271 public const int InvalidNumberOfSectionsInTab = unchecked((int)0x80060872); // -2147088270 public const int DialogNameCannotBeNull = unchecked((int)0x80060873); // -2147088269 public const int InvalidFormTypeCalledThroughSdk = unchecked((int)0x80060874); // -2147088268 public const int InvalidFormatForControl = unchecked((int)0x80060875); // -2147088267 public const int InvalidOptionSetIdForControl = unchecked((int)0x80060876); // -2147088266 public const int InvalidRelationshipNameForControl = unchecked((int)0x80060877); // -2147088265 public const int InvalidTargetEntityTypeForControl = unchecked((int)0x80060878); // -2147088264 public const int InvalidMaxLengthForControl = unchecked((int)0x80060879); // -2147088263 public const int InvalidMinValueForControl = unchecked((int)0x8006087a); // -2147088262 public const int InvalidMaxValueForControl = unchecked((int)0x8006087b); // -2147088261 public const int InvalidMinAndMaxValueForControl = unchecked((int)0x8006087c); // -2147088260 public const int InvalidPrecisionForControl = unchecked((int)0x8006087d); // -2147088259 public const int ReadIntentIncompatible = unchecked((int)0x80060881); // -2147088255 public const int ConcurrencyVersionMismatch = unchecked((int)0x80060882); // -2147088254 public const int ConcurrencyVersionNotProvided = unchecked((int)0x80060883); // -2147088253 public const int CrmHttpError = unchecked((int)0x8006088a); // -2147088246 public const int IncompatibleStepsEncountered = unchecked((int)0x8006088b); // -2147088245 public const int MailboxTrackingFolderMappingCannotBeUpdated = unchecked((int)0x8006088c); // -2147088244 public const int OptimisticConcurrencyNotEnabled = unchecked((int)0x8006088d); // -2147088243 public const int InvalidCollectionName = unchecked((int)0x8006088e); // -2147088242 public const int InvalidEntityKeyOperation = unchecked((int)0x8006088f); // -2147088241 public const int EntityKeyNotDefined = unchecked((int)0x80060890); // -2147088240 public const int RecordNotFoundByEntityKey = unchecked((int)0x80060891); // -2147088239 public const int DuplicateRecordEntityKey = unchecked((int)0x80060892); // -2147088238 public const int EntityKeyNameExists = unchecked((int)0x80060893); // -2147088237 public const int EntityKeyWithSelectedAttributesExists = unchecked((int)0x80060894); // -2147088236 public const int IndexSizeConstraintViolated = unchecked((int)0x80060895); // -2147088235 public const int CannotSecureEntityKeyAttribute = unchecked((int)0x80060896); // -2147088234 public const int ReactivateEntityKeyOnlyForFailedJobs = unchecked((int)0x80060897); // -2147088233 public const int RefRoleNavPaneDisplayOptionRequired = unchecked((int)0x80060898); // -2147088232 public const int InvalidRoleTypeForOneToManyRelationship = unchecked((int)0x80060899); // -2147088231 public const int InvalidRoleOccurrencesForOneToManyRelationship = unchecked((int)0x8006089a); // -2147088230 public const int InvalidEntitySetName = unchecked((int)0x8006089b); // -2147088229 public const int IncorrectEntitySetName = unchecked((int)0x8006089c); // -2147088228 public const int WopiDiscoveryFailed = unchecked((int)0x80060800); // -2147088384 public const int WopiApplicationUrl = unchecked((int)0x80060802); // -2147088382 public const int WopiMaxFileSizeExceeded = unchecked((int)0x80060803); // -2147088381 public const int ExportToExcelOnlineFeatureNotEnabled = unchecked((int)0x80060804); // -2147088380 public const int ExcelFileNotFound = unchecked((int)0x80060805); // -2147088379 public const int InvalidUserToViewExcelOnlineFile = unchecked((int)0x80060806); // -2147088378 public const int InvalidUserToImportExcelOnlineFile = unchecked((int)0x80060807); // -2147088377 public const int SharePointCertificateExpired = unchecked((int)0x800608b1); // -2147088207 public const int SharePointRealmMismatch = unchecked((int)0x800608b2); // -2147088206 public const int SharePointAuthenticationFailure = unchecked((int)0x800608b3); // -2147088205 public const int SharePointAuthorizationFailure = unchecked((int)0x800608b4); // -2147088204 public const int SharePointConnectionFailure = unchecked((int)0x800608b5); // -2147088203 public const int SharePointVersionUnsupported = unchecked((int)0x800608b6); // -2147088202 public const int CannotDeleteOneNoteTableOfContent = unchecked((int)0x800608b7); // -2147088201 public const int InvalidHexColorValue = unchecked((int)0x800608d0); // -2147088176 public const int ThemeIdOrUpdateTimestampIsNull = unchecked((int)0x800608d1); // -2147088175 public const int LogoImageNodeDoesNotExist = unchecked((int)0x800608d2); // -2147088174 public const int InvalidLogoImageId = unchecked((int)0x800608d3); // -2147088173 public const int InvalidThemeId = unchecked((int)0x800608d4); // -2147088172 public const int CannotCreateSystemOrDefaultTheme = unchecked((int)0x800608d5); // -2147088171 public const int CannotUpdateSystemTheme = unchecked((int)0x800608d6); // -2147088170 public const int InvalidThemeDeleteOperation = unchecked((int)0x800608d7); // -2147088169 public const int CannotUpdateDefaultField = unchecked((int)0x800608d8); // -2147088168 public const int InvalidLogoImageWebResourceType = unchecked((int)0x800608d9); // -2147088167 public const int CannotDeleteSystemTheme = unchecked((int)0x800608da); // -2147088166 public const int InvalidBehaviorSelection = unchecked((int)0x800608a0); // -2147088224 public const int InvalidBehavior = unchecked((int)0x800608a1); // -2147088223 public const int InvalidDateTimeFormat = unchecked((int)0x800608a2); // -2147088222 public const int SkipValidDateTimeBehavior = unchecked((int)0x800608a3); // -2147088221 public const int ValidDateTimeBehaviorWarning = unchecked((int)0x800608a4); // -2147088220 public const int ValidDateTimeBehaviorExportAsWarning = unchecked((int)0x800608a5); // -2147088219 public const int ExportToXlsxFeatureNotEnabled = unchecked((int)0x800608c1); // -2147088191 public const int XlsxImportInvalidExcelDocument = unchecked((int)0x800608c2); // -2147088190 public const int XlsxImportInvalidFileData = unchecked((int)0x800608c3); // -2147088189 public const int XlsxImportHiddenColumnAbsent = unchecked((int)0x800608c4); // -2147088188 public const int XlsxImportInvalidColumnCount = unchecked((int)0x800608c5); // -2147088187 public const int XlsxImportColumnHeadersInvalid = unchecked((int)0x800608c6); // -2147088186 public const int XlsxExportGeneratingExcelFailed = unchecked((int)0x800608c7); // -2147088185 public const int XlsxImportExcelFailed = unchecked((int)0x800608c8); // -2147088184 public const int DocumentTemplateFeatureNotEnabled = unchecked((int)0x800608c9); // -2147088183 public const int WordTemplateFeatureNotEnabled = unchecked((int)0x800608db); // -2147088165 public const int MobileExcelFeatureNotEnabled = unchecked((int)0x800608ca); // -2147088182 public const int InvalidDocumentTemplate = unchecked((int)0x800608cb); // -2147088181 public const int InvalidFileType = unchecked((int)0x800608cc); // -2147088180 public const int DocxExportGeneratingWordFailed = unchecked((int)0x800608cd); // -2147088179 public const int DocxValidationFailed = unchecked((int)0x800608ce); // -2147088178 public const int LegacyXlsxFileNotSupported = unchecked((int)0x800608cf); // -2147088177 public const int InvalidWordFileType = unchecked((int)0x800608ee); // -2147088146 public const int InvalidWordDocumentTemplate = unchecked((int)0x800608ef); // -2147088145 public const int InvalidWordTemplateContent = unchecked((int)0x800608fb); // -2147088133 public const int DataTableNotAvailable = unchecked((int)0x800609b0); // -2147087952 public const int InvalidEntitySpecified = unchecked((int)0x800609b1); // -2147087951 public const int InvalidTemplateContent = unchecked((int)0x800609b2); // -2147087950 public const int InvalidViewReference = unchecked((int)0x800609b3); // -2147087949 public const int FileTypeNotSupported = unchecked((int)0x800609b4); // -2147087948 public const int DatasheetNotAvailable = unchecked((int)0x800609b5); // -2147087947 public const int HiddensheetNotAvailable = unchecked((int)0x800609b6); // -2147087946 public const int CorruptedHiddensheetData = unchecked((int)0x800609b7); // -2147087945 public const int EditQueryInDynamicExcelNotSupported = unchecked((int)0x800609b8); // -2147087944 public const int NoActiveLocation = unchecked((int)0x80060900); // -2147088128 public const int FolderDoesNotExist = unchecked((int)0x80060901); // -2147088127 public const int OneNoteCreationFailed = unchecked((int)0x80060902); // -2147088126 public const int OneNoteRenderFailed = unchecked((int)0x80060903); // -2147088125 public const int AccessDeniedSharePointRecord = unchecked((int)0x80060904); // -2147088124 public const int CouldNotSetLocationTypeToOneNote = unchecked((int)0x80060905); // -2147088123 public const int OneNoteLocationNotCreated = unchecked((int)0x80060906); // -2147088122 public const int OneNoteLocationDeactivated = unchecked((int)0x80060907); // -2147088121 public const int DocumentManagementDisabledOnEntity = unchecked((int)0x80060908); // -2147088120 public const int QuickCreateInvalidEntityName = unchecked((int)0x80060910); // -2147088112 public const int QuickCreateDisabledOnEntity = unchecked((int)0x80060911); // -2147088111 public const int OperationCanceled = unchecked((int)0x80060912); // -2147088110 public const int SavePending = unchecked((int)0x80060913); // -2147088109 public const int SchedulingFailedForInvalidData = unchecked((int)0x80060914); // -2147088108 public const int SchedulingFailedForBookingValidation = unchecked((int)0x80060915); // -2147088107 public const int InvalidSourceTypeCode = unchecked((int)0x800608ea); // -2147088150 public const int CannotDeleteChannelProperty = unchecked((int)0x800608eb); // -2147088149 public const int ChannelPropertyGroupAlreadyExistsWithSameSourceType = unchecked((int)0x800608ec); // -2147088148 public const int CannotClearChannelPropertyGroupFromConvertRule = unchecked((int)0x800608ed); // -2147088147 public const int DuplicateChannelPropertyName = unchecked((int)0x800608f1); // -2147088143 public const int ChannelPropertyNameInvalid = unchecked((int)0x800608f2); // -2147088142 public const int ImportChannelPropertyGroupError = unchecked((int)0x800608f3); // -2147088141 public const int CannotChangeConvertRuleState = unchecked((int)0x800608f4); // -2147088140 public const int NoConversionRule = unchecked((int)0x800608f5); // -2147088139 public const int InvalidConversionRule = unchecked((int)0x800608f6); // -2147088138 public const int InvalidTimeZoneCode = unchecked((int)0x800608f7); // -2147088137 public const int UserDoesNotHavePrivilegesToRunTheTool = unchecked((int)0x800608f8); // -2147088136 public const int NoTimeZoneCodeForConversionRule = unchecked((int)0x800608f9); // -2147088135 public const int NoEntitySpecified = unchecked((int)0x800608fa); // -2147088134 public const int InvalidOtherDataFilterOptions = unchecked((int)0x8006098d); // -2147087987 public const int RelatedEntityDoesNotExistInProfileItem = unchecked((int)0x8006098e); // -2147087986 public const int DownloadAllEntityRecordsChangedOrCreatedWithinTheseDays = unchecked((int)0x8006098f); // -2147087985 public const int MobileOfflineDaysSinceRecordLastModifiedZero = unchecked((int)0x80060990); // -2147087984 public const int IncreasingDaysWillResetMobileOfflineData = unchecked((int)0x80060991); // -2147087983 public const int DecreasingDaysWillDeleteOlderData = unchecked((int)0x80060992); // -2147087982 public const int InvalidDataFiltersForUnownedEntities = unchecked((int)0x80060993); // -2147087981 public const int InvalidDataFiltersForBUOwnedEntities = unchecked((int)0x80060994); // -2147087980 public const int InvalidDataFiltersForOrgOwnedEntities = unchecked((int)0x80060995); // -2147087979 public const int InvalidCustomDataDownloadFilters = unchecked((int)0x80060996); // -2147087978 public const int MOPIAssociationNameCannotBeEmptyOrSpace = unchecked((int)0x80060997); // -2147087977 public const int NoDefinedRelationshipsForMOPIAssociation = unchecked((int)0x80060998); // -2147087976 public const int InvalidRelationshipInMOPIAssociation = unchecked((int)0x80060999); // -2147087975 public const int CannotDeleteDefaultProfile = unchecked((int)0x8006099a); // -2147087974 public const int CannotAssociateInvalidEntityToProfileItem = unchecked((int)0x8006099b); // -2147087973 public const int CanAssociateOnlyMobileOfflineEnableEntityToProfileItem = unchecked((int)0x8006099c); // -2147087972 public const int CanAssociateOnlyOneEntityPerProfileItem = unchecked((int)0x8006099d); // -2147087971 public const int CanAssociateOnlyMobileOfflineEnabledEntityToProfileItem = unchecked((int)0x8006099e); // -2147087970 public const int ImportMobileOfflineProfileError = unchecked((int)0x8006099f); // -2147087969 public const int SavedQueryValidationError = unchecked((int)0x800609a0); // -2147087968 public const int ChangeTrackingDisabledForMobileOfflineError = unchecked((int)0x800609a1); // -2147087967 public const int EnableMobileOfflineDisableChangeTrackingError = unchecked((int)0x800609a2); // -2147087966 public const int CannotDeleteUserProfile = unchecked((int)0x800609a3); // -2147087965 public const int CannotChangeDaysSinceRecordLastModified = unchecked((int)0x800609a4); // -2147087964 public const int CannotDisableMobileOfflineFlagForEntity = unchecked((int)0x800609a5); // -2147087963 public const int CannotAddUserToMobileOfflineProfile = unchecked((int)0x800609a6); // -2147087962 public const int MobileOfflineProfileNameAlreadyExists = unchecked((int)0x800609a7); // -2147087961 public const int MobileOfflineProfileItemNameAlreadyExists = unchecked((int)0x800609a8); // -2147087960 public const int MobileOfflineProfileNameCanNotBeNullOrEmpty = unchecked((int)0x800609a9); // -2147087959 public const int MobileOfflineProfileItemNameCanNotBeNullOrEmpty = unchecked((int)0x800609aa); // -2147087958 public const int CannotAddIntersectEntityToMobileOfflineProfileItem = unchecked((int)0x800609ab); // -2147087957 public const int CannotAddBusinessDataLocalizedLabelEntityToMobileOfflineProfileItem = unchecked((int)0x800609ac); // -2147087956 public const int CannotAddActivityPartyEntityToMobileOfflineProfileItem = unchecked((int)0x800609ad); // -2147087955 public const int InvalidAssociatedSavedQuery = unchecked((int)0x800609ae); // -2147087954 public const int CannotDisableMobileOfflineFlagForImportEntity = unchecked((int)0x80071111); // -2147020527 public const int CloneTitleTooLong = unchecked((int)0x80071112); // -2147020526 public const int InvalidMobileOfflineFiltersFetchXml = unchecked((int)0x80071113); // -2147020525 public const int MaxConditionsMobileOfflineFilters = unchecked((int)0x80071114); // -2147020524 public const int UnsupportedAttributeOrOperatorMobileOfflineFilters = unchecked((int)0x80071115); // -2147020523 public const int MaxprofileItemFilterConditionsAllowed = unchecked((int)0x80071116); // -2147020522 public const int MobileOfflineRuleEnhancementFeatureNotAvailaible = unchecked((int)0x80071117); // -2147020521 public const int EmptyEntityFilterXml = unchecked((int)0x80071118); // -2147020520 public const int QueryFilterConditionAttributeNotPresentInExpressionEntity = unchecked((int)0x80071119); // -2147020519 public const int LinkedEntitiesAreNotAllowed = unchecked((int)0x80071120); // -2147020512 public const int UnsupportedOperatorForAttributeInProfileItemEntityFilters = unchecked((int)0x80071121); // -2147020511 public const int InvalidOrEmptyRelationshipId = unchecked((int)0x80071122); // -2147020510 public const int UnsupportedAttributeInInProfileItemEntityFilters = unchecked((int)0x80071123); // -2147020509 public const int EntitiesInViewNotInProfile = unchecked((int)0x80071124); // -2147020508 public const int EntitiesInViewNotAvailableOffline = unchecked((int)0x80071125); // -2147020507 public const int ViewNotAvailableOnMobile = unchecked((int)0x80071126); // -2147020506 public const int OperatorsInViewNotSupportedOffline = unchecked((int)0x80071127); // -2147020505 public const int ViewNotSupportedInCalendarModeOffline = unchecked((int)0x80071128); // -2147020504 public const int CannotDefineMultipleValuesOnOwnerFieldInProfileItemEntityFilter = unchecked((int)0x80071129); // -2147020503 public const int ViewConditionTypeNotSupportedOffline = unchecked((int)0x80071130); // -2147020496 public const int OfficeGroupsFeatureNotEnabled = unchecked((int)0x800610ea); // -2147086102 public const int OfficeGroupsExceptionRetrieveSetting = unchecked((int)0x800610eb); // -2147086101 public const int OfficeGroupsInvalidSettingType = unchecked((int)0x800610ec); // -2147086100 public const int OfficeGroupsNotSupportedCall = unchecked((int)0x800610ed); // -2147086099 public const int OfficeGroupsNoAuthServersFound = unchecked((int)0x800610ee); // -2147086098 public const int ProfileRuleMissingRuleCriteria = unchecked((int)0x80061100); // -2147086080 public const int ProfileRuleWorkflowAuthorGenericError = unchecked((int)0x80061101); // -2147086079 public const int ProfileRuleActivateDeactivateByNonOwner = unchecked((int)0x80061102); // -2147086078 public const int ProfileRulePublishedByOwner = unchecked((int)0x80061103); // -2147086077 public const int CannotDeleteGuestProfile = unchecked((int)0x80061104); // -2147086076 public const int CannotDeactivateGuestProfile = unchecked((int)0x80061105); // -2147086075 public const int CannotDeleteProfileWithProfileRules = unchecked((int)0x80061106); // -2147086074 public const int CannotDeleteProfileWithExternalPartyItem = unchecked((int)0x80061107); // -2147086073 public const int CannotDeleteChannelAccessProfileRule = unchecked((int)0x80061108); // -2147086072 public const int InsufficientRetrievePrivilege = unchecked((int)0x80061109); // -2147086071 public const int InsufficientCreatePrivilege = unchecked((int)0x8006110a); // -2147086070 public const int InsufficientUpdatePrivilege = unchecked((int)0x8006110b); // -2147086069 public const int OwnerAttributeMissing = unchecked((int)0x8006110c); // -2147086068 public const int InvalidOrganizationSettings = unchecked((int)0x8006110d); // -2147086067 public const int InvalidRequestParameters = unchecked((int)0x8006110e); // -2147086066 public const int InvalidExternalPartyConfiguration = unchecked((int)0x8006110f); // -2147086065 public const int InvalidExternalPartyParent = unchecked((int)0x80061110); // -2147086064 public const int InvalidExternalPartyOperation = unchecked((int)0x80061111); // -2147086063 public const int CannotCreateExternalPartyWithSameCorrelationKey = unchecked((int)0x80061112); // -2147086062 public const int FeatureNotEnabled = unchecked((int)0x80061113); // -2147086061 public const int CannotUpdateExternalPartyWithSameCorrelationKey = unchecked((int)0x80061114); // -2147086060 public const int ChannelAccessProfileRuleAlreadyInDraftState = unchecked((int)0x80061115); // -2147086059 public const int CannotActOnBehalfOfExternalParty = unchecked((int)0x80061116); // -2147086058 public const int CannotAssociateExternalPartyItem = unchecked((int)0x80061117); // -2147086057 public const int DuplicatePrivilegeInRolecontrol = unchecked((int)0x80061118); // -2147086056 public const int ErrorsInProfileRuleWorkflowActivation = unchecked((int)0x80061119); // -2147086055 public const int CantSetIsGuestProfile = unchecked((int)0x8006111a); // -2147086054 public const int EntityIsNotEnabledForExternalParty = unchecked((int)0x8006111b); // -2147086053 public const int MailApp_UnsupportedDevice = unchecked((int)0x80061200); // -2147085824 public const int MailApp_UnsupportedBrowser = unchecked((int)0x80061201); // -2147085823 public const int MailApp_MailboxNotConfiguredWithServerSideSync = unchecked((int)0x80061202); // -2147085822 public const int MailApp_ReadWriteAccessRequired = unchecked((int)0x80061203); // -2147085821 public const int MailApp_FeatureControlBitDisabled = unchecked((int)0x80061204); // -2147085820 public const int MailApp_PermissionToUseCrmForOfficeAppsRequired = unchecked((int)0x80061205); // -2147085819 public const int MailApp_TrackingIsNotSupported = unchecked((int)0x80061207); // -2147085817 public const int MailApp_MobileBrowserIsNotSupported = unchecked((int)0x80061208); // -2147085816 public const int MailApp_DifferentSecurityZoneError = unchecked((int)0x80061210); // -2147085808 public const int MailApp_EmailAddressMismatch = unchecked((int)0x80061211); // -2147085807 public const int MailApp_UserMailboxInactive = unchecked((int)0x80061216); // -2147085802 public const int MailApp_MailboxNotConfiguredWithServerSideSyncForACT = unchecked((int)0x80061217); // -2147085801 public const int MailApp_AppointmentFeatureNotEnabled = unchecked((int)0x80061218); // -2147085800 public const int MailApp_PermissionsToReadContactRequired = unchecked((int)0x80061219); // -2147085799 public const int UnsupportedImportComponent = unchecked((int)0x80061302); // -2147085566 public const int InvalidLocaleIdForKnowledgeArticle = unchecked((int)0x80061400); // -2147085312 public const int PublishArticle_TranslationWithMoreThanOneApprovedVersion = unchecked((int)0x80061401); // -2147085311 public const int TranslateArticle_OnlyPrimaryArticlesCanBeTranslated = unchecked((int)0x80061402); // -2147085310 public const int TranslateArticle_TranslationCanNotBeCreatedForTheSameLanguage = unchecked((int)0x80061403); // -2147085309 public const int ColorStripAttributesExceeded = unchecked((int)0x80061500); // -2147085056 public const int AttributesExceeded = unchecked((int)0x80061501); // -2147085055 public const int ColorStripAttributesInvalid = unchecked((int)0x80061502); // -2147085054 public const int InvalidClassIdInReferencePanelSection = unchecked((int)0x80061503); // -2147085053 public const int InvalidNumberOfReferencePanelSections = unchecked((int)0x80061504); // -2147085052 public const int InvalidNumberOfCardFormSections = unchecked((int)0x80061505); // -2147085051 public const int EmptyCommandOrEntity = unchecked((int)0x80154b51); // -2146088111 public const int CommandNotSupported = unchecked((int)0x80154b52); // -2146088110 public const int OperationFailedTryAgain = unchecked((int)0x80154b53); // -2146088109 public const int NoUserPrivilege = unchecked((int)0x80154b50); // -2146088112 public const int XamlNotFound = unchecked((int)0x80154b4f); // -2146088113 public const int CustomControlsImportError = unchecked((int)0x80160000); // -2146041856 public const int ManifestXsdValidationError = unchecked((int)0x80160001); // -2146041855 public const int CustomControlsDependentPropertyConfiguration = unchecked((int)0x80160002); // -2146041854 public const int CustomControlsPropertySetConfiguration = unchecked((int)0x80160003); // -2146041853 public const int ProductRecommendationsFeatureNotEnabled = unchecked((int)0x80061600); // -2147084800 public const int RecommendationModelActiveVersionNotSet = unchecked((int)0x80061601); // -2147084799 public const int RecommendationModelActiveVersionInvalidStatus = unchecked((int)0x80061602); // -2147084798 public const int AzureRecommendationModelNotExist = unchecked((int)0x80061603); // -2147084797 public const int AzureRecommendationModelBuildNotExist = unchecked((int)0x80061604); // -2147084796 public const int RecommendationsUnavailable = unchecked((int)0x80061605); // -2147084795 public const int RecommendationModelBuildConnectionMustBeActive = unchecked((int)0x80061606); // -2147084794 public const int RecommendationModelActivateConnectionMustBeActive = unchecked((int)0x80061607); // -2147084793 public const int RecommendationModelExpired = unchecked((int)0x80061608); // -2147084792 public const int RecommendationModelMappingDuplicateRecord = unchecked((int)0x80061610); // -2147084784 public const int RecommendationModelMappingReadOnly = unchecked((int)0x80061611); // -2147084783 public const int CannotDeleteDueToBasketEntityAssociation = unchecked((int)0x80061612); // -2147084782 public const int RecommendationModelVersionActive = unchecked((int)0x80061620); // -2147084768 public const int RecommendationModelVersionBuildInProgress = unchecked((int)0x80061621); // -2147084767 public const int RecommendationModelVersionDuplicateName = unchecked((int)0x80061622); // -2147084766 public const int AzureServiceConnectionInvalidUri = unchecked((int)0x80061630); // -2147084752 public const int RecommendationAzureConnectionFailed = unchecked((int)0x80061631); // -2147084751 public const int TextAnalyticsAzureTestConnectionFailed = unchecked((int)0x80061632); // -2147084750 public const int RecommendationAzureConnectionCascadeActivateFailed = unchecked((int)0x80061633); // -2147084749 public const int TextAnalyticsAzureConnectionCascadeActivateFailed = unchecked((int)0x80061634); // -2147084748 public const int AzureOperationResponseTimedOut = unchecked((int)0x80061635); // -2147084747 public const int AzureServiceConnectionCascadeDeleteFailed = unchecked((int)0x80061636); // -2147084746 public const int TextAnalyticsAzureConnectionFailed = unchecked((int)0x80061650); // -2147084720 public const int TopicModelScheduleBuildSettingsEmpty = unchecked((int)0x80061651); // -2147084719 public const int TextAnalyticsFeatureNotEnabled = unchecked((int)0x80061652); // -2147084718 public const int TopicModelConfigurationUsedEmpty = unchecked((int)0x80061653); // -2147084717 public const int TopicModelTestWithoutConfiguration = unchecked((int)0x80061654); // -2147084716 public const int TextAnalyticsAzureUnableToConnectWithBuild = unchecked((int)0x80061655); // -2147084715 public const int TopicModelActivateWithInvalidConfiguration = unchecked((int)0x80061656); // -2147084714 public const int TextAnalyticsModelActivateConnectionMustBeActive = unchecked((int)0x80061657); // -2147084713 public const int TextAnalyticsMappingUsedForActiveConfiguration = unchecked((int)0x80061667); // -2147084697 public const int TopicModelConfigurationAssociatedModelAlreadyActive = unchecked((int)0x80061670); // -2147084688 public const int KnowledgeSearchActiveModelsAlreadyExist = unchecked((int)0x80061680); // -2147084672 public const int TextAnalyticsAPIActiveConfigurationDoesNotExist = unchecked((int)0x80061690); // -2147084656 public const int TextAnalyticsAPIAllowedOnlyForEnglishLanguage = unchecked((int)0x80061691); // -2147084655 public const int TextAnalyticsAPIAzureUnableToConnectWithBuild = unchecked((int)0x80061692); // -2147084654 public const int TextAnalyticsAzureSchedulerError = unchecked((int)0x80061693); // -2147084653 public const int TextAnalyticsMaxLimitForTopicModelReached = unchecked((int)0x80061694); // -2147084652 public const int TextAnalyticsAPIActiveSimilarityConfigurationDoesNotExist = unchecked((int)0x80061695); // -2147084651 public const int AdvancedSimilarityAzureSearchUnexpectedError = unchecked((int)0x80061696); // -2147084650 public const int TaskFlowNameIsNotUnique = unchecked((int)0x80061710); // -2147084528 public const int TaskFlowInvalidCharactersInName = unchecked((int)0x80061711); // -2147084527 public const int TaskFlowEmptyName = unchecked((int)0x80061712); // -2147084526 public const int TaskFlowFormXmlNotFound = unchecked((int)0x80061713); // -2147084525 public const int TaskFlowPageMissingFormXmlTab = unchecked((int)0x80061714); // -2147084524 public const int TaskFlowUnsupportedEntities = unchecked((int)0x80061715); // -2147084523 public const int TaskFlowEntityRelationshipIsNotValid = unchecked((int)0x80061716); // -2147084522 public const int TaskFlowEntityAttributeIsNotValid = unchecked((int)0x80061717); // -2147084521 public const int TaskFlowMaxNumberPages = unchecked((int)0x80061718); // -2147084520 public const int TaskFlowMaxNumberControls = unchecked((int)0x80061719); // -2147084519 public const int TaskFlowNotFound = unchecked((int)0x80061720); // -2147084512 public const int TaskFlowNotValid = unchecked((int)0x8006172f); // -2147084497 public const int FeedbackFeatureNotEnabled = unchecked((int)0x80061770); // -2147084432 public const int FeedbackMinMaxRequired = unchecked((int)0x80061772); // -2147084430 public const int FeedbackRatingValue = unchecked((int)0x80061773); // -2147084429 public const int FeedbackMinRatingValue = unchecked((int)0x80061774); // -2147084428 public const int DelveActionHubDisabledError = unchecked((int)0x80071000); // -2147020800 public const int ErrorGeneratingActionHub = unchecked((int)0x80071001); // -2147020799 public const int DelveActionHubAttributeMissingInResponseException = unchecked((int)0x80071002); // -2147020798 public const int DelveActionHubInvalidStateCodeException = unchecked((int)0x80071003); // -2147020797 public const int DelveActionHubInvalidResponseFormatException = unchecked((int)0x80071004); // -2147020796 public const int DelveActionHubResponseRetievalFailureException = unchecked((int)0x80071005); // -2147020795 public const int EvoStsAuthorizationServerRecordCreationFailureException = unchecked((int)0x80071006); // -2147020794 public const int DelveActionHubAuthorizationFailureException = unchecked((int)0x80071007); // -2147020793 public const int DelveActionHubS2SSetupFailureException = unchecked((int)0x80071008); // -2147020792 public const int ActionCardDisabledError = unchecked((int)0x80071100); // -2147020544 public const int ExchangeCardAttributeMissingInResponseException = unchecked((int)0x80071102); // -2147020542 public const int ActionCardInvalidStateCodeException = unchecked((int)0x80071103); // -2147020541 public const int ExchangeCardInvalidResponseFormatException = unchecked((int)0x80071104); // -2147020540 public const int ExchangeCardS2SSetupFailureException = unchecked((int)0x80071105); // -2147020539 public const int DocumentManagementIsDisabledOnEntity = unchecked((int)0x80071011); // -2147020783 public const int RegardingObjectValuesRetrievalFailure = unchecked((int)0x80071012); // -2147020782 public const int RelatedRecordsFailure = unchecked((int)0x80071013); // -2147020781 public const int SharePointSiteNotConfigured = unchecked((int)0x80071014); // -2147020780 public const int RecommendedDocumentsRetrievalFailure = unchecked((int)0x80071015); // -2147020779 public const int SimilarityRuleDisabled = unchecked((int)0x80071016); // -2147020778 public const int SharePointS2SIsDisabled = unchecked((int)0x80071017); // -2147020777 public const int SimilarityRuleFCBOff = unchecked((int)0x80071018); // -2147020776 public const int DocumentRecommendationsFCBOff = unchecked((int)0x80071019); // -2147020775 public const int MaxProductsAllowed = unchecked((int)0x80071020); // -2147020768 public const int NoFilesSelected = unchecked((int)0x80071021); // -2147020767 public const int DestinationFolderNotExists = unchecked((int)0x80071022); // -2147020766 public const int NoWritePermission = unchecked((int)0x80071023); // -2147020765 public const int ConnectionTimeOut = unchecked((int)0x80071024); // -2147020764 public const int SelectedFileNotFound = unchecked((int)0x80071025); // -2147020763 public const int FileSizeExceeded = unchecked((int)0x80071026); // -2147020762 public const int CopyGenericError = unchecked((int)0x80071027); // -2147020761 public const int RecommendedDocumentsRetrievalFailureWhenSPSiteNotConfigured = unchecked((int)0x80071028); // -2147020760 public const int PluginSecureStoreKeyVaultClient = unchecked((int)0x80091000); // -2146889728 public const int PluginSecureStoreKeyVaultClientGetSecret = unchecked((int)0x80091001); // -2146889727 public const int PluginSecureStoreKeyVaultClientSetSecret = unchecked((int)0x80091002); // -2146889726 public const int PluginSecureStoreKeyVaultClientDecrypt = unchecked((int)0x80091003); // -2146889725 public const int PluginSecureStoreKeyVaultClientEncrypt = unchecked((int)0x80091004); // -2146889724 public const int PluginSecureStoreAdalAcquireToken = unchecked((int)0x80091005); // -2146889723 public const int PluginSecureStoreTPSKeyVaultUnconfigured = unchecked((int)0x80091006); // -2146889722 public const int PluginSecureStoreTPSAssemblyNotRegistered = unchecked((int)0x80091007); // -2146889721 public const int PluginSecureStoreS2SMissing = unchecked((int)0x80091008); // -2146889720 public const int PluginSecureStoreTPSClient = unchecked((int)0x80091009); // -2146889719 public const int PluginSecureStoreLocalConfigStoreGetData = unchecked((int)0x8009100a); // -2146889718 public const int PluginSecureStoreLocalConfigStoreSetData = unchecked((int)0x8009100b); // -2146889717 public const int PluginSecureStoreKeyVaultServiceProviderGetData = unchecked((int)0x8009100c); // -2146889716 public const int PluginSecureStoreKeyVaultServiceCertFormat = unchecked((int)0x8009100d); // -2146889715 public const int PluginSecureStoreNoFullySigned = unchecked((int)0x8009100f); // -2146889713 public const int InvalidProcessIdOperation = unchecked((int)0x80092001); // -2146885631 public const int InvalidChangeProcess = unchecked((int)0x80092002); // -2146885630 public const int InvalidStageTransition = unchecked((int)0x80092003); // -2146885629 public const int InvalidCrossEntityOperation = unchecked((int)0x80092004); // -2146885628 public const int InvalidCrossEntityTargetOperation = unchecked((int)0x80092005); // -2146885627 public const int CrossEntityRelationshipInvalidOperation = unchecked((int)0x80092006); // -2146885626 public const int InvalidTraversedPath = unchecked((int)0x80092007); // -2146885625 public const int AutoDataCaptureDisabledError = unchecked((int)0x80091041); // -2146889663 public const int AutoDataCaptureAuthorizationFailureException = unchecked((int)0x80091042); // -2146889662 public const int AutoDataCaptureResponseRetrievalFailureException = unchecked((int)0x80091043); // -2146889661 public const int ProvisioningNotCompleted = unchecked((int)0x80091044); // -2146889660 public const int PowerBICannotBeSystemDashboard = unchecked((int)0x800608fc); // -2147088132 public const int PowerBIDashboardControlLimitation = unchecked((int)0x800608fd); // -2147088131 public const int CannotUpdateEmailStatisticForEmailNotSent = unchecked((int)0x80050001); // -2147155967 public const int CannotUpdateEmailStatisticForEmailNotFollowed = unchecked((int)0x80050002); // -2147155966 public const int EmailEngagementFeatureDisabled = unchecked((int)0x80050003); // -2147155965 public const int OneDriveForBusinessDisabled = unchecked((int)0x80050004); // -2147155964 public const int InvalidActivityMimeAttachmentId = unchecked((int)0x80050005); // -2147155963 public const int AttachmentNotRelatedToEmail = unchecked((int)0x80050006); // -2147155962 public const int EmailDoesNotExist = unchecked((int)0x80050007); // -2147155961 public const int EmailNotFollowed = unchecked((int)0x80050008); // -2147155960 public const int OneDriveForBusinessLocationNotFound = unchecked((int)0x80050009); // -2147155959 public const int DocumentManagementDisabledForEmail = unchecked((int)0x80050010); // -2147155952 public const int EmailMonitoringNotProvisioned = unchecked((int)0x80050011); // -2147155951 public const int EmailMonitoringProvisionFailed = unchecked((int)0x80050012); // -2147155950 public const int ErrorInFetchingEmailEngagementProvisioningStatus = unchecked((int)0x80050013); // -2147155949 public const int EmailMonitoringDeProvisionFailed = unchecked((int)0x80050014); // -2147155948 public const int EmailEngagementFeatureDisabledForAttachmentTracking = unchecked((int)0x80050015); // -2147155947 public const int SiteMapMissing = unchecked((int)0x80050016); // -2147155946 public const int CannotUpdateTemplateIdForEmailInNonDraftState = unchecked((int)0x80050017); // -2147155945 public const int CannotUpdateEmailStatisticWhenEEFeatureNotEnabled = unchecked((int)0x80050018); // -2147155944 public const int InvalidTemplateId = unchecked((int)0x80050019); // -2147155943 public const int CannotUpdateDelaySendTimeForEmailWhenEmailIsNotInProperState = unchecked((int)0x80050020); // -2147155936 public const int CannotUpdateDelaySendTimeWhenEEFeatureNotEnabled = unchecked((int)0x80050021); // -2147155935 public const int EmailInteractionsFetchFailure = unchecked((int)0x80050022); // -2147155934 public const int EmailReminderActionCardCreationFailure = unchecked((int)0x80050023); // -2147155933 public const int EmailOpenActionCardCreationFailure = unchecked((int)0x80050024); // -2147155932 public const int EESiteDBFetchFailure = unchecked((int)0x80050025); // -2147155931 public const int DesignerAccessDenied = unchecked((int)0x80050100); // -2147155712 public const int DesignerInvalidParameter = unchecked((int)0x80050101); // -2147155711 public const int ErrorTemplate = unchecked((int)0x80050102); // -2147155710 public const int InvalidAppModuleSiteMap = unchecked((int)0x80050110); // -2147155696 public const int InvalidMultipleSiteMapReferenceSingleAppModule = unchecked((int)0x80050111); // -2147155695 public const int InvalidAppModuleComponentType = unchecked((int)0x80050112); // -2147155694 public const int InvalidAppModuleComponent = unchecked((int)0x80050113); // -2147155693 public const int CannotPublishAppModule = unchecked((int)0x80050114); // -2147155692 public const int AppModuleComponentEntityMustHaveFormOrView = unchecked((int)0x80050115); // -2147155691 public const int InvalidAppModuleId = unchecked((int)0x80050116); // -2147155690 public const int AppModuleFeatureNotEnabled = unchecked((int)0x80050117); // -2147155689 public const int AppModuleNotContainMOCAEnabledEntity = unchecked((int)0x80050118); // -2147155688 public const int CannotUpdateAppModuleUniqueName = unchecked((int)0x80050119); // -2147155687 public const int InvalidAppModuleUrl = unchecked((int)0x8005011a); // -2147155686 public const int NoAppModuleComponentReferred = unchecked((int)0x8005011b); // -2147155685 public const int NoSiteMapReferenceInAppModule = unchecked((int)0x8005011c); // -2147155684 public const int AppModuleNotReferEntity = unchecked((int)0x8005011d); // -2147155683 public const int InvalidAppModuleUniqueName = unchecked((int)0x8005011e); // -2147155682 public const int DuplicateAppModuleUniqueName = unchecked((int)0x8005011f); // -2147155681 public const int MultipleSitemapsFound = unchecked((int)0x80050120); // -2147155680 public const int RefferedSolutionIsDifferent = unchecked((int)0x80050122); // -2147155678 public const int AppModulesImportError = unchecked((int)0x80050123); // -2147155677 public const int InvalidAppModuleClientType = unchecked((int)0x80050126); // -2147155674 public const int AppModuleWithClientExists = unchecked((int)0x80050127); // -2147155673 public const int CannotUpdateAppModuleClientType = unchecked((int)0x80050128); // -2147155672 public const int CannotDeleteAppModuleClientType = unchecked((int)0x80050129); // -2147155671 public const int AppModuleMustHaveOnlyValidClientEntity = unchecked((int)0x8005012a); // -2147155670 public const int InvalidWebresourceId = unchecked((int)0x8005012b); // -2147155669 public const int InvalidWelcomePageId = unchecked((int)0x8005012c); // -2147155668 public const int InvalidWebresourceType = unchecked((int)0x8005012d); // -2147155667 public const int InvalidWelcomePageType = unchecked((int)0x8005012e); // -2147155666 public const int DiskSpaceNotEnough = unchecked((int)0x80050124); // -2147155676 public const int ImportFileFailed = unchecked((int)0x80050125); // -2147155675 public const int WebhooksNonSuccessHttpResponse = unchecked((int)0x80050201); // -2147155455 public const int WebhooksHttpRequestTimedOut = unchecked((int)0x80050202); // -2147155454 public const int WebhooksInvalidHttpHeaders = unchecked((int)0x80050203); // -2147155453 public const int WebhooksInvalidHttpQueryParams = unchecked((int)0x80050204); // -2147155452 public const int WebhooksPostRequestFailed = unchecked((int)0x80050205); // -2147155451 public const int WebhooksPostDisabled = unchecked((int)0x80050206); // -2147155450 public const int WebhooksMaxSizeExceeded = unchecked((int)0x80050207); // -2147155449 public const int ServiceBusMaxSizeExceeded = unchecked((int)0x80050208); // -2147155448 public const int AttributeTypeNotSupportedForCalculatedField = unchecked((int)0x80050221); // -2147155423 public const int TooManySelectionsForAttributeType = unchecked((int)0x80050222); // -2147155422 public const int TooManyMultiSelectConditionParametersInQuery = unchecked((int)0x80050223); // -2147155421 public const int AttributeTypeNotSupportedForGroupByOrderByQuery = unchecked((int)0x80050224); // -2147155420 public const int AzureWebAppPluginsDisabled = unchecked((int)0x80050241); // -2147155391 public const int TriggerFlowFailure = unchecked((int)0x80050261); // -2147155359 public const int FlowMissingRecord = unchecked((int)0x80050262); // -2147155358 public const int VirtualEntityFailure = unchecked((int)0x80050263); // -2147155357 public const int InvalidAttributeDataType = unchecked((int)0x80044815); // -2147203051 public const int InvalidAttributeFieldType = unchecked((int)0x80044816); // -2147203050 public const int FieldLevelSecurityNotSupported = unchecked((int)0x80044817); // -2147203049 public const int ExternalNameExists = unchecked((int)0x80046f8f); // -2147192945 public const int InvalidExternalName = unchecked((int)0x80046bc0); // -2147193920 public const int InvalidExternalCollectionName = unchecked((int)0x80046ba7); // -2147193945 public const int EmptySecretInDataSource = unchecked((int)0x80044818); // -2147203048 public const int SdkMessageNotImplemented = unchecked((int)0x80044824); // -2147203036 public const int InvalidQueryForVirtualEntity = unchecked((int)0x80044822); // -2147203038 public const int ManyToManyVirtualEntityNotSupported = unchecked((int)0x80044820); // -2147203040 public const int AppConfigFeatureNotEnabled = unchecked((int)0x80072200); // -2147016192 public const int InvalidDataSourceEndPoint = unchecked((int)0x80044826); // -2147203034 public const int InvalidRequestParameter = unchecked((int)0x80044828); // -2147203032 public const int ExchangeOptinNotEnabled = unchecked((int)0x80071106); // -2147020538 public const int MarsConnectorEnableFailure = unchecked((int)0x80071107); // -2147020537 public const int MarsConnectorDisableFailure = unchecked((int)0x80071108); // -2147020536 public const int GetTenantIdFailure = unchecked((int)0x80071109); // -2147020535 public const int CannotAccessExchangeOptinStatus = unchecked((int)0x80071110); // -2147020528 } }
110.890713
496
0.803288
[ "MIT" ]
Bhaskers-Blu-Org2/Dynamics365-Apps-Samples
samples-from-msdn/Attributes/SDK Helper Code/ErrorCodes.cs
729,937
C#
using System.Net; using Skybrud.Essentials.Http; using Skybrud.Social.Toggl.Exceptions; namespace Skybrud.Social.Toggl.Responses { /// <summary> /// Class representing a response from the Toggl API. /// </summary> public class TogglResponse : HttpResponseBase { /// <summary> /// Initializes a new instance based on the specified <paramref name="response"/>. /// </summary> /// <param name="response">The instance of <see cref="IHttpResponse"/> representing the raw response.</param> public TogglResponse(IHttpResponse response) : base(response) { if (response.StatusCode == HttpStatusCode.OK) return; if (response.StatusCode == HttpStatusCode.Created) return; throw new TogglHttpException(response); } } /// <summary> /// Class representing a response from the Toggl API. /// </summary> public class TogglResponse<T> : TogglResponse { /// <summary> /// Gets the body of the response. /// </summary> public T Body { get; protected set; } /// <summary> /// Initializes a new instance based on the specified <paramref name="response"/>. /// </summary> /// <param name="response">The instance of <see cref="IHttpResponse"/> representing the raw response.</param> public TogglResponse(IHttpResponse response) : base(response) { } } }
34.166667
117
0.628571
[ "MIT" ]
abjerner/Skybrud.Social.Toggl
src/Skybrud.Social.Toggl/Responses/TogglResponse.cs
1,437
C#
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. #nullable disable using System.IO; namespace Microsoft.CodeAnalysis.Shared.Utilities { internal abstract class TextReaderWithLength : TextReader { public TextReaderWithLength(int length) => Length = length; public int Length { get; } } }
25.578947
71
0.709877
[ "MIT" ]
333fred/roslyn
src/Workspaces/SharedUtilitiesAndExtensions/Workspace/Core/Utilities/TextReaderWithLength.cs
488
C#
/** * Copyright (c) 2019 LG Electronics, Inc. * * This software contains code licensed as described in LICENSE. * */ using System; using System.Text; using System.Collections.Generic; using System.IO; using System.Linq; using UnityEngine; using Simulator.Map; using Unity.Mathematics; using Utility = Simulator.Utilities.Utility; namespace Simulator.Editor { using apollo.hdmap; public class ApolloMapImporter { EditorSettings Settings; bool IsMeshNeeded; // Boolean value for traffic light/sign mesh importing. static float DownSampleDistanceThreshold; // DownSample distance threshold for points to keep static float DownSampleDeltaThreshold; // For down sampling, delta threshold for curve points bool ShowDebugIntersectionArea = false; // Show debug area for intersection area to find left_turn lanes float SignalHeight = 7; // Height for imported signals. GameObject TrafficLanes; GameObject SingleLaneRoads; GameObject Intersections; MapOrigin MapOrigin; Map ApolloMap; Dictionary<string, MapIntersection> Id2MapIntersection = new Dictionary<string, MapIntersection>(); Dictionary<string, MapLane> Id2Lane = new Dictionary<string, MapLane>(); Dictionary<string, MapLine> Id2LeftLineBoundary = new Dictionary<string, MapLine>(); Dictionary<string, MapLine> Id2RightLineBoundary = new Dictionary<string, MapLine>(); Dictionary<string, MapLine> Id2StopLine = new Dictionary<string, MapLine>(); Dictionary<string, string> LaneId2JunctionId = new Dictionary<string, string>(); Dictionary<string, GameObject> LaneId2MapLaneSection = new Dictionary<string, GameObject>(); // map lane section id is same as road id Dictionary<string, Tuple<string, double>> SignalSignId2LaneIdStartS = new Dictionary<string, Tuple<string, double>>(); public ApolloMapImporter(float downSampleDistanceThreshold, float downSampleDeltaThreshold, bool isMeshNeeded) { DownSampleDistanceThreshold = downSampleDistanceThreshold; DownSampleDeltaThreshold = downSampleDeltaThreshold; IsMeshNeeded = isMeshNeeded; } public void Import(string filePath) { Settings = EditorSettings.Load(); if (ImportApolloMapCalculate(filePath)) { Debug.Log("Successfully imported Apollo HD Map!\nPlease check your imported intersections and adjust if they are wrongly grouped."); Debug.Log("Currently yield signs are imported as stop signs for NPCs."); Debug.LogWarning("!!! You need to adjust the triggerBounds for each MapIntersection."); } else { Debug.LogError("Failed to import Apollo HD Map."); } } bool ImportApolloMapCalculate(string filePath) { using (var fs = File.OpenRead(filePath)) { ApolloMap = ProtoBuf.Serializer.Deserialize<Map>(fs); } var mapName = "Map" + "_" + Encoding.UTF8.GetString(ApolloMap.header.vendor) + "_" + Encoding.UTF8.GetString(ApolloMap.header.district); if (!CreateMapHolders(filePath, mapName)) return false; MapOrigin = MapOrigin.Find(); // get or create a map origin if (!CreateOrUpdateMapOrigin(ApolloMap, MapOrigin)) { Debug.LogWarning("Could not find latitude or/and longitude in map header Or not supported projection, mapOrigin is not updated."); } ImportJunctions(); ImportLanes(); ImportRoads(); ConnectLanes(); ImportOverlaps(); ImportStopSigns(); ImportSignals(); SetIntersectionTriggerBounds(); ImportYields(); UpdateStopLines(); // Update stoplines using intersecting lanes end points // SetLaneYieldLanes(); // ImportCrossWalks(); // ImportParkingSpaces(); // ImportSpeedBumps(); // ImportClearAreas(); return true; } bool CreateMapHolders(string filePath, string mapName) { // Create Map object var fileName = Path.GetFileName(filePath).Split('.')[0]; // Check existence of same name map if (GameObject.Find(mapName)) { Debug.LogError("A map with same name exists, cancelling map importing."); return false; } GameObject map = new GameObject(mapName); var mapHolder = map.AddComponent<MapHolder>(); // Create TrafficLanes and Intersections under Map TrafficLanes = new GameObject("TrafficLanes"); Intersections = new GameObject("Intersections"); SingleLaneRoads = new GameObject("SingleLaneRoads"); TrafficLanes.transform.parent = map.transform; Intersections.transform.parent = map.transform; SingleLaneRoads.transform.parent = TrafficLanes.transform; mapHolder.trafficLanesHolder = TrafficLanes.transform; mapHolder.intersectionsHolder = Intersections.transform; return true; } // read map origin, update MapOrigin bool CreateOrUpdateMapOrigin(Map apolloMap, MapOrigin mapOrigin) { var header = apolloMap.header; var geoReference = header.projection.proj; var items = geoReference.Split('+') .Select(s => s.Split('=')) .Where(s => s.Length > 1) .ToDictionary(element => element[0].Trim(), element => element[1].Trim()); if (!items.ContainsKey("proj") || items["proj"] != "utm") return false; double latitude, longitude; longitude = (header.left + header.right) / 2; latitude = (header.top + header.bottom) / 2; int zoneNumber; if (items.ContainsKey("zone")) { zoneNumber = int.Parse(items["zone"]); } else { zoneNumber = MapOrigin.GetZoneNumberFromLatLon(latitude, longitude); } mapOrigin.UTMZoneId = zoneNumber; mapOrigin.FromLatitudeLongitude(latitude, longitude, out mapOrigin.OriginNorthing, out mapOrigin.OriginEasting); return true; } void ImportJunctions() { foreach (var junction in ApolloMap.junction) { var id = junction.id.id.ToString(); var mapIntersection = CreateMapIntersection(id); var mapJunction = new GameObject("MapJunction_" + id); mapJunction.transform.parent = mapIntersection.transform; var mapJunctionComponent = mapJunction.AddComponent<MapJunction>(); mapJunctionComponent.mapWorldPositions = ConvertUTMFromDouble3(junction.polygon.point.Select(x => ToDouble3(x)).ToList()); UpdateObjPosAndLocalPos(mapIntersection.transform, mapJunctionComponent); } Debug.Log($"Imported {ApolloMap.junction.Count} junctions."); } MapIntersection CreateMapIntersection(string id) { var mapIntersectionObj = new GameObject("MapIntersection_" + id); var mapIntersection = mapIntersectionObj.AddComponent<MapIntersection>(); mapIntersection.transform.parent = Intersections.transform; Id2MapIntersection[id] = mapIntersection; return mapIntersection; } public List<Vector3> ConvertUTMFromDouble3(List<double3> double3List) { var vector3List = new List<Vector3>(); foreach (var point in double3List) { var vector3 = MapOrigin.FromNorthingEasting(point.y, point.x, false); vector3.y = (float)point.z; vector3List.Add(vector3); } return vector3List; } void UpdateObjPosAndLocalPos(Transform objectTransform, MapDataPoints mapDataPoints) { var ObjPosition = Lanelet2MapImporter.GetAverage(mapDataPoints.mapWorldPositions); objectTransform.position = ObjPosition; // Update child local positions after parent position changed UpdateLocalPositions(mapDataPoints); } void ImportLanes() { foreach (var lane in ApolloMap.lane) { var id = lane.id.id.ToString(); AddLine(id, lane.left_boundary, true); AddLine(id, lane.right_boundary); AddLane(id, lane); } Debug.Log($"Imported {ApolloMap.lane.Count} lanes, left boundary lines and right boundary lines."); } void AddLine(string id, LaneBoundary boundary, bool isLeft = false) { var curveSegments = boundary.curve.segment; var linePoints = GetPointsFromCurve(curveSegments); var linePointsDouble3 = DownSample(linePoints, DownSampleDeltaThreshold, DownSampleDistanceThreshold); string lineId; if (isLeft) lineId = "MapLine_Left_" + id; else lineId = "MapLine_Right_" + id; GameObject mapLineObj = new GameObject(lineId); mapLineObj.transform.parent = TrafficLanes.transform; MapLine mapLine = mapLineObj.AddComponent<MapLine>(); mapLine.mapWorldPositions = ConvertUTMFromDouble3(linePointsDouble3); UpdateObjPosAndLocalPos(mapLineObj.transform, mapLine); if (boundary.@virtual) mapLine.lineType = MapData.LineType.VIRTUAL; else if (boundary.boundary_type.Count > 0 && boundary.boundary_type[0].types.Count > 0) mapLine.lineType = BoundaryTypeToLineType(boundary.boundary_type[0].types[0]); else mapLine.lineType = MapData.LineType.UNKNOWN; var warning = "Multiple boundary types for one lane boundary is not" + "supported yet, currently only the 1st type is used."; if (boundary.boundary_type.Count > 1) Debug.LogWarning(warning); if (isLeft) Id2LeftLineBoundary[id] = mapLine; else Id2RightLineBoundary[id] = mapLine; } public static List<double3> DownSample(List<double3> points, float downSampleDeltaThreshold, float downSampleDistanceThreshold) { if (points.Count < 4) return points; var sampledPoints = new List<double3>(); sampledPoints.Capacity = points.Count; sampledPoints.Add(points[0]); Debug.Assert(points.Count > 1); double3 currentDir = math.normalize(points[1] - points[0]); double3 lastPoint = points[0]; for (int i = 2; i < points.Count - 1; i++) { // Check delta, distance from points[i] to current dir double delta; if (sampledPoints.Count == 1) { delta = GetDistancePointToLine(lastPoint, currentDir, points[i]); if (delta > downSampleDeltaThreshold) { sampledPoints.Add(points[1]); sampledPoints.Add(points[i]); currentDir = math.normalize(points[i] - points[1]); lastPoint = points[i]; continue; } } else { delta = GetDistancePointToLine(lastPoint, currentDir, points[i]); if (delta > downSampleDeltaThreshold) { sampledPoints.Add(points[i]); currentDir = math.normalize(points[i] - lastPoint); lastPoint = points[i]; continue; } } // Check distance if (math.distancesq(points[i], sampledPoints.Last()) > downSampleDistanceThreshold * downSampleDistanceThreshold) { sampledPoints.Add(points[i]); currentDir = math.normalize(points[i] - lastPoint); lastPoint = points[i]; } } sampledPoints.Add(points[points.Count - 1]); // Debug.Log($"Before sample, points number: {points.Count} after sample: {sampledPoints.Count}."); return sampledPoints; } MapData.LineType BoundaryTypeToLineType(LaneBoundaryType.Type boundaryType) { if (boundaryType == LaneBoundaryType.Type.DottedYellow) return MapData.LineType.DOTTED_YELLOW; else if (boundaryType == LaneBoundaryType.Type.DottedWhite) return MapData.LineType.DOTTED_WHITE; else if (boundaryType == LaneBoundaryType.Type.SolidYellow) return MapData.LineType.SOLID_YELLOW; else if (boundaryType == LaneBoundaryType.Type.SolidWhite) return MapData.LineType.SOLID_WHITE; else if (boundaryType == LaneBoundaryType.Type.DoubleYellow) return MapData.LineType.DOUBLE_YELLOW; else if (boundaryType == LaneBoundaryType.Type.Curb) return MapData.LineType.CURB; return MapData.LineType.UNKNOWN; } static double GetDistancePointToLine(double3 start, double3 dir, double3 point) { double3 AP = point - start; double cross1 = AP.y * dir.z - AP.z * dir.y; double cross2 = AP.z * dir.x - AP.x * dir.z; double cross3 = AP.x * dir.y - AP.y * dir.x; return Math.Sqrt(cross1 * cross1 + cross2 * cross2 + cross3 * cross3); // Use cross product to compute distance } void AddLane(string id, Lane lane) { var curveSegments = lane.central_curve.segment; var lanePoints = GetPointsFromCurve(curveSegments); lanePoints = DownSample(lanePoints, DownSampleDeltaThreshold, DownSampleDistanceThreshold); GameObject mapLaneObj = new GameObject("MapLane_" + id); MapLane mapLane = mapLaneObj.AddComponent<MapLane>(); mapLane.mapWorldPositions = ConvertUTMFromDouble3(lanePoints); UpdateObjPosAndLocalPos(mapLaneObj.transform, mapLane); // TODO set self reverse lanes // TODO set direction mapLane.leftLineBoundry = Id2LeftLineBoundary[id]; mapLane.rightLineBoundry = Id2RightLineBoundary[id]; mapLane.laneTurnType = (MapData.LaneTurnType)lane.turn; mapLane.speedLimit = (float)lane.speed_limit; var junctionId = lane.junction_id; if (junctionId != null) MoveLaneToJunction(new List<string>(){id}, junctionId.id.ToString()); Id2Lane[id] = mapLane; } void MoveLaneToJunction(List<string> laneIds, string junctionId) { foreach (var id in laneIds) { if (LaneId2JunctionId.ContainsKey(id)) { if (LaneId2JunctionId[id] != junctionId) { Debug.LogWarning($"Lane {id} is belong to more than one junctions, please check."); } continue; } else if (LaneId2MapLaneSection.ContainsKey(id)) { LaneId2MapLaneSection[id].transform.parent = Id2MapIntersection[junctionId].transform; break; } else { var intersectionTransform = Id2MapIntersection[junctionId].transform; Id2Lane[id].transform.parent = intersectionTransform; Id2LeftLineBoundary[id].transform.parent = intersectionTransform; Id2RightLineBoundary[id].transform.parent = intersectionTransform; } LaneId2JunctionId[id] = junctionId; } } void ImportRoads() { foreach (var road in ApolloMap.road) { var laneIds = new List<string>(); foreach (var section in road.section) { foreach (var laneId in section.lane_id) { laneIds.Add(laneId.id.ToString()); } } if (laneIds.Count > 1) { // Create map lane section GameObject mapLaneSection = new GameObject($"MapLaneSection_{road.id.id}"); mapLaneSection.AddComponent<MapLaneSection>(); mapLaneSection.transform.parent = TrafficLanes.transform; foreach (var id in laneIds) { LaneId2MapLaneSection[id] = mapLaneSection; } MoveLaneLines(laneIds, mapLaneSection); } else { var id = laneIds[0]; Id2Lane[id].transform.parent = SingleLaneRoads.transform; Id2LeftLineBoundary[id].transform.parent = SingleLaneRoads.transform; Id2RightLineBoundary[id].transform.parent = SingleLaneRoads.transform; } var junctionId = road.junction_id; if (junctionId != null) MoveLaneToJunction(laneIds, junctionId.id.ToString()); } } void MoveLaneLines(List<string> laneIds, GameObject mapLaneSection) { var lanePositions = new List<Vector3>(); foreach (var laneId in laneIds) { var lane = Id2Lane[laneId]; lane.transform.parent = mapLaneSection.transform; UpdateObjPosAndLocalPos(lane.transform, lane); lanePositions.Add(lane.transform.position); var leftLine = Id2LeftLineBoundary[laneId]; leftLine.transform.parent = mapLaneSection.transform; UpdateObjPosAndLocalPos(leftLine.transform, leftLine); var rightLine = Id2RightLineBoundary[laneId]; rightLine.transform.parent = mapLaneSection.transform; UpdateObjPosAndLocalPos(rightLine.transform, rightLine); } // Update mapLaneSection transform based on all lanes and update all lane's positions mapLaneSection.transform.position = Lanelet2MapImporter.GetAverage(lanePositions); UpdateChildrenPositions(mapLaneSection); } // Update children positions after parent position changed from 0 to keep children world positions same static void UpdateChildrenPositions(GameObject parent) { foreach (Transform child in parent.transform) { child.transform.position -= parent.transform.position; } } void ConnectLanes() { var visitedLaneIdsEnd = new HashSet<string>(); // lanes whose end point has been visited var visitedLaneIdsStart = new HashSet<string>(); // lanes whose start point has been visited foreach (var lane in ApolloMap.lane) { var laneId = lane.id.id.ToString(); var predecessorIds = lane.predecessor_id; var successorIds = lane.successor_id; var positions = Id2Lane[laneId].mapWorldPositions; if (predecessorIds != null) { foreach (var predecessorId in predecessorIds.Select(x => x.id.ToString())) { Id2Lane[laneId].befores.Add(Id2Lane[predecessorId]); if (!visitedLaneIdsEnd.Contains(predecessorId)) AdjustStartOrEndPoint(positions, predecessorId, true); visitedLaneIdsEnd.Add(predecessorId); } } if (successorIds != null) { foreach (var successorId in successorIds.Select(x => x.id.ToString())) { Id2Lane[laneId].afters.Add(Id2Lane[successorId]); if (!visitedLaneIdsStart.Contains(successorId)) AdjustStartOrEndPoint(positions, successorId, false); visitedLaneIdsStart.Add(successorId); } } } } // Make current lane's start/end point same as predecessor/successor lane's end/start point void AdjustStartOrEndPoint(List<Vector3> positions, string connectLaneId, bool adjustEndPoint) { MapLane connectLane = Id2Lane[connectLaneId]; var connectLaneWorldPositions = connectLane.mapWorldPositions; var connectLaneLocalPositions = connectLane.mapLocalPositions; if (adjustEndPoint) { connectLaneWorldPositions[connectLaneWorldPositions.Count - 1] = positions.First(); connectLaneLocalPositions[connectLaneLocalPositions.Count - 1] = connectLane.transform.InverseTransformPoint(positions.First()); } else { connectLaneWorldPositions[0] = positions.Last(); connectLaneLocalPositions[0] = connectLane.transform.InverseTransformPoint(positions.Last()); } } void ImportOverlaps() { foreach ( var overlap in ApolloMap.overlap) { var overlapId = overlap.id.ToString(); if (overlap.@object.Count > 2) { Debug.LogWarning("More than 2 overlap objects in one overlap, not supported yet."); continue; } string signalSignId = null, laneId = null; double startS = 0; foreach (var obj in overlap.@object) { if (obj.lane_overlap_info != null) { laneId = obj.id.id.ToString(); startS = obj.lane_overlap_info.start_s; } else if (obj.signal_overlap_info != null || obj.stop_sign_overlap_info != null || obj.yield_sign_overlap_info != null) { if (obj.id != null) signalSignId = obj.id.id.ToString(); } } if (signalSignId != null && laneId != null) SignalSignId2LaneIdStartS[signalSignId] = Tuple.Create(laneId, startS); } } void ImportStopSigns() { foreach (var stopSign in ApolloMap.stop_sign) { var id = stopSign.id.id.ToString(); if (!SignalSignId2LaneIdStartS.ContainsKey(id)) { Debug.LogError($"StopSign {id} has no corresponding overlap, skipping importing it."); continue; } CreateStopLine(id, stopSign.stop_line, true); var overlapLaneIdStartS = SignalSignId2LaneIdStartS[id]; SetStopLineRotation(id, overlapLaneIdStartS, out MapLine stopLine); var intersectionId = GetIntersectionId(overlapLaneIdStartS); if (intersectionId == null) { Debug.LogError($"No nearest intersection found for this stop sign {id}! Cannot assign it under an existing intersection."); CreateMapIntersection(id); Debug.LogWarning($"Please manually adjust the intersection: MapIntersection_{id}"); intersectionId = id; } Id2MapIntersection[intersectionId].isStopSignIntersection = true; CreateStopSign(id, intersectionId); MoveBackIfOnIntersectionLane(id, overlapLaneIdStartS); stopLine.transform.parent = Id2MapIntersection[intersectionId].transform; UpdateLocalPositions(stopLine); } Debug.Log($"Imported {ApolloMap.stop_sign.Count} Stop Signs."); } void CreateStopLine(string id, List<Curve> curves, bool isStopSign) { GameObject mapLineObj = new GameObject("MapLineStop_" + id); var mapLine = mapLineObj.AddComponent<MapLine>(); mapLine.lineType = MapData.LineType.STOP; mapLine.isStopSign = isStopSign; if (curves.Count > 1) Debug.LogWarning($"Found multiple stop lines for same signal / stop_sign, not supported yet."); var curveSegments = curves[0].segment; var linePointsDouble3 = GetPointsFromCurve(curveSegments); mapLine.mapWorldPositions = ConvertUTMFromDouble3(linePointsDouble3); UpdateObjPosAndLocalPos(mapLineObj.transform, mapLine); Id2StopLine[id] = mapLine; } void SetStopLineRotation(string id, Tuple<string, double> overlapLaneIdStartS, out MapLine stopLine) { var overlapLaneDirection = GetDirection(overlapLaneIdStartS); stopLine = Id2StopLine[id]; stopLine.transform.rotation = Quaternion.LookRotation(overlapLaneDirection); } string GetIntersectionId(Tuple<string, double> laneIdStartS) { var laneId = laneIdStartS.Item1; var startS = laneIdStartS.Item2; if (LaneId2JunctionId.ContainsKey(laneId)) return LaneId2JunctionId[laneId]; var preJunctionId = GetJunctionId(Id2Lane[laneId].befores); var sucJunctionId = GetJunctionId(Id2Lane[laneId].afters); if (preJunctionId != null && sucJunctionId != null) { return GetNearestIntersectionId(laneId, startS, preJunctionId, sucJunctionId); } return preJunctionId != null ? preJunctionId : sucJunctionId; } string GetJunctionId(List<MapLane> lanes) { foreach (var lane in lanes) { var laneId = lane.name.Split('_')[1]; if (LaneId2JunctionId.ContainsKey(laneId)) return LaneId2JunctionId[laneId]; } return null; } string GetNearestIntersectionId(string laneId, double startS, string preJunctionId, string sucJunctionId) { var worldPositions = Id2Lane[laneId].mapWorldPositions; var nearestIdx = GetNearestIdx(startS, worldPositions); var nearestPos = worldPositions[nearestIdx]; // TODO: maybe other logics needed here. // Check StartS is more close to the beginning of the lane or the end of the lane. if ((nearestPos - worldPositions.First()).magnitude < (nearestPos - worldPositions.Last()).magnitude) return preJunctionId; else return sucJunctionId; } static int GetNearestIdx(double s, List<Vector3> lanePositions) { var curS = 0f; var nearestIdx = lanePositions.Count - 1; for (int i = 1; i < lanePositions.Count; i++) { curS += (lanePositions[i] - lanePositions[i - 1]).magnitude; if (curS >= s) { nearestIdx = i; break; } } return nearestIdx; } void CreateStopSign(string id, string intersectionId) { var intersection = Id2MapIntersection[intersectionId]; var stopLine = Id2StopLine[id]; var stopSignLocation = GetStopSignMeshLocation(stopLine); var mapSignObj = new GameObject("MapStopSign_" + id); mapSignObj.transform.position = stopSignLocation; mapSignObj.transform.rotation = Quaternion.LookRotation(-stopLine.transform.forward); mapSignObj.transform.parent = intersection.transform; var mapSign = mapSignObj.AddComponent<MapSign>(); mapSign.signType = MapData.SignType.STOP; mapSign.stopLine = stopLine; mapSign.boundOffsets = new Vector3(0f, 2.55f, 0f); mapSign.boundScale = new Vector3(0.95f, 0.95f, 0f); // Create stop sign mesh if (IsMeshNeeded) CreateStopSignMesh(id, intersection, mapSign); } void CreateStopSignMesh(string id, MapIntersection intersection, MapSign mapSign) { GameObject stopSignPrefab = Settings.MapStopSignPrefab; var stopSignObj = UnityEngine.Object.Instantiate(stopSignPrefab, mapSign.transform.position + mapSign.boundOffsets, mapSign.transform.rotation); stopSignObj.transform.parent = intersection.transform; stopSignObj.name = "MapStopSignMesh_" + id; } Vector3 GetStopSignMeshLocation(MapLine stopLine) { float dist = 2; // we create stop sign 2 meters to the right of the right end point of the stopline var worldPositions = stopLine.mapWorldPositions; var stopLineLength = (worldPositions.Last() - worldPositions.First()).magnitude; var meshLocation = stopLine.transform.position + stopLine.transform.right * (dist + stopLineLength / 2); meshLocation -= stopLine.transform.forward * 1; // move stop sign 1 meter back return meshLocation; } // Make sure stop line is intersecting with the correct lane, not an intersection lane. void MoveBackIfOnIntersectionLane(string id, Tuple<string, double> overlapLaneIdStartS) { var laneId = overlapLaneIdStartS.Item1; var startS = overlapLaneIdStartS.Item2; if (LaneId2JunctionId.ContainsKey(laneId)) { var stopLine = Id2StopLine[id]; var dir = -stopLine.transform.forward; var befores = Id2Lane[laneId].befores; // If multiple before lanes, hard to know where to move the stop line if (befores.Count > 1) Debug.LogWarning($"stopLine {id} might not in correct position, please check and move back yourself if necessary."); // move 1 meter more over the last point of the predecessor lane var sqrDist = Utility.SqrDistanceToSegment(stopLine.mapWorldPositions.First(), stopLine.mapWorldPositions.Last(), befores[0].mapWorldPositions.Last()); var dist = math.sqrt(sqrDist) + 1; stopLine.transform.position += dir * (float)dist; stopLine.mapWorldPositions = stopLine.mapWorldPositions.Select(x => x + dir * (float)dist).ToList(); } } public static void UpdateLocalPositions(MapDataPoints mapDataPoints) { var localPositions = mapDataPoints.mapLocalPositions; var worldPositions = mapDataPoints.mapWorldPositions; localPositions.Clear(); for (int i = 0; i < worldPositions.Count; i++) { localPositions.Add(mapDataPoints.transform.InverseTransformPoint(worldPositions[i])); } } static List<double3> GetPointsFromCurve(List<CurveSegment> curveSegments) { var points = new List<double3>(); foreach (var curveSegment in curveSegments) { foreach (var point in curveSegment.line_segment.point) { points.Add(ToDouble3(point)); } } return points; } Vector3 GetDirection(Tuple<string, double> laneIdStartS) { var laneId = laneIdStartS.Item1; if (LaneId2JunctionId.ContainsKey(laneId)) { // current lane is an intersection lane, return predecessor lane direction var predLanePositions = Id2Lane[laneId].befores[0].mapWorldPositions; return (predLanePositions.Last() - predLanePositions[predLanePositions.Count - 2]).normalized; } var s = laneIdStartS.Item2; var lanePositions = Id2Lane[laneId].mapWorldPositions; int nearestIdx = GetNearestIdx(s, lanePositions); return (lanePositions[nearestIdx] - lanePositions[nearestIdx - 1]).normalized; } void ImportSignals() { foreach (var signal in ApolloMap.signal) { var id = signal.id.id.ToString(); if (!SignalSignId2LaneIdStartS.ContainsKey(id)) { Debug.LogError($"Signal {id} has no corresponding overlap, skipping importing it."); continue; } CreateStopLine(id, signal.stop_line, false); var overlapLaneIdStartS = SignalSignId2LaneIdStartS[id]; SetStopLineRotation(id, overlapLaneIdStartS, out MapLine stopLine); var intersectionId = GetIntersectionId(overlapLaneIdStartS); if (intersectionId == null) { Debug.LogError($"No nearest intersection found for this stop signal {id}! Cannot assign it under an existing intersection."); CreateMapIntersection(id); Debug.LogWarning($"Please manually adjust the intersection: MapIntersection_{id}"); intersectionId = id; } CreateSignal(signal, intersectionId); MoveBackIfOnIntersectionLane(id, overlapLaneIdStartS); stopLine.transform.parent = Id2MapIntersection[intersectionId].transform; UpdateLocalPositions(stopLine); } Debug.Log($"Imported {ApolloMap.signal.Count} Signals."); } void CreateSignal(Signal signal, string intersectionId) { if (signal.type != Signal.Type.Mix3Vertical) Debug.LogError("Simulator currently only support Mix3Vertical signals."); var id = signal.id.id.ToString(); var intersection = Id2MapIntersection[intersectionId]; var mapSignalObj = new GameObject("MapSignal_" + id); var signalPosition = GetSignalPosition(signal); mapSignalObj.transform.position = signalPosition; var stopLine = Id2StopLine[id]; mapSignalObj.transform.rotation = Quaternion.LookRotation(-stopLine.transform.forward); mapSignalObj.transform.parent = intersection.transform; var mapSignal = mapSignalObj.AddComponent<MapSignal>(); mapSignal.signalData = new List<MapData.SignalData> { new MapData.SignalData() { localPosition = Vector3.up * 0.4f, signalColor = MapData.SignalColorType.Red }, new MapData.SignalData() { localPosition = Vector3.zero, signalColor = MapData.SignalColorType.Yellow }, new MapData.SignalData() { localPosition = Vector3.up * -0.4f, signalColor = MapData.SignalColorType.Green }, }; mapSignal.boundScale = new Vector3(0.65f, 1.5f, 0.0f); mapSignal.stopLine = stopLine; mapSignal.signalType = MapData.SignalType.MIX_3_VERTICAL; mapSignal.signalLightMesh = GetSignalMesh(id, intersection, mapSignal); } Renderer GetSignalMesh(string id, MapIntersection intersection, MapSignal mapSignal) { var mapSignalMesh = UnityEngine.Object.Instantiate(Settings.MapTrafficSignalPrefab, mapSignal.transform.position, mapSignal.transform.rotation); mapSignalMesh.transform.parent = intersection.transform; mapSignalMesh.name = "MapSignalMeshVertical_" + id; var mapSignalMeshRenderer = mapSignalMesh.AddComponent<SignalLight>().GetComponent<Renderer>(); return mapSignalMeshRenderer; } Vector3 GetSignalPosition(Signal signal) { // use the middle signal light location as the position of the signal. var centerLightPosition = signal.subsignal[1].location; var position = MapOrigin.FromNorthingEasting(centerLightPosition.y, centerLightPosition.x, false); position.y = SignalHeight; // Uncomment following line to use the actual height // position.y = (float)centerLightPosition.z; return position; } // Experimental features void SetIntersectionTriggerBounds() { foreach (var pair in Id2MapIntersection) { var id = pair.Key; var mapIntersection = pair.Value; var direction = FindADirection(mapIntersection); // find any straight line as the major direction of intersection GetBoundsPoints(mapIntersection, direction, out Vector3 leftBottom, out Vector3 rightBottom, out Vector3 rightTop, out Vector3 leftTop); if (ShowDebugIntersectionArea) { var time = 60; // time showing debug rectangles Debug.DrawLine(leftBottom, rightBottom, Color.red, time); Debug.DrawLine(rightBottom, rightTop, Color.red, time); Debug.DrawLine(leftTop, rightTop, Color.red, time); Debug.DrawLine(leftTop, leftBottom, Color.red, time); Debug.DrawLine(leftBottom, mapIntersection.transform.position, Color.yellow, time); } // TODO: update mapIntersection.triggerBounds based on the four corners // offset by 2m inwards, 10 m height } } static void GetBoundsPoints(MapIntersection mapIntersection, Vector3 direction, out Vector3 leftBottom, out Vector3 rightBottom, out Vector3 rightTop, out Vector3 leftTop) { // use dot product to get min/max values var perpendicularDir = Vector3.Cross(direction, Vector3.up); ComputeProjectedMinMaxPoints(mapIntersection, direction, out Vector3 minPoint, out Vector3 maxPoint); ComputeProjectedMinMaxPoints(mapIntersection, perpendicularDir, out Vector3 minPerpendicularPoint, out Vector3 maxPerpendicularPoint); leftBottom = GetIntersectingPoint(perpendicularDir, direction, minPoint, minPerpendicularPoint); leftBottom.y = minPoint.y; rightBottom = GetIntersectingPoint(perpendicularDir, direction, minPoint, maxPerpendicularPoint); rightBottom.y = minPoint.y; rightTop = GetIntersectingPoint(perpendicularDir, direction, maxPoint, maxPerpendicularPoint); rightTop.y = maxPoint.y; leftTop = GetIntersectingPoint(perpendicularDir, direction, maxPoint, minPerpendicularPoint); leftTop.y = maxPoint.y; } // http://geomalgorithms.com/a05-_intersect-1.html static Vector3 GetIntersectingPoint(Vector3 uDir, Vector3 vDir, Vector3 pPoint, Vector3 qPoint) { var wVec = ToVector2(pPoint) - ToVector2(qPoint); var sI = (vDir.z * wVec.x - vDir.x * wVec.y) / (vDir.x * uDir.z - vDir.z * uDir.x); var intersectPoint = ToVector2(pPoint) + sI * ToVector2(uDir); return ToVector3(intersectPoint); } static void ComputeProjectedMinMaxPoints(MapIntersection mapIntersection, Vector3 direction, out Vector3 minPoint, out Vector3 maxPoint) { var min = float.MaxValue; var max = float.MinValue; minPoint = Vector3.zero; maxPoint = Vector3.zero; // Get bounds from all intersection lines's end points foreach (Transform child in mapIntersection.transform) { var mapLine = child.GetComponent<MapLine>(); if (mapLine != null) { var firstPt = mapLine.mapWorldPositions.First(); var lastPt = mapLine.mapWorldPositions.Last(); var projectedFirstPt = Vector3.Dot(direction, firstPt); var projectedLastPt = Vector3.Dot(direction, lastPt); Vector3 tempMinPoint, tempMaxPoint; float tempMin, tempMax; if (projectedFirstPt < projectedLastPt) { tempMinPoint = firstPt; tempMin = projectedFirstPt; tempMaxPoint = lastPt; tempMax = projectedLastPt; } else { tempMinPoint = lastPt; tempMin = projectedLastPt; tempMaxPoint = firstPt; tempMax = projectedFirstPt; } if (tempMin < min) { min = tempMin; minPoint = tempMinPoint; } if (tempMax > max) { max = tempMax; maxPoint = tempMaxPoint; } } } } Vector3 FindADirection(MapIntersection mapIntersection) { var direction = Vector3.right; var maxProduct = 0f; foreach (Transform child in mapIntersection.transform) { var mapLane = child.GetComponent<MapLane>(); if (mapLane != null) { // Check if the lane is a straight lane var worldPositions = mapLane.mapWorldPositions; var firstTwoPointsDir = (worldPositions[1] - worldPositions[0]).normalized; var lastTwoPointsDir = (worldPositions[worldPositions.Count - 1] - worldPositions[worldPositions.Count - 2]).normalized; var product = Vector3.Dot(firstTwoPointsDir, lastTwoPointsDir); if (product > 0.9 && product > maxProduct) { direction = firstTwoPointsDir; maxProduct = product; } } } return direction; } void ImportYields() { foreach (var yield in ApolloMap.yield) { var id = yield.id.id.ToString(); CreateStopLine(id, yield.stop_line, true); if (!SignalSignId2LaneIdStartS.ContainsKey(id)) { Debug.LogWarning($"yield {id} does not have an overlap associated!"); continue; } var overlapLaneIdStartS = SignalSignId2LaneIdStartS[id]; SetStopLineRotation(id, overlapLaneIdStartS, out MapLine stopLine); var intersectionId = GetIntersectionId(overlapLaneIdStartS); if (intersectionId == null) { Debug.LogError($"No nearest intersection found for this yield sign {id}! Cannot assign it under an existing intersection."); CreateMapIntersection(id); Debug.LogWarning($"Please manually adjust the intersection: MapIntersection_{id}"); intersectionId = id; } Id2MapIntersection[intersectionId].isStopSignIntersection = true; CreateStopSign(id, intersectionId); // TODO: Create yield sign once we have yield sign for NPCs MoveBackIfOnIntersectionLane(id, overlapLaneIdStartS); stopLine.transform.parent = Id2MapIntersection[intersectionId].transform; UpdateLocalPositions(stopLine); } Debug.Log($"Imported {ApolloMap.yield.Count} yield signs."); } void UpdateStopLines() { foreach (var entry in Id2StopLine) { var stopLine = entry.Value; // Compute intersecting lanes var intersectingLanes = GetOrderedIntersectingLanes(stopLine); if (intersectingLanes.Count == 0) continue; // No intersecting lanes found for this stop line. var firstMapLanePositions = intersectingLanes[0].mapWorldPositions; var laneDir = (firstMapLanePositions.Last() - firstMapLanePositions[firstMapLanePositions.Count - 2]).normalized; // Compute points based on lane end points var endPoints = intersectingLanes.Select(lane => lane.mapWorldPositions.Last()).ToList(); var newStopLinePositions = new List<Vector3>(); for (int i = 0; i < endPoints.Count; i++) { var endPoint = endPoints[i]; var normalDir = Vector3.Cross(laneDir, Vector3.up).normalized; var halfLaneWidth = 2; newStopLinePositions.Add(endPoint + normalDir * halfLaneWidth - laneDir * 0.5f); if (i == endPoints.Count - 1) newStopLinePositions.Add(endPoint - normalDir * halfLaneWidth - laneDir * 0.5f); } // Update stop line mapWorldPositions with new computed points stopLine.mapWorldPositions = newStopLinePositions; stopLine.transform.position = Lanelet2MapImporter.GetAverage(newStopLinePositions); UpdateLocalPositions(stopLine); } } List<MapLane> GetOrderedIntersectingLanes(MapLine stopLine) { var stopLinePositions = stopLine.mapWorldPositions; var intersectingLanes = new List<MapLane>(); foreach (var entry in Id2Lane) { var mapLane = entry.Value; var positions = mapLane.mapWorldPositions; // last two points of the lane var p1 = positions[positions.Count - 2]; var p2 = positions.Last(); // check with every segment of the stop line for (var i = 0; i < stopLinePositions.Count - 1; i++) { var p3 = stopLinePositions[i]; var p4 = stopLinePositions[i + 1]; var isIntersect = Utility.LineSegementsIntersect(ToVector2(p1), ToVector2(p2), ToVector2(p3), ToVector2(p4), out Vector2 intersection); if (isIntersect) { intersectingLanes.Add(mapLane); break; } } } if (intersectingLanes.Count == 0) { Debug.LogWarning($"stopLine {stopLine.name} have no intersecting lanes"); } else if (intersectingLanes.Count == 1) return intersectingLanes; else { intersectingLanes = OrderLanes(intersectingLanes); } return intersectingLanes; } List<MapLane> OrderLanes(List<MapLane> intersectingLanes) { // Pick any lane, compute normal direction, get distance to the lane and order lanes var theLane = intersectingLanes[0]; var p1 = ToVector2(theLane.mapWorldPositions[theLane.mapWorldPositions.Count - 2]); var p2 = ToVector2(theLane.mapWorldPositions.Last()); var dir = p2 - p1; var rightNormalDir = new Vector2(dir.y, -dir.x); var distance2mapLane = new Dictionary<float, MapLane>(); foreach (var lane in intersectingLanes) { var endPoint = lane.mapWorldPositions.Last(); var dist = Vector2.Dot(rightNormalDir, ToVector2(endPoint) - p1); distance2mapLane[dist] = lane; } return distance2mapLane.OrderBy(entry => entry.Key).Select(entry => entry.Value).ToList(); } static Vector2 ToVector2(Vector3 pt) { return new Vector2(pt.x, pt.z); } static Vector3 ToVector3(Vector2 p) { return new Vector3(p.x, 0f, p.y); } static double3 ToDouble3(apollo.common.PointENU point) { return new double3(point.x, point.y, point.z); } } }
44.814849
180
0.578672
[ "Apache-2.0", "BSD-3-Clause" ]
HansRobo/simulator
Assets/Scripts/Editor/ApolloMapImporter.cs
48,893
C#
using System; using System.Collections.Generic; using System.Text; using TuShareHttpSDKLibrary.Attributes; namespace TuShareHttpSDKLibrary.Model.NewslettersLong { /// <summary> /// 接口:major_news<br/>描述:获取长篇通讯信息,覆盖主要新闻资讯网站<br/></br>限量:单次最大60行记录,如果需要扩大数量请在QQ群私信群主。<br/></br>积分:用户积累120积分可以调取试用,超过5000无限制,具体请参阅 /// </summary> public class MajorNewsResponseModel { /// <summary> /// 标题 /// <summary> [TuShareProperty("title")] public string Title { get; set; } /// <summary> /// 内容 (默认不显示,需要在fields里指定) /// <summary> [TuShareProperty("content")] public string Content { get; set; } /// <summary> /// 发布时间 /// <summary> [TuShareProperty("pub_time")] public string PubTime { get; set; } /// <summary> /// 来源网站 /// <summary> [TuShareProperty("src")] public string Src { get; set; } } }
27.514286
133
0.57217
[ "Apache-2.0" ]
PasuHx/TuShareHttpSDK
TuShareHttpSDKLibrary/Model/AlternativeData/Newsletters(Long)/MajorNewsResponseModel.cs
1,169
C#
 using System; namespace PuertsStaticWrap { public static class UnityEngine_Matrix4x4_Wrap { static UnityEngine.Matrix4x4 HeapValue; [Puerts.MonoPInvokeCallback(typeof(Puerts.V8ConstructorCallback))] unsafe private static IntPtr Constructor(IntPtr isolate, IntPtr info, int paramLen, long data) { try { if (paramLen == 4) { var argHelper0 = new Puerts.ArgumentHelper((int)data, isolate, info, 0); var argHelper1 = new Puerts.ArgumentHelper((int)data, isolate, info, 1); var argHelper2 = new Puerts.ArgumentHelper((int)data, isolate, info, 2); var argHelper3 = new Puerts.ArgumentHelper((int)data, isolate, info, 3); if (argHelper0.IsMatch(Puerts.JsValueType.NativeObject, typeof(UnityEngine.Vector4), false, false) && argHelper1.IsMatch(Puerts.JsValueType.NativeObject, typeof(UnityEngine.Vector4), false, false) && argHelper2.IsMatch(Puerts.JsValueType.NativeObject, typeof(UnityEngine.Vector4), false, false) && argHelper3.IsMatch(Puerts.JsValueType.NativeObject, typeof(UnityEngine.Vector4), false, false)) { var Arg0 = argHelper0.Get<UnityEngine.Vector4>(false); var Arg1 = argHelper1.Get<UnityEngine.Vector4>(false); var Arg2 = argHelper2.Get<UnityEngine.Vector4>(false); var Arg3 = argHelper3.Get<UnityEngine.Vector4>(false); HeapValue = new UnityEngine.Matrix4x4(Arg0, Arg1, Arg2, Arg3); fixed (UnityEngine.Matrix4x4* result = &HeapValue) { return new IntPtr(result); } } } if (paramLen == 0) { { HeapValue = new UnityEngine.Matrix4x4(); fixed (UnityEngine.Matrix4x4* result = &HeapValue) { return new IntPtr(result); } } } Puerts.PuertsDLL.ThrowException(isolate, "invalid arguments to UnityEngine.Matrix4x4 constructor"); } catch (Exception e) { Puerts.PuertsDLL.ThrowException(isolate, "c# exception:" + e.Message + ",stack:" + e.StackTrace); } return IntPtr.Zero; } [Puerts.MonoPInvokeCallback(typeof(Puerts.V8FunctionCallback))] unsafe private static void M_ValidTRS(IntPtr isolate, IntPtr info, IntPtr self, int paramLen, long data) { try { var obj = (UnityEngine.Matrix4x4*)self; { { var result = (*obj).ValidTRS(); Puerts.PuertsDLL.ReturnBoolean(isolate, info, result); } } } catch (Exception e) { Puerts.PuertsDLL.ThrowException(isolate, "c# exception:" + e.Message + ",stack:" + e.StackTrace); } } [Puerts.MonoPInvokeCallback(typeof(Puerts.V8FunctionCallback))] private static void F_Determinant(IntPtr isolate, IntPtr info, IntPtr self, int paramLen, long data) { try { { var argHelper0 = new Puerts.ArgumentHelper((int)data, isolate, info, 0); { var Arg0 = argHelper0.Get<UnityEngine.Matrix4x4>(false); var result = UnityEngine.Matrix4x4.Determinant(Arg0); Puerts.PuertsDLL.ReturnNumber(isolate, info, result); } } } catch (Exception e) { Puerts.PuertsDLL.ThrowException(isolate, "c# exception:" + e.Message + ",stack:" + e.StackTrace); } } [Puerts.MonoPInvokeCallback(typeof(Puerts.V8FunctionCallback))] private static void F_TRS(IntPtr isolate, IntPtr info, IntPtr self, int paramLen, long data) { try { { var argHelper0 = new Puerts.ArgumentHelper((int)data, isolate, info, 0); var argHelper1 = new Puerts.ArgumentHelper((int)data, isolate, info, 1); var argHelper2 = new Puerts.ArgumentHelper((int)data, isolate, info, 2); { var Arg0 = argHelper0.Get<UnityEngine.Vector3>(false); var Arg1 = argHelper1.Get<UnityEngine.Quaternion>(false); var Arg2 = argHelper2.Get<UnityEngine.Vector3>(false); var result = UnityEngine.Matrix4x4.TRS(Arg0, Arg1, Arg2); Puerts.ResultHelper.Set((int)data, isolate, info, result); } } } catch (Exception e) { Puerts.PuertsDLL.ThrowException(isolate, "c# exception:" + e.Message + ",stack:" + e.StackTrace); } } [Puerts.MonoPInvokeCallback(typeof(Puerts.V8FunctionCallback))] unsafe private static void M_SetTRS(IntPtr isolate, IntPtr info, IntPtr self, int paramLen, long data) { try { var obj = (UnityEngine.Matrix4x4*)self; { var argHelper0 = new Puerts.ArgumentHelper((int)data, isolate, info, 0); var argHelper1 = new Puerts.ArgumentHelper((int)data, isolate, info, 1); var argHelper2 = new Puerts.ArgumentHelper((int)data, isolate, info, 2); { var Arg0 = argHelper0.Get<UnityEngine.Vector3>(false); var Arg1 = argHelper1.Get<UnityEngine.Quaternion>(false); var Arg2 = argHelper2.Get<UnityEngine.Vector3>(false); (*obj).SetTRS(Arg0, Arg1, Arg2); } } } catch (Exception e) { Puerts.PuertsDLL.ThrowException(isolate, "c# exception:" + e.Message + ",stack:" + e.StackTrace); } } [Puerts.MonoPInvokeCallback(typeof(Puerts.V8FunctionCallback))] private static void F_Inverse3DAffine(IntPtr isolate, IntPtr info, IntPtr self, int paramLen, long data) { try { { var argHelper0 = new Puerts.ArgumentHelper((int)data, isolate, info, 0); var argHelper1 = new Puerts.ArgumentHelper((int)data, isolate, info, 1); { var Arg0 = argHelper0.Get<UnityEngine.Matrix4x4>(false); var Arg1 = argHelper1.Get<UnityEngine.Matrix4x4>(true); var result = UnityEngine.Matrix4x4.Inverse3DAffine(Arg0, ref Arg1); argHelper1.SetByRefValue(Arg1); Puerts.PuertsDLL.ReturnBoolean(isolate, info, result); } } } catch (Exception e) { Puerts.PuertsDLL.ThrowException(isolate, "c# exception:" + e.Message + ",stack:" + e.StackTrace); } } [Puerts.MonoPInvokeCallback(typeof(Puerts.V8FunctionCallback))] private static void F_Inverse(IntPtr isolate, IntPtr info, IntPtr self, int paramLen, long data) { try { { var argHelper0 = new Puerts.ArgumentHelper((int)data, isolate, info, 0); { var Arg0 = argHelper0.Get<UnityEngine.Matrix4x4>(false); var result = UnityEngine.Matrix4x4.Inverse(Arg0); Puerts.ResultHelper.Set((int)data, isolate, info, result); } } } catch (Exception e) { Puerts.PuertsDLL.ThrowException(isolate, "c# exception:" + e.Message + ",stack:" + e.StackTrace); } } [Puerts.MonoPInvokeCallback(typeof(Puerts.V8FunctionCallback))] private static void F_Transpose(IntPtr isolate, IntPtr info, IntPtr self, int paramLen, long data) { try { { var argHelper0 = new Puerts.ArgumentHelper((int)data, isolate, info, 0); { var Arg0 = argHelper0.Get<UnityEngine.Matrix4x4>(false); var result = UnityEngine.Matrix4x4.Transpose(Arg0); Puerts.ResultHelper.Set((int)data, isolate, info, result); } } } catch (Exception e) { Puerts.PuertsDLL.ThrowException(isolate, "c# exception:" + e.Message + ",stack:" + e.StackTrace); } } [Puerts.MonoPInvokeCallback(typeof(Puerts.V8FunctionCallback))] private static void F_Ortho(IntPtr isolate, IntPtr info, IntPtr self, int paramLen, long data) { try { { var argHelper0 = new Puerts.ArgumentHelper((int)data, isolate, info, 0); var argHelper1 = new Puerts.ArgumentHelper((int)data, isolate, info, 1); var argHelper2 = new Puerts.ArgumentHelper((int)data, isolate, info, 2); var argHelper3 = new Puerts.ArgumentHelper((int)data, isolate, info, 3); var argHelper4 = new Puerts.ArgumentHelper((int)data, isolate, info, 4); var argHelper5 = new Puerts.ArgumentHelper((int)data, isolate, info, 5); { var Arg0 = argHelper0.GetFloat(false); var Arg1 = argHelper1.GetFloat(false); var Arg2 = argHelper2.GetFloat(false); var Arg3 = argHelper3.GetFloat(false); var Arg4 = argHelper4.GetFloat(false); var Arg5 = argHelper5.GetFloat(false); var result = UnityEngine.Matrix4x4.Ortho(Arg0, Arg1, Arg2, Arg3, Arg4, Arg5); Puerts.ResultHelper.Set((int)data, isolate, info, result); } } } catch (Exception e) { Puerts.PuertsDLL.ThrowException(isolate, "c# exception:" + e.Message + ",stack:" + e.StackTrace); } } [Puerts.MonoPInvokeCallback(typeof(Puerts.V8FunctionCallback))] private static void F_Perspective(IntPtr isolate, IntPtr info, IntPtr self, int paramLen, long data) { try { { var argHelper0 = new Puerts.ArgumentHelper((int)data, isolate, info, 0); var argHelper1 = new Puerts.ArgumentHelper((int)data, isolate, info, 1); var argHelper2 = new Puerts.ArgumentHelper((int)data, isolate, info, 2); var argHelper3 = new Puerts.ArgumentHelper((int)data, isolate, info, 3); { var Arg0 = argHelper0.GetFloat(false); var Arg1 = argHelper1.GetFloat(false); var Arg2 = argHelper2.GetFloat(false); var Arg3 = argHelper3.GetFloat(false); var result = UnityEngine.Matrix4x4.Perspective(Arg0, Arg1, Arg2, Arg3); Puerts.ResultHelper.Set((int)data, isolate, info, result); } } } catch (Exception e) { Puerts.PuertsDLL.ThrowException(isolate, "c# exception:" + e.Message + ",stack:" + e.StackTrace); } } [Puerts.MonoPInvokeCallback(typeof(Puerts.V8FunctionCallback))] private static void F_LookAt(IntPtr isolate, IntPtr info, IntPtr self, int paramLen, long data) { try { { var argHelper0 = new Puerts.ArgumentHelper((int)data, isolate, info, 0); var argHelper1 = new Puerts.ArgumentHelper((int)data, isolate, info, 1); var argHelper2 = new Puerts.ArgumentHelper((int)data, isolate, info, 2); { var Arg0 = argHelper0.Get<UnityEngine.Vector3>(false); var Arg1 = argHelper1.Get<UnityEngine.Vector3>(false); var Arg2 = argHelper2.Get<UnityEngine.Vector3>(false); var result = UnityEngine.Matrix4x4.LookAt(Arg0, Arg1, Arg2); Puerts.ResultHelper.Set((int)data, isolate, info, result); } } } catch (Exception e) { Puerts.PuertsDLL.ThrowException(isolate, "c# exception:" + e.Message + ",stack:" + e.StackTrace); } } [Puerts.MonoPInvokeCallback(typeof(Puerts.V8FunctionCallback))] private static void F_Frustum(IntPtr isolate, IntPtr info, IntPtr self, int paramLen, long data) { try { if (paramLen == 6) { var argHelper0 = new Puerts.ArgumentHelper((int)data, isolate, info, 0); var argHelper1 = new Puerts.ArgumentHelper((int)data, isolate, info, 1); var argHelper2 = new Puerts.ArgumentHelper((int)data, isolate, info, 2); var argHelper3 = new Puerts.ArgumentHelper((int)data, isolate, info, 3); var argHelper4 = new Puerts.ArgumentHelper((int)data, isolate, info, 4); var argHelper5 = new Puerts.ArgumentHelper((int)data, isolate, info, 5); if (argHelper0.IsMatch(Puerts.JsValueType.Number, null, false, false) && argHelper1.IsMatch(Puerts.JsValueType.Number, null, false, false) && argHelper2.IsMatch(Puerts.JsValueType.Number, null, false, false) && argHelper3.IsMatch(Puerts.JsValueType.Number, null, false, false) && argHelper4.IsMatch(Puerts.JsValueType.Number, null, false, false) && argHelper5.IsMatch(Puerts.JsValueType.Number, null, false, false)) { var Arg0 = argHelper0.GetFloat(false); var Arg1 = argHelper1.GetFloat(false); var Arg2 = argHelper2.GetFloat(false); var Arg3 = argHelper3.GetFloat(false); var Arg4 = argHelper4.GetFloat(false); var Arg5 = argHelper5.GetFloat(false); var result = UnityEngine.Matrix4x4.Frustum(Arg0, Arg1, Arg2, Arg3, Arg4, Arg5); Puerts.ResultHelper.Set((int)data, isolate, info, result); return; } } if (paramLen == 1) { var argHelper0 = new Puerts.ArgumentHelper((int)data, isolate, info, 0); if (argHelper0.IsMatch(Puerts.JsValueType.NativeObject, typeof(UnityEngine.FrustumPlanes), false, false)) { var Arg0 = argHelper0.Get<UnityEngine.FrustumPlanes>(false); var result = UnityEngine.Matrix4x4.Frustum(Arg0); Puerts.ResultHelper.Set((int)data, isolate, info, result); return; } } Puerts.PuertsDLL.ThrowException(isolate, "invalid arguments to Frustum"); } catch (Exception e) { Puerts.PuertsDLL.ThrowException(isolate, "c# exception:" + e.Message + ",stack:" + e.StackTrace); } } [Puerts.MonoPInvokeCallback(typeof(Puerts.V8FunctionCallback))] unsafe private static void M_GetHashCode(IntPtr isolate, IntPtr info, IntPtr self, int paramLen, long data) { try { var obj = (UnityEngine.Matrix4x4*)self; if (paramLen == 0) { { var result = (*obj).GetHashCode(); Puerts.PuertsDLL.ReturnNumber(isolate, info, result); return; } } Puerts.PuertsDLL.ThrowException(isolate, "invalid arguments to GetHashCode"); } catch (Exception e) { Puerts.PuertsDLL.ThrowException(isolate, "c# exception:" + e.Message + ",stack:" + e.StackTrace); } } [Puerts.MonoPInvokeCallback(typeof(Puerts.V8FunctionCallback))] unsafe private static void M_Equals(IntPtr isolate, IntPtr info, IntPtr self, int paramLen, long data) { try { var obj = (UnityEngine.Matrix4x4*)self; if (paramLen == 1) { var argHelper0 = new Puerts.ArgumentHelper((int)data, isolate, info, 0); if (argHelper0.IsMatch(Puerts.JsValueType.Any, typeof(System.Object), false, false)) { var Arg0 = argHelper0.Get<System.Object>(false); var result = (*obj).Equals(Arg0); Puerts.PuertsDLL.ReturnBoolean(isolate, info, result); return; } if (argHelper0.IsMatch(Puerts.JsValueType.NativeObject, typeof(UnityEngine.Matrix4x4), false, false)) { var Arg0 = argHelper0.Get<UnityEngine.Matrix4x4>(false); var result = (*obj).Equals(Arg0); Puerts.PuertsDLL.ReturnBoolean(isolate, info, result); return; } } Puerts.PuertsDLL.ThrowException(isolate, "invalid arguments to Equals"); } catch (Exception e) { Puerts.PuertsDLL.ThrowException(isolate, "c# exception:" + e.Message + ",stack:" + e.StackTrace); } } [Puerts.MonoPInvokeCallback(typeof(Puerts.V8FunctionCallback))] unsafe private static void M_GetColumn(IntPtr isolate, IntPtr info, IntPtr self, int paramLen, long data) { try { var obj = (UnityEngine.Matrix4x4*)self; { var argHelper0 = new Puerts.ArgumentHelper((int)data, isolate, info, 0); { var Arg0 = argHelper0.GetInt32(false); var result = (*obj).GetColumn(Arg0); Puerts.ResultHelper.Set((int)data, isolate, info, result); } } } catch (Exception e) { Puerts.PuertsDLL.ThrowException(isolate, "c# exception:" + e.Message + ",stack:" + e.StackTrace); } } [Puerts.MonoPInvokeCallback(typeof(Puerts.V8FunctionCallback))] unsafe private static void M_GetRow(IntPtr isolate, IntPtr info, IntPtr self, int paramLen, long data) { try { var obj = (UnityEngine.Matrix4x4*)self; { var argHelper0 = new Puerts.ArgumentHelper((int)data, isolate, info, 0); { var Arg0 = argHelper0.GetInt32(false); var result = (*obj).GetRow(Arg0); Puerts.ResultHelper.Set((int)data, isolate, info, result); } } } catch (Exception e) { Puerts.PuertsDLL.ThrowException(isolate, "c# exception:" + e.Message + ",stack:" + e.StackTrace); } } [Puerts.MonoPInvokeCallback(typeof(Puerts.V8FunctionCallback))] unsafe private static void M_SetColumn(IntPtr isolate, IntPtr info, IntPtr self, int paramLen, long data) { try { var obj = (UnityEngine.Matrix4x4*)self; { var argHelper0 = new Puerts.ArgumentHelper((int)data, isolate, info, 0); var argHelper1 = new Puerts.ArgumentHelper((int)data, isolate, info, 1); { var Arg0 = argHelper0.GetInt32(false); var Arg1 = argHelper1.Get<UnityEngine.Vector4>(false); (*obj).SetColumn(Arg0, Arg1); } } } catch (Exception e) { Puerts.PuertsDLL.ThrowException(isolate, "c# exception:" + e.Message + ",stack:" + e.StackTrace); } } [Puerts.MonoPInvokeCallback(typeof(Puerts.V8FunctionCallback))] unsafe private static void M_SetRow(IntPtr isolate, IntPtr info, IntPtr self, int paramLen, long data) { try { var obj = (UnityEngine.Matrix4x4*)self; { var argHelper0 = new Puerts.ArgumentHelper((int)data, isolate, info, 0); var argHelper1 = new Puerts.ArgumentHelper((int)data, isolate, info, 1); { var Arg0 = argHelper0.GetInt32(false); var Arg1 = argHelper1.Get<UnityEngine.Vector4>(false); (*obj).SetRow(Arg0, Arg1); } } } catch (Exception e) { Puerts.PuertsDLL.ThrowException(isolate, "c# exception:" + e.Message + ",stack:" + e.StackTrace); } } [Puerts.MonoPInvokeCallback(typeof(Puerts.V8FunctionCallback))] unsafe private static void M_MultiplyPoint(IntPtr isolate, IntPtr info, IntPtr self, int paramLen, long data) { try { var obj = (UnityEngine.Matrix4x4*)self; { var argHelper0 = new Puerts.ArgumentHelper((int)data, isolate, info, 0); { var Arg0 = argHelper0.Get<UnityEngine.Vector3>(false); var result = (*obj).MultiplyPoint(Arg0); Puerts.ResultHelper.Set((int)data, isolate, info, result); } } } catch (Exception e) { Puerts.PuertsDLL.ThrowException(isolate, "c# exception:" + e.Message + ",stack:" + e.StackTrace); } } [Puerts.MonoPInvokeCallback(typeof(Puerts.V8FunctionCallback))] unsafe private static void M_MultiplyPoint3x4(IntPtr isolate, IntPtr info, IntPtr self, int paramLen, long data) { try { var obj = (UnityEngine.Matrix4x4*)self; { var argHelper0 = new Puerts.ArgumentHelper((int)data, isolate, info, 0); { var Arg0 = argHelper0.Get<UnityEngine.Vector3>(false); var result = (*obj).MultiplyPoint3x4(Arg0); Puerts.ResultHelper.Set((int)data, isolate, info, result); } } } catch (Exception e) { Puerts.PuertsDLL.ThrowException(isolate, "c# exception:" + e.Message + ",stack:" + e.StackTrace); } } [Puerts.MonoPInvokeCallback(typeof(Puerts.V8FunctionCallback))] unsafe private static void M_MultiplyVector(IntPtr isolate, IntPtr info, IntPtr self, int paramLen, long data) { try { var obj = (UnityEngine.Matrix4x4*)self; { var argHelper0 = new Puerts.ArgumentHelper((int)data, isolate, info, 0); { var Arg0 = argHelper0.Get<UnityEngine.Vector3>(false); var result = (*obj).MultiplyVector(Arg0); Puerts.ResultHelper.Set((int)data, isolate, info, result); } } } catch (Exception e) { Puerts.PuertsDLL.ThrowException(isolate, "c# exception:" + e.Message + ",stack:" + e.StackTrace); } } [Puerts.MonoPInvokeCallback(typeof(Puerts.V8FunctionCallback))] unsafe private static void M_TransformPlane(IntPtr isolate, IntPtr info, IntPtr self, int paramLen, long data) { try { var obj = (UnityEngine.Matrix4x4*)self; { var argHelper0 = new Puerts.ArgumentHelper((int)data, isolate, info, 0); { var Arg0 = argHelper0.Get<UnityEngine.Plane>(false); var result = (*obj).TransformPlane(Arg0); Puerts.ResultHelper.Set((int)data, isolate, info, result); } } } catch (Exception e) { Puerts.PuertsDLL.ThrowException(isolate, "c# exception:" + e.Message + ",stack:" + e.StackTrace); } } [Puerts.MonoPInvokeCallback(typeof(Puerts.V8FunctionCallback))] private static void F_Scale(IntPtr isolate, IntPtr info, IntPtr self, int paramLen, long data) { try { { var argHelper0 = new Puerts.ArgumentHelper((int)data, isolate, info, 0); { var Arg0 = argHelper0.Get<UnityEngine.Vector3>(false); var result = UnityEngine.Matrix4x4.Scale(Arg0); Puerts.ResultHelper.Set((int)data, isolate, info, result); } } } catch (Exception e) { Puerts.PuertsDLL.ThrowException(isolate, "c# exception:" + e.Message + ",stack:" + e.StackTrace); } } [Puerts.MonoPInvokeCallback(typeof(Puerts.V8FunctionCallback))] private static void F_Translate(IntPtr isolate, IntPtr info, IntPtr self, int paramLen, long data) { try { { var argHelper0 = new Puerts.ArgumentHelper((int)data, isolate, info, 0); { var Arg0 = argHelper0.Get<UnityEngine.Vector3>(false); var result = UnityEngine.Matrix4x4.Translate(Arg0); Puerts.ResultHelper.Set((int)data, isolate, info, result); } } } catch (Exception e) { Puerts.PuertsDLL.ThrowException(isolate, "c# exception:" + e.Message + ",stack:" + e.StackTrace); } } [Puerts.MonoPInvokeCallback(typeof(Puerts.V8FunctionCallback))] private static void F_Rotate(IntPtr isolate, IntPtr info, IntPtr self, int paramLen, long data) { try { { var argHelper0 = new Puerts.ArgumentHelper((int)data, isolate, info, 0); { var Arg0 = argHelper0.Get<UnityEngine.Quaternion>(false); var result = UnityEngine.Matrix4x4.Rotate(Arg0); Puerts.ResultHelper.Set((int)data, isolate, info, result); } } } catch (Exception e) { Puerts.PuertsDLL.ThrowException(isolate, "c# exception:" + e.Message + ",stack:" + e.StackTrace); } } [Puerts.MonoPInvokeCallback(typeof(Puerts.V8FunctionCallback))] unsafe private static void M_ToString(IntPtr isolate, IntPtr info, IntPtr self, int paramLen, long data) { try { var obj = (UnityEngine.Matrix4x4*)self; if (paramLen == 0) { { var result = (*obj).ToString(); Puerts.PuertsDLL.ReturnString(isolate, info, result); return; } } if (paramLen == 1) { var argHelper0 = new Puerts.ArgumentHelper((int)data, isolate, info, 0); if (argHelper0.IsMatch(Puerts.JsValueType.NullOrUndefined | Puerts.JsValueType.String, null, false, false)) { var Arg0 = argHelper0.GetString(false); var result = (*obj).ToString(Arg0); Puerts.PuertsDLL.ReturnString(isolate, info, result); return; } } if (paramLen == 2) { var argHelper0 = new Puerts.ArgumentHelper((int)data, isolate, info, 0); var argHelper1 = new Puerts.ArgumentHelper((int)data, isolate, info, 1); if (argHelper0.IsMatch(Puerts.JsValueType.NullOrUndefined | Puerts.JsValueType.String, null, false, false) && argHelper1.IsMatch(Puerts.JsValueType.NullOrUndefined | Puerts.JsValueType.NativeObject, typeof(System.IFormatProvider), false, false)) { var Arg0 = argHelper0.GetString(false); var Arg1 = argHelper1.Get<System.IFormatProvider>(false); var result = (*obj).ToString(Arg0, Arg1); Puerts.PuertsDLL.ReturnString(isolate, info, result); return; } } Puerts.PuertsDLL.ThrowException(isolate, "invalid arguments to ToString"); } catch (Exception e) { Puerts.PuertsDLL.ThrowException(isolate, "c# exception:" + e.Message + ",stack:" + e.StackTrace); } } [Puerts.MonoPInvokeCallback(typeof(Puerts.V8FunctionCallback))] unsafe private static void G_rotation(IntPtr isolate, IntPtr info, IntPtr self, int paramLen, long data) { try { var obj = (UnityEngine.Matrix4x4*)self; var result = (*obj).rotation; Puerts.ResultHelper.Set((int)data, isolate, info, result); } catch (Exception e) { Puerts.PuertsDLL.ThrowException(isolate, "c# exception:" + e.Message + ",stack:" + e.StackTrace); } } [Puerts.MonoPInvokeCallback(typeof(Puerts.V8FunctionCallback))] unsafe private static void G_lossyScale(IntPtr isolate, IntPtr info, IntPtr self, int paramLen, long data) { try { var obj = (UnityEngine.Matrix4x4*)self; var result = (*obj).lossyScale; Puerts.ResultHelper.Set((int)data, isolate, info, result); } catch (Exception e) { Puerts.PuertsDLL.ThrowException(isolate, "c# exception:" + e.Message + ",stack:" + e.StackTrace); } } [Puerts.MonoPInvokeCallback(typeof(Puerts.V8FunctionCallback))] unsafe private static void G_isIdentity(IntPtr isolate, IntPtr info, IntPtr self, int paramLen, long data) { try { var obj = (UnityEngine.Matrix4x4*)self; var result = (*obj).isIdentity; Puerts.PuertsDLL.ReturnBoolean(isolate, info, result); } catch (Exception e) { Puerts.PuertsDLL.ThrowException(isolate, "c# exception:" + e.Message + ",stack:" + e.StackTrace); } } [Puerts.MonoPInvokeCallback(typeof(Puerts.V8FunctionCallback))] unsafe private static void G_determinant(IntPtr isolate, IntPtr info, IntPtr self, int paramLen, long data) { try { var obj = (UnityEngine.Matrix4x4*)self; var result = (*obj).determinant; Puerts.PuertsDLL.ReturnNumber(isolate, info, result); } catch (Exception e) { Puerts.PuertsDLL.ThrowException(isolate, "c# exception:" + e.Message + ",stack:" + e.StackTrace); } } [Puerts.MonoPInvokeCallback(typeof(Puerts.V8FunctionCallback))] unsafe private static void G_decomposeProjection(IntPtr isolate, IntPtr info, IntPtr self, int paramLen, long data) { try { var obj = (UnityEngine.Matrix4x4*)self; var result = (*obj).decomposeProjection; Puerts.ResultHelper.Set((int)data, isolate, info, result); } catch (Exception e) { Puerts.PuertsDLL.ThrowException(isolate, "c# exception:" + e.Message + ",stack:" + e.StackTrace); } } [Puerts.MonoPInvokeCallback(typeof(Puerts.V8FunctionCallback))] unsafe private static void G_inverse(IntPtr isolate, IntPtr info, IntPtr self, int paramLen, long data) { try { var obj = (UnityEngine.Matrix4x4*)self; var result = (*obj).inverse; Puerts.ResultHelper.Set((int)data, isolate, info, result); } catch (Exception e) { Puerts.PuertsDLL.ThrowException(isolate, "c# exception:" + e.Message + ",stack:" + e.StackTrace); } } [Puerts.MonoPInvokeCallback(typeof(Puerts.V8FunctionCallback))] unsafe private static void G_transpose(IntPtr isolate, IntPtr info, IntPtr self, int paramLen, long data) { try { var obj = (UnityEngine.Matrix4x4*)self; var result = (*obj).transpose; Puerts.ResultHelper.Set((int)data, isolate, info, result); } catch (Exception e) { Puerts.PuertsDLL.ThrowException(isolate, "c# exception:" + e.Message + ",stack:" + e.StackTrace); } } [Puerts.MonoPInvokeCallback(typeof(Puerts.V8FunctionCallback))] private static void G_zero(IntPtr isolate, IntPtr info, IntPtr self, int paramLen, long data) { try { var result = UnityEngine.Matrix4x4.zero; Puerts.ResultHelper.Set((int)data, isolate, info, result); } catch (Exception e) { Puerts.PuertsDLL.ThrowException(isolate, "c# exception:" + e.Message + ",stack:" + e.StackTrace); } } [Puerts.MonoPInvokeCallback(typeof(Puerts.V8FunctionCallback))] private static void G_identity(IntPtr isolate, IntPtr info, IntPtr self, int paramLen, long data) { try { var result = UnityEngine.Matrix4x4.identity; Puerts.ResultHelper.Set((int)data, isolate, info, result); } catch (Exception e) { Puerts.PuertsDLL.ThrowException(isolate, "c# exception:" + e.Message + ",stack:" + e.StackTrace); } } [Puerts.MonoPInvokeCallback(typeof(Puerts.V8FunctionCallback))] unsafe private static void G_m00(IntPtr isolate, IntPtr info, IntPtr self, int paramLen, long data) { try { var obj = (UnityEngine.Matrix4x4*)self; var result = (*obj).m00; Puerts.PuertsDLL.ReturnNumber(isolate, info, result); } catch (Exception e) { Puerts.PuertsDLL.ThrowException(isolate, "c# exception:" + e.Message + ",stack:" + e.StackTrace); } } [Puerts.MonoPInvokeCallback(typeof(Puerts.V8FunctionCallback))] unsafe private static void S_m00(IntPtr isolate, IntPtr info, IntPtr self, int paramLen, long data) { try { var obj = (UnityEngine.Matrix4x4*)self; var argHelper = new Puerts.ArgumentHelper((int)data, isolate, info, 0); (*obj).m00 = argHelper.GetFloat(false); } catch (Exception e) { Puerts.PuertsDLL.ThrowException(isolate, "c# exception:" + e.Message + ",stack:" + e.StackTrace); } } [Puerts.MonoPInvokeCallback(typeof(Puerts.V8FunctionCallback))] unsafe private static void G_m10(IntPtr isolate, IntPtr info, IntPtr self, int paramLen, long data) { try { var obj = (UnityEngine.Matrix4x4*)self; var result = (*obj).m10; Puerts.PuertsDLL.ReturnNumber(isolate, info, result); } catch (Exception e) { Puerts.PuertsDLL.ThrowException(isolate, "c# exception:" + e.Message + ",stack:" + e.StackTrace); } } [Puerts.MonoPInvokeCallback(typeof(Puerts.V8FunctionCallback))] unsafe private static void S_m10(IntPtr isolate, IntPtr info, IntPtr self, int paramLen, long data) { try { var obj = (UnityEngine.Matrix4x4*)self; var argHelper = new Puerts.ArgumentHelper((int)data, isolate, info, 0); (*obj).m10 = argHelper.GetFloat(false); } catch (Exception e) { Puerts.PuertsDLL.ThrowException(isolate, "c# exception:" + e.Message + ",stack:" + e.StackTrace); } } [Puerts.MonoPInvokeCallback(typeof(Puerts.V8FunctionCallback))] unsafe private static void G_m20(IntPtr isolate, IntPtr info, IntPtr self, int paramLen, long data) { try { var obj = (UnityEngine.Matrix4x4*)self; var result = (*obj).m20; Puerts.PuertsDLL.ReturnNumber(isolate, info, result); } catch (Exception e) { Puerts.PuertsDLL.ThrowException(isolate, "c# exception:" + e.Message + ",stack:" + e.StackTrace); } } [Puerts.MonoPInvokeCallback(typeof(Puerts.V8FunctionCallback))] unsafe private static void S_m20(IntPtr isolate, IntPtr info, IntPtr self, int paramLen, long data) { try { var obj = (UnityEngine.Matrix4x4*)self; var argHelper = new Puerts.ArgumentHelper((int)data, isolate, info, 0); (*obj).m20 = argHelper.GetFloat(false); } catch (Exception e) { Puerts.PuertsDLL.ThrowException(isolate, "c# exception:" + e.Message + ",stack:" + e.StackTrace); } } [Puerts.MonoPInvokeCallback(typeof(Puerts.V8FunctionCallback))] unsafe private static void G_m30(IntPtr isolate, IntPtr info, IntPtr self, int paramLen, long data) { try { var obj = (UnityEngine.Matrix4x4*)self; var result = (*obj).m30; Puerts.PuertsDLL.ReturnNumber(isolate, info, result); } catch (Exception e) { Puerts.PuertsDLL.ThrowException(isolate, "c# exception:" + e.Message + ",stack:" + e.StackTrace); } } [Puerts.MonoPInvokeCallback(typeof(Puerts.V8FunctionCallback))] unsafe private static void S_m30(IntPtr isolate, IntPtr info, IntPtr self, int paramLen, long data) { try { var obj = (UnityEngine.Matrix4x4*)self; var argHelper = new Puerts.ArgumentHelper((int)data, isolate, info, 0); (*obj).m30 = argHelper.GetFloat(false); } catch (Exception e) { Puerts.PuertsDLL.ThrowException(isolate, "c# exception:" + e.Message + ",stack:" + e.StackTrace); } } [Puerts.MonoPInvokeCallback(typeof(Puerts.V8FunctionCallback))] unsafe private static void G_m01(IntPtr isolate, IntPtr info, IntPtr self, int paramLen, long data) { try { var obj = (UnityEngine.Matrix4x4*)self; var result = (*obj).m01; Puerts.PuertsDLL.ReturnNumber(isolate, info, result); } catch (Exception e) { Puerts.PuertsDLL.ThrowException(isolate, "c# exception:" + e.Message + ",stack:" + e.StackTrace); } } [Puerts.MonoPInvokeCallback(typeof(Puerts.V8FunctionCallback))] unsafe private static void S_m01(IntPtr isolate, IntPtr info, IntPtr self, int paramLen, long data) { try { var obj = (UnityEngine.Matrix4x4*)self; var argHelper = new Puerts.ArgumentHelper((int)data, isolate, info, 0); (*obj).m01 = argHelper.GetFloat(false); } catch (Exception e) { Puerts.PuertsDLL.ThrowException(isolate, "c# exception:" + e.Message + ",stack:" + e.StackTrace); } } [Puerts.MonoPInvokeCallback(typeof(Puerts.V8FunctionCallback))] unsafe private static void G_m11(IntPtr isolate, IntPtr info, IntPtr self, int paramLen, long data) { try { var obj = (UnityEngine.Matrix4x4*)self; var result = (*obj).m11; Puerts.PuertsDLL.ReturnNumber(isolate, info, result); } catch (Exception e) { Puerts.PuertsDLL.ThrowException(isolate, "c# exception:" + e.Message + ",stack:" + e.StackTrace); } } [Puerts.MonoPInvokeCallback(typeof(Puerts.V8FunctionCallback))] unsafe private static void S_m11(IntPtr isolate, IntPtr info, IntPtr self, int paramLen, long data) { try { var obj = (UnityEngine.Matrix4x4*)self; var argHelper = new Puerts.ArgumentHelper((int)data, isolate, info, 0); (*obj).m11 = argHelper.GetFloat(false); } catch (Exception e) { Puerts.PuertsDLL.ThrowException(isolate, "c# exception:" + e.Message + ",stack:" + e.StackTrace); } } [Puerts.MonoPInvokeCallback(typeof(Puerts.V8FunctionCallback))] unsafe private static void G_m21(IntPtr isolate, IntPtr info, IntPtr self, int paramLen, long data) { try { var obj = (UnityEngine.Matrix4x4*)self; var result = (*obj).m21; Puerts.PuertsDLL.ReturnNumber(isolate, info, result); } catch (Exception e) { Puerts.PuertsDLL.ThrowException(isolate, "c# exception:" + e.Message + ",stack:" + e.StackTrace); } } [Puerts.MonoPInvokeCallback(typeof(Puerts.V8FunctionCallback))] unsafe private static void S_m21(IntPtr isolate, IntPtr info, IntPtr self, int paramLen, long data) { try { var obj = (UnityEngine.Matrix4x4*)self; var argHelper = new Puerts.ArgumentHelper((int)data, isolate, info, 0); (*obj).m21 = argHelper.GetFloat(false); } catch (Exception e) { Puerts.PuertsDLL.ThrowException(isolate, "c# exception:" + e.Message + ",stack:" + e.StackTrace); } } [Puerts.MonoPInvokeCallback(typeof(Puerts.V8FunctionCallback))] unsafe private static void G_m31(IntPtr isolate, IntPtr info, IntPtr self, int paramLen, long data) { try { var obj = (UnityEngine.Matrix4x4*)self; var result = (*obj).m31; Puerts.PuertsDLL.ReturnNumber(isolate, info, result); } catch (Exception e) { Puerts.PuertsDLL.ThrowException(isolate, "c# exception:" + e.Message + ",stack:" + e.StackTrace); } } [Puerts.MonoPInvokeCallback(typeof(Puerts.V8FunctionCallback))] unsafe private static void S_m31(IntPtr isolate, IntPtr info, IntPtr self, int paramLen, long data) { try { var obj = (UnityEngine.Matrix4x4*)self; var argHelper = new Puerts.ArgumentHelper((int)data, isolate, info, 0); (*obj).m31 = argHelper.GetFloat(false); } catch (Exception e) { Puerts.PuertsDLL.ThrowException(isolate, "c# exception:" + e.Message + ",stack:" + e.StackTrace); } } [Puerts.MonoPInvokeCallback(typeof(Puerts.V8FunctionCallback))] unsafe private static void G_m02(IntPtr isolate, IntPtr info, IntPtr self, int paramLen, long data) { try { var obj = (UnityEngine.Matrix4x4*)self; var result = (*obj).m02; Puerts.PuertsDLL.ReturnNumber(isolate, info, result); } catch (Exception e) { Puerts.PuertsDLL.ThrowException(isolate, "c# exception:" + e.Message + ",stack:" + e.StackTrace); } } [Puerts.MonoPInvokeCallback(typeof(Puerts.V8FunctionCallback))] unsafe private static void S_m02(IntPtr isolate, IntPtr info, IntPtr self, int paramLen, long data) { try { var obj = (UnityEngine.Matrix4x4*)self; var argHelper = new Puerts.ArgumentHelper((int)data, isolate, info, 0); (*obj).m02 = argHelper.GetFloat(false); } catch (Exception e) { Puerts.PuertsDLL.ThrowException(isolate, "c# exception:" + e.Message + ",stack:" + e.StackTrace); } } [Puerts.MonoPInvokeCallback(typeof(Puerts.V8FunctionCallback))] unsafe private static void G_m12(IntPtr isolate, IntPtr info, IntPtr self, int paramLen, long data) { try { var obj = (UnityEngine.Matrix4x4*)self; var result = (*obj).m12; Puerts.PuertsDLL.ReturnNumber(isolate, info, result); } catch (Exception e) { Puerts.PuertsDLL.ThrowException(isolate, "c# exception:" + e.Message + ",stack:" + e.StackTrace); } } [Puerts.MonoPInvokeCallback(typeof(Puerts.V8FunctionCallback))] unsafe private static void S_m12(IntPtr isolate, IntPtr info, IntPtr self, int paramLen, long data) { try { var obj = (UnityEngine.Matrix4x4*)self; var argHelper = new Puerts.ArgumentHelper((int)data, isolate, info, 0); (*obj).m12 = argHelper.GetFloat(false); } catch (Exception e) { Puerts.PuertsDLL.ThrowException(isolate, "c# exception:" + e.Message + ",stack:" + e.StackTrace); } } [Puerts.MonoPInvokeCallback(typeof(Puerts.V8FunctionCallback))] unsafe private static void G_m22(IntPtr isolate, IntPtr info, IntPtr self, int paramLen, long data) { try { var obj = (UnityEngine.Matrix4x4*)self; var result = (*obj).m22; Puerts.PuertsDLL.ReturnNumber(isolate, info, result); } catch (Exception e) { Puerts.PuertsDLL.ThrowException(isolate, "c# exception:" + e.Message + ",stack:" + e.StackTrace); } } [Puerts.MonoPInvokeCallback(typeof(Puerts.V8FunctionCallback))] unsafe private static void S_m22(IntPtr isolate, IntPtr info, IntPtr self, int paramLen, long data) { try { var obj = (UnityEngine.Matrix4x4*)self; var argHelper = new Puerts.ArgumentHelper((int)data, isolate, info, 0); (*obj).m22 = argHelper.GetFloat(false); } catch (Exception e) { Puerts.PuertsDLL.ThrowException(isolate, "c# exception:" + e.Message + ",stack:" + e.StackTrace); } } [Puerts.MonoPInvokeCallback(typeof(Puerts.V8FunctionCallback))] unsafe private static void G_m32(IntPtr isolate, IntPtr info, IntPtr self, int paramLen, long data) { try { var obj = (UnityEngine.Matrix4x4*)self; var result = (*obj).m32; Puerts.PuertsDLL.ReturnNumber(isolate, info, result); } catch (Exception e) { Puerts.PuertsDLL.ThrowException(isolate, "c# exception:" + e.Message + ",stack:" + e.StackTrace); } } [Puerts.MonoPInvokeCallback(typeof(Puerts.V8FunctionCallback))] unsafe private static void S_m32(IntPtr isolate, IntPtr info, IntPtr self, int paramLen, long data) { try { var obj = (UnityEngine.Matrix4x4*)self; var argHelper = new Puerts.ArgumentHelper((int)data, isolate, info, 0); (*obj).m32 = argHelper.GetFloat(false); } catch (Exception e) { Puerts.PuertsDLL.ThrowException(isolate, "c# exception:" + e.Message + ",stack:" + e.StackTrace); } } [Puerts.MonoPInvokeCallback(typeof(Puerts.V8FunctionCallback))] unsafe private static void G_m03(IntPtr isolate, IntPtr info, IntPtr self, int paramLen, long data) { try { var obj = (UnityEngine.Matrix4x4*)self; var result = (*obj).m03; Puerts.PuertsDLL.ReturnNumber(isolate, info, result); } catch (Exception e) { Puerts.PuertsDLL.ThrowException(isolate, "c# exception:" + e.Message + ",stack:" + e.StackTrace); } } [Puerts.MonoPInvokeCallback(typeof(Puerts.V8FunctionCallback))] unsafe private static void S_m03(IntPtr isolate, IntPtr info, IntPtr self, int paramLen, long data) { try { var obj = (UnityEngine.Matrix4x4*)self; var argHelper = new Puerts.ArgumentHelper((int)data, isolate, info, 0); (*obj).m03 = argHelper.GetFloat(false); } catch (Exception e) { Puerts.PuertsDLL.ThrowException(isolate, "c# exception:" + e.Message + ",stack:" + e.StackTrace); } } [Puerts.MonoPInvokeCallback(typeof(Puerts.V8FunctionCallback))] unsafe private static void G_m13(IntPtr isolate, IntPtr info, IntPtr self, int paramLen, long data) { try { var obj = (UnityEngine.Matrix4x4*)self; var result = (*obj).m13; Puerts.PuertsDLL.ReturnNumber(isolate, info, result); } catch (Exception e) { Puerts.PuertsDLL.ThrowException(isolate, "c# exception:" + e.Message + ",stack:" + e.StackTrace); } } [Puerts.MonoPInvokeCallback(typeof(Puerts.V8FunctionCallback))] unsafe private static void S_m13(IntPtr isolate, IntPtr info, IntPtr self, int paramLen, long data) { try { var obj = (UnityEngine.Matrix4x4*)self; var argHelper = new Puerts.ArgumentHelper((int)data, isolate, info, 0); (*obj).m13 = argHelper.GetFloat(false); } catch (Exception e) { Puerts.PuertsDLL.ThrowException(isolate, "c# exception:" + e.Message + ",stack:" + e.StackTrace); } } [Puerts.MonoPInvokeCallback(typeof(Puerts.V8FunctionCallback))] unsafe private static void G_m23(IntPtr isolate, IntPtr info, IntPtr self, int paramLen, long data) { try { var obj = (UnityEngine.Matrix4x4*)self; var result = (*obj).m23; Puerts.PuertsDLL.ReturnNumber(isolate, info, result); } catch (Exception e) { Puerts.PuertsDLL.ThrowException(isolate, "c# exception:" + e.Message + ",stack:" + e.StackTrace); } } [Puerts.MonoPInvokeCallback(typeof(Puerts.V8FunctionCallback))] unsafe private static void S_m23(IntPtr isolate, IntPtr info, IntPtr self, int paramLen, long data) { try { var obj = (UnityEngine.Matrix4x4*)self; var argHelper = new Puerts.ArgumentHelper((int)data, isolate, info, 0); (*obj).m23 = argHelper.GetFloat(false); } catch (Exception e) { Puerts.PuertsDLL.ThrowException(isolate, "c# exception:" + e.Message + ",stack:" + e.StackTrace); } } [Puerts.MonoPInvokeCallback(typeof(Puerts.V8FunctionCallback))] unsafe private static void G_m33(IntPtr isolate, IntPtr info, IntPtr self, int paramLen, long data) { try { var obj = (UnityEngine.Matrix4x4*)self; var result = (*obj).m33; Puerts.PuertsDLL.ReturnNumber(isolate, info, result); } catch (Exception e) { Puerts.PuertsDLL.ThrowException(isolate, "c# exception:" + e.Message + ",stack:" + e.StackTrace); } } [Puerts.MonoPInvokeCallback(typeof(Puerts.V8FunctionCallback))] unsafe private static void S_m33(IntPtr isolate, IntPtr info, IntPtr self, int paramLen, long data) { try { var obj = (UnityEngine.Matrix4x4*)self; var argHelper = new Puerts.ArgumentHelper((int)data, isolate, info, 0); (*obj).m33 = argHelper.GetFloat(false); } catch (Exception e) { Puerts.PuertsDLL.ThrowException(isolate, "c# exception:" + e.Message + ",stack:" + e.StackTrace); } } [Puerts.MonoPInvokeCallback(typeof(Puerts.V8FunctionCallback))] unsafe private static void GetItem(IntPtr isolate, IntPtr info, IntPtr self, int paramLen, long data) { try { var obj = (UnityEngine.Matrix4x4*)self; var keyHelper = new Puerts.ArgumentHelper((int)data, isolate, info, 0); if (keyHelper.IsMatch(Puerts.JsValueType.Number, null, false, false)) { var key = keyHelper.GetInt32(false); var result = (*obj)[key]; Puerts.PuertsDLL.ReturnNumber(isolate, info, result); return; } } catch (Exception e) { Puerts.PuertsDLL.ThrowException(isolate, "c# exception:" + e.Message + ",stack:" + e.StackTrace); } } [Puerts.MonoPInvokeCallback(typeof(Puerts.V8FunctionCallback))] unsafe private static void SetItem(IntPtr isolate, IntPtr info, IntPtr self, int paramLen, long data) { try { var obj = (UnityEngine.Matrix4x4*)self; var keyHelper = new Puerts.ArgumentHelper((int)data, isolate, info, 0); var valueHelper = new Puerts.ArgumentHelper((int)data, isolate, info, 1); if (keyHelper.IsMatch(Puerts.JsValueType.Number, null, false, false)) { var key = keyHelper.GetInt32(false); (*obj)[key] = valueHelper.GetFloat(false); return; } } catch (Exception e) { Puerts.PuertsDLL.ThrowException(isolate, "c# exception:" + e.Message + ",stack:" + e.StackTrace); } } [Puerts.MonoPInvokeCallback(typeof(Puerts.V8FunctionCallback))] private static void O_op_Multiply(IntPtr isolate, IntPtr info, IntPtr self, int paramLen, long data) { try { if (paramLen == 2) { var argHelper0 = new Puerts.ArgumentHelper((int)data, isolate, info, 0); var argHelper1 = new Puerts.ArgumentHelper((int)data, isolate, info, 1); if (argHelper0.IsMatch(Puerts.JsValueType.NativeObject, typeof(UnityEngine.Matrix4x4), false, false) && argHelper1.IsMatch(Puerts.JsValueType.NativeObject, typeof(UnityEngine.Matrix4x4), false, false)) { var arg0 = argHelper0.Get<UnityEngine.Matrix4x4>(false); var arg1 = argHelper1.Get<UnityEngine.Matrix4x4>(false); var result = arg0 * arg1; Puerts.ResultHelper.Set((int)data, isolate, info, result); return; } if (argHelper0.IsMatch(Puerts.JsValueType.NativeObject, typeof(UnityEngine.Matrix4x4), false, false) && argHelper1.IsMatch(Puerts.JsValueType.NativeObject, typeof(UnityEngine.Vector4), false, false)) { var arg0 = argHelper0.Get<UnityEngine.Matrix4x4>(false); var arg1 = argHelper1.Get<UnityEngine.Vector4>(false); var result = arg0 * arg1; Puerts.ResultHelper.Set((int)data, isolate, info, result); return; } } Puerts.PuertsDLL.ThrowException(isolate, "invalid arguments to op_Multiply"); } catch (Exception e) { Puerts.PuertsDLL.ThrowException(isolate, "c# exception:" + e.Message + ",stack:" + e.StackTrace); } } [Puerts.MonoPInvokeCallback(typeof(Puerts.V8FunctionCallback))] private static void O_op_Equality(IntPtr isolate, IntPtr info, IntPtr self, int paramLen, long data) { try { { var argHelper0 = new Puerts.ArgumentHelper((int)data, isolate, info, 0); var argHelper1 = new Puerts.ArgumentHelper((int)data, isolate, info, 1); { var arg0 = argHelper0.Get<UnityEngine.Matrix4x4>(false); var arg1 = argHelper1.Get<UnityEngine.Matrix4x4>(false); var result = arg0 == arg1; Puerts.PuertsDLL.ReturnBoolean(isolate, info, result); } } } catch (Exception e) { Puerts.PuertsDLL.ThrowException(isolate, "c# exception:" + e.Message + ",stack:" + e.StackTrace); } } [Puerts.MonoPInvokeCallback(typeof(Puerts.V8FunctionCallback))] private static void O_op_Inequality(IntPtr isolate, IntPtr info, IntPtr self, int paramLen, long data) { try { { var argHelper0 = new Puerts.ArgumentHelper((int)data, isolate, info, 0); var argHelper1 = new Puerts.ArgumentHelper((int)data, isolate, info, 1); { var arg0 = argHelper0.Get<UnityEngine.Matrix4x4>(false); var arg1 = argHelper1.Get<UnityEngine.Matrix4x4>(false); var result = arg0 != arg1; Puerts.PuertsDLL.ReturnBoolean(isolate, info, result); } } } catch (Exception e) { Puerts.PuertsDLL.ThrowException(isolate, "c# exception:" + e.Message + ",stack:" + e.StackTrace); } } public static Puerts.TypeRegisterInfo GetRegisterInfo() { return new Puerts.TypeRegisterInfo() { BlittableCopy = true, Constructor = Constructor, Methods = new System.Collections.Generic.Dictionary<Puerts.MethodKey, Puerts.V8FunctionCallback>() { { new Puerts.MethodKey {Name = "ValidTRS", IsStatic = false}, M_ValidTRS }, { new Puerts.MethodKey {Name = "Determinant", IsStatic = true}, F_Determinant }, { new Puerts.MethodKey {Name = "TRS", IsStatic = true}, F_TRS }, { new Puerts.MethodKey {Name = "SetTRS", IsStatic = false}, M_SetTRS }, { new Puerts.MethodKey {Name = "Inverse3DAffine", IsStatic = true}, F_Inverse3DAffine }, { new Puerts.MethodKey {Name = "Inverse", IsStatic = true}, F_Inverse }, { new Puerts.MethodKey {Name = "Transpose", IsStatic = true}, F_Transpose }, { new Puerts.MethodKey {Name = "Ortho", IsStatic = true}, F_Ortho }, { new Puerts.MethodKey {Name = "Perspective", IsStatic = true}, F_Perspective }, { new Puerts.MethodKey {Name = "LookAt", IsStatic = true}, F_LookAt }, { new Puerts.MethodKey {Name = "Frustum", IsStatic = true}, F_Frustum }, { new Puerts.MethodKey {Name = "GetHashCode", IsStatic = false}, M_GetHashCode }, { new Puerts.MethodKey {Name = "Equals", IsStatic = false}, M_Equals }, { new Puerts.MethodKey {Name = "GetColumn", IsStatic = false}, M_GetColumn }, { new Puerts.MethodKey {Name = "GetRow", IsStatic = false}, M_GetRow }, { new Puerts.MethodKey {Name = "SetColumn", IsStatic = false}, M_SetColumn }, { new Puerts.MethodKey {Name = "SetRow", IsStatic = false}, M_SetRow }, { new Puerts.MethodKey {Name = "MultiplyPoint", IsStatic = false}, M_MultiplyPoint }, { new Puerts.MethodKey {Name = "MultiplyPoint3x4", IsStatic = false}, M_MultiplyPoint3x4 }, { new Puerts.MethodKey {Name = "MultiplyVector", IsStatic = false}, M_MultiplyVector }, { new Puerts.MethodKey {Name = "TransformPlane", IsStatic = false}, M_TransformPlane }, { new Puerts.MethodKey {Name = "Scale", IsStatic = true}, F_Scale }, { new Puerts.MethodKey {Name = "Translate", IsStatic = true}, F_Translate }, { new Puerts.MethodKey {Name = "Rotate", IsStatic = true}, F_Rotate }, { new Puerts.MethodKey {Name = "ToString", IsStatic = false}, M_ToString }, { new Puerts.MethodKey {Name = "get_Item", IsStatic = false}, GetItem } , { new Puerts.MethodKey {Name = "set_Item", IsStatic = false}, SetItem } , { new Puerts.MethodKey {Name = "op_Multiply", IsStatic = true}, O_op_Multiply }, { new Puerts.MethodKey {Name = "op_Equality", IsStatic = true}, O_op_Equality }, { new Puerts.MethodKey {Name = "op_Inequality", IsStatic = true}, O_op_Inequality } }, Properties = new System.Collections.Generic.Dictionary<string, Puerts.PropertyRegisterInfo>() { {"rotation", new Puerts.PropertyRegisterInfo(){ IsStatic = false, Getter = G_rotation, Setter = null} }, {"lossyScale", new Puerts.PropertyRegisterInfo(){ IsStatic = false, Getter = G_lossyScale, Setter = null} }, {"isIdentity", new Puerts.PropertyRegisterInfo(){ IsStatic = false, Getter = G_isIdentity, Setter = null} }, {"determinant", new Puerts.PropertyRegisterInfo(){ IsStatic = false, Getter = G_determinant, Setter = null} }, {"decomposeProjection", new Puerts.PropertyRegisterInfo(){ IsStatic = false, Getter = G_decomposeProjection, Setter = null} }, {"inverse", new Puerts.PropertyRegisterInfo(){ IsStatic = false, Getter = G_inverse, Setter = null} }, {"transpose", new Puerts.PropertyRegisterInfo(){ IsStatic = false, Getter = G_transpose, Setter = null} }, {"zero", new Puerts.PropertyRegisterInfo(){ IsStatic = true, Getter = G_zero, Setter = null} }, {"identity", new Puerts.PropertyRegisterInfo(){ IsStatic = true, Getter = G_identity, Setter = null} }, {"m00", new Puerts.PropertyRegisterInfo(){ IsStatic = false, Getter = G_m00, Setter = S_m00} }, {"m10", new Puerts.PropertyRegisterInfo(){ IsStatic = false, Getter = G_m10, Setter = S_m10} }, {"m20", new Puerts.PropertyRegisterInfo(){ IsStatic = false, Getter = G_m20, Setter = S_m20} }, {"m30", new Puerts.PropertyRegisterInfo(){ IsStatic = false, Getter = G_m30, Setter = S_m30} }, {"m01", new Puerts.PropertyRegisterInfo(){ IsStatic = false, Getter = G_m01, Setter = S_m01} }, {"m11", new Puerts.PropertyRegisterInfo(){ IsStatic = false, Getter = G_m11, Setter = S_m11} }, {"m21", new Puerts.PropertyRegisterInfo(){ IsStatic = false, Getter = G_m21, Setter = S_m21} }, {"m31", new Puerts.PropertyRegisterInfo(){ IsStatic = false, Getter = G_m31, Setter = S_m31} }, {"m02", new Puerts.PropertyRegisterInfo(){ IsStatic = false, Getter = G_m02, Setter = S_m02} }, {"m12", new Puerts.PropertyRegisterInfo(){ IsStatic = false, Getter = G_m12, Setter = S_m12} }, {"m22", new Puerts.PropertyRegisterInfo(){ IsStatic = false, Getter = G_m22, Setter = S_m22} }, {"m32", new Puerts.PropertyRegisterInfo(){ IsStatic = false, Getter = G_m32, Setter = S_m32} }, {"m03", new Puerts.PropertyRegisterInfo(){ IsStatic = false, Getter = G_m03, Setter = S_m03} }, {"m13", new Puerts.PropertyRegisterInfo(){ IsStatic = false, Getter = G_m13, Setter = S_m13} }, {"m23", new Puerts.PropertyRegisterInfo(){ IsStatic = false, Getter = G_m23, Setter = S_m23} }, {"m33", new Puerts.PropertyRegisterInfo(){ IsStatic = false, Getter = G_m33, Setter = S_m33} } }, LazyMethods = new System.Collections.Generic.Dictionary<Puerts.MethodKey, Puerts.V8FunctionCallback>() { }, LazyProperties = new System.Collections.Generic.Dictionary<string, Puerts.PropertyRegisterInfo>() { } }; } unsafe private static UnityEngine.Matrix4x4 StaticGetter(int jsEnvIdx, IntPtr isolate, Puerts.IGetValueFromJs getValueApi, IntPtr value, bool isByRef) { UnityEngine.Matrix4x4* result = (UnityEngine.Matrix4x4*)getValueApi.GetNativeObject(isolate, value, isByRef); return result == null ? default(UnityEngine.Matrix4x4) : *result; } unsafe private static void StaticSetter(int jsEnvIdx, IntPtr isolate, Puerts.ISetValueToJs setValueApi, IntPtr value, UnityEngine.Matrix4x4 val) { HeapValue = val; fixed (UnityEngine.Matrix4x4* result = &HeapValue) { var typeId = Puerts.JsEnv.jsEnvs[jsEnvIdx].GetTypeId(typeof(UnityEngine.Matrix4x4)); setValueApi.SetNativeObject(isolate, value, typeId, new IntPtr(result)); } } public static void InitBlittableCopy(Puerts.JsEnv jsEnv) { Puerts.StaticTranslate<UnityEngine.Matrix4x4>.ReplaceDefault(StaticSetter, StaticGetter); int jsEnvIdx = jsEnv.Index; jsEnv.RegisterGeneralGetSet(typeof(UnityEngine.Matrix4x4), (IntPtr isolate, Puerts.IGetValueFromJs getValueApi, IntPtr value, bool isByRef) => { return StaticGetter(jsEnvIdx, isolate, getValueApi, value, isByRef); }, (IntPtr isolate, Puerts.ISetValueToJs setValueApi, IntPtr value, object obj) => { StaticSetter(jsEnvIdx, isolate, setValueApi, value, (UnityEngine.Matrix4x4)obj); }); } } }
39.440248
435
0.477701
[ "MIT" ]
Kyle2Chan/KM
Assets/Scripts/Gen/UnityEngine_Matrix4x4_Wrap.cs
76,240
C#
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using System.IO; using System.Xml; namespace DatAdmin { public partial class AddQueryToFavoriteForm : FormEx { XmlDocument m_context; IVirtualFile m_file; QueryDesignFrame m_designFrame; string m_queryCode; public AddQueryToFavoriteForm(XmlDocument context, IVirtualFile file, QueryDesignFrame designFrame, string queryCode) { InitializeComponent(); m_context = context; m_file = file; m_designFrame = designFrame; m_queryCode = queryCode; rbtDesign.Enabled = designFrame != null && designFrame.IsDesign; rbtLinkToFile.Enabled = file != null && file.DiskPath != null; addToFavoritesFrame1.FavoriteName = rbtLinkToFile.Enabled ? Path.GetFileNameWithoutExtension(file.DiskPath) : "SQL"; ; rbtExecute.Enabled = context != null; } private void UpdateFavorite() { if (rbtDesign.Checked) { var des = XmlTool.CreateDocument("Design"); m_designFrame.Save(des.DocumentElement); addToFavoritesFrame1.Favorite = new OpenQueryDesignFavorite { Design = des, Context = m_context }; } else { if (rbtExecute.Checked) { if (rbtQueryText.Checked) { addToFavoritesFrame1.Favorite = new ExecuteQueryCodeFavorite { Query = m_queryCode, Context = m_context }; } if (rbtLinkToFile.Checked) { addToFavoritesFrame1.Favorite = new ExecuteQueryFileFavorite { QueryFile = m_file.DiskPath, Context = m_context }; } } if (rbtOpen.Checked) { if (rbtQueryText.Checked) { addToFavoritesFrame1.Favorite = new OpenQueryCodeFavorite { Query = m_queryCode, Context = m_context }; } if (rbtLinkToFile.Checked) { addToFavoritesFrame1.Favorite = new OpenQueryFileFavorite { QueryFile = m_file.DiskPath, Context = m_context }; } } } } public static bool Run(XmlDocument context, IVirtualFile file, QueryDesignFrame designFrame, string queryCode, bool selectedDesign) { var win = new AddQueryToFavoriteForm(context, file, designFrame, queryCode); if (selectedDesign && win.rbtDesign.Enabled) win.rbtDesign.Checked = true; return AddToFavoriteForm.RunLoop(win, win.addToFavoritesFrame1, win.UpdateFavorite); } } public abstract class QueryContextFavorite : FavoriteBase, IFavoriteWithSql { public XmlDocument Context { get; set; } public override void SaveToXml(XmlElement xml) { base.SaveToXml(xml); if (Context != null) xml.AppendChild(xml.OwnerDocument.ImportNode(Context.DocumentElement, true)); } public override void LoadFromXml(XmlElement xml) { base.LoadFromXml(xml); var cnt = xml.FindElement("Context"); if (cnt != null) { Context = new XmlDocument(); Context.AppendChild(Context.ImportNode(cnt, true)); } } protected virtual bool IsAvailableSql() { return true; } public override void GetWidgets(List<IWidget> res) { base.GetWidgets(res); if (IsAvailableSql()) res.Add(new FavoriteSqlWidget()); } #region IFavoriteWithSql Members public virtual string LoadSql() { return ""; } public virtual ISqlDialect GetDialect() { try { var dbx = (XmlElement)Context.SelectSingleNode("//Database"); return ((IDatabaseSource)DatabaseSourceAddonType.Instance.LoadAddon(dbx)).Dialect; } catch { return GenericDialect.Instance; } } #endregion } [Favorite(Name = "openquerycode")] public class OpenQueryCodeFavorite : QueryContextFavorite { [XmlElem] public string Query { get; set; } public override Bitmap Image { get { return CoreIcons.sql; } } public override void Open() { var pars = new OpenQueryParameters(); pars.SqlText = Query; pars.SavedContext = Context; var frm = new QueryFrame(null, pars); MainWindow.Instance.OpenContent(frm); } public override string Description { get { return "s_open_query"; } } public override string LoadSql() { return Query; } } [Favorite(Name = "openqueryfile")] public class OpenQueryFileFavorite : QueryContextFavorite { [XmlElem] public string QueryFile { get; set; } public override Bitmap Image { get { return CoreIcons.sql; } } public override void Open() { var pars = new OpenQueryParameters(); pars.File = new DiskFile(QueryFile); //pars.SavedContext = Context; var frm = new QueryFrame(null, pars); MainWindow.Instance.OpenContent(frm); } public override string Description { get { return "s_open_query"; } } public override void DisplayProps(Action<string, string> display) { base.DisplayProps(display); display("s_file", QueryFile); } public override string LoadSql() { using (var sr = new StreamReader(QueryFile)) { return sr.ReadToEnd(); } } } public abstract class ExecuteQueryFavoriteBase : QueryContextFavorite { protected void ExecuteQueryText(string sql) { sql = QueryFrame.AskQueryParams(sql, null); if (sql == null) return; var conn = (IDatabaseSource)DatabaseSourceAddonType.Instance.LoadAddon(Context.DocumentElement.FindElement("Database")); var job = RunSqlJob.CreateJob(conn, sql); job.StartProcess(); } public override Bitmap Image { get { return CoreIcons.run; } } } [Favorite(Name = "executequerycode")] public class ExecuteQueryCodeFavorite : ExecuteQueryFavoriteBase { [XmlElem] public string Query { get; set; } public override void Open() { ExecuteQueryText(Query); } public override string Description { get { return "s_execute_query"; } } public override string LoadSql() { return Query; } } [Favorite(Name = "executequeryfile")] public class ExecuteQueryFileFavorite : ExecuteQueryFavoriteBase { [XmlElem] public string QueryFile { get; set; } public override void Open() { using (var sr = new StreamReader(QueryFile)) { ExecuteQueryText(sr.ReadToEnd()); } } public override string Description { get { return "s_execute_query"; } } public override string LoadSql() { using (var sr = new StreamReader(QueryFile)) { return sr.ReadToEnd(); } } } [Favorite(Name = "openquerydesign")] public class OpenQueryDesignFavorite : QueryContextFavorite { public XmlDocument Design { get; set; } public override Bitmap Image { get { return CoreIcons.querydesign; } } public override void SaveToXml(XmlElement xml) { base.SaveToXml(xml); if (Design != null) xml.AppendChild(xml.OwnerDocument.ImportNode(Design.DocumentElement, true)); } public override void LoadFromXml(XmlElement xml) { base.LoadFromXml(xml); var des = xml.FindElement("Design"); if (des != null) { Design = new XmlDocument(); Design.AppendChild(Design.ImportNode(des, true)); } } public override void Open() { var pars = new OpenQueryParameters(); pars.SavedContext = Context; pars.GoToDesign = true; pars.SavedDesign = Design; var frm = new QueryFrame(null, pars); MainWindow.Instance.OpenContent(frm); } protected override bool IsAvailableSql() { return false; } public override string Description { get { return "s_open_query"; } } } }
29.701923
139
0.549369
[ "MIT" ]
dbgate/datadmin
DatAdmin.Core/AllFeatures/Forms/AddQueryToFavoriteForm.cs
9,269
C#
using NHapi.Base.Parser; using NHapi.Base; using NHapi.Base.Log; using System; using System.Collections.Generic; using NHapi.Model.V231.Segment; using NHapi.Model.V231.Datatype; using NHapi.Base.Model; namespace NHapi.Model.V231.Group { ///<summary> ///Represents the PPR_PC1_GOAL_OBSERVATION Group. A Group is an ordered collection of message /// segments that can repeat together or be optionally in/excluded together. /// This Group contains the following elements: ///<ol> ///<li>0: OBX (OBX - observation/result segment) </li> ///<li>1: NTE (NTE - notes and comments segment) optional repeating</li> ///</ol> ///</summary> [Serializable] public class PPR_PC1_GOAL_OBSERVATION : AbstractGroup { ///<summary> /// Creates a new PPR_PC1_GOAL_OBSERVATION Group. ///</summary> public PPR_PC1_GOAL_OBSERVATION(IGroup parent, IModelClassFactory factory) : base(parent, factory){ try { this.add(typeof(OBX), true, false); this.add(typeof(NTE), false, true); } catch(HL7Exception e) { HapiLogFactory.GetHapiLog(GetType()).Error("Unexpected error creating PPR_PC1_GOAL_OBSERVATION - this is probably a bug in the source code generator.", e); } } ///<summary> /// Returns OBX (OBX - observation/result segment) - creates it if necessary ///</summary> public OBX OBX { get{ OBX ret = null; try { ret = (OBX)this.GetStructure("OBX"); } catch(HL7Exception e) { HapiLogFactory.GetHapiLog(GetType()).Error("Unexpected error accessing data - this is probably a bug in the source code generator.", e); throw new System.Exception("An unexpected error ocurred",e); } return ret; } } ///<summary> /// Returns first repetition of NTE (NTE - notes and comments segment) - creates it if necessary ///</summary> public NTE GetNTE() { NTE ret = null; try { ret = (NTE)this.GetStructure("NTE"); } catch(HL7Exception e) { HapiLogFactory.GetHapiLog(GetType()).Error("Unexpected error accessing data - this is probably a bug in the source code generator.", e); throw new System.Exception("An unexpected error ocurred",e); } return ret; } ///<summary> ///Returns a specific repetition of NTE /// * (NTE - notes and comments segment) - creates it if necessary /// throws HL7Exception if the repetition requested is more than one /// greater than the number of existing repetitions. ///</summary> public NTE GetNTE(int rep) { return (NTE)this.GetStructure("NTE", rep); } /** * Returns the number of existing repetitions of NTE */ public int NTERepetitionsUsed { get{ int reps = -1; try { reps = this.GetAll("NTE").Length; } catch (HL7Exception e) { string message = "Unexpected error accessing data - this is probably a bug in the source code generator."; HapiLogFactory.GetHapiLog(GetType()).Error(message, e); throw new System.Exception(message); } return reps; } } /** * Enumerate over the NTE results */ public IEnumerable<NTE> NTEs { get { for (int rep = 0; rep < NTERepetitionsUsed; rep++) { yield return (NTE)this.GetStructure("NTE", rep); } } } ///<summary> ///Adds a new NTE ///</summary> public NTE AddNTE() { return this.AddStructure("NTE") as NTE; } ///<summary> ///Removes the given NTE ///</summary> public void RemoveNTE(NTE toRemove) { this.RemoveStructure("NTE", toRemove); } ///<summary> ///Removes the NTE at the given index ///</summary> public void RemoveNTEAt(int index) { this.RemoveRepetition("NTE", index); } } }
28.150376
163
0.643162
[ "MPL-2.0", "MPL-2.0-no-copyleft-exception" ]
afaonline/nHapi
src/NHapi.Model.V231/Group/PPR_PC1_GOAL_OBSERVATION.cs
3,744
C#
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("ERPApp.Infrastructure")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("ERPApp.Infrastructure")] [assembly: AssemblyCopyright("Copyright © 2018")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] // Setting ComVisible to false makes the types in this assembly not visible // to COM components. If you need to access a type in this assembly from // COM, set the ComVisible attribute to true on that type. [assembly: ComVisible(false)] // The following GUID is for the ID of the typelib if this project is exposed to COM [assembly: Guid("92b6182d-8494-42d6-b2bb-5757bc10360a")] // Version information for an assembly consists of the following four values: // // Major Version // Minor Version // Build Number // Revision // // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] [assembly: AssemblyVersion("1.0.0.0")] [assembly: AssemblyFileVersion("1.0.0.0")]
39.216216
85
0.728463
[ "MIT" ]
waiq321/POS
ERPWorking/ERPApp.Infrastructure/Properties/AssemblyInfo.cs
1,454
C#