/* 
 * GK application - OmniPOS Service API
 *
 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
 *
 * OpenAPI spec version: 5.21.1-b03
 * 
 * Generated by: https://github.com/swagger-api/swagger-codegen.git
 */

using System;
using System.Linq;
using System.IO;
using System.Text;
using System.Text.RegularExpressions;
using System.Collections;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Runtime.Serialization;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using System.ComponentModel.DataAnnotations;
using SwaggerDateConverter = IO.Swagger.Client.SwaggerDateConverter;

namespace IO.Swagger.Model
{
    /// <summary>
    /// PromotionOperationConfig &lt;p&gt;This configuration entity defines promotion related operations.&lt;/p&gt;
    /// </summary>
    [DataContract]
    public partial class ComGkSoftwarePosApiModelConfigProcessActionPromotionOperationConfig :  IEquatable<ComGkSoftwarePosApiModelConfigProcessActionPromotionOperationConfig>, IValidatableObject
    {
        /// <summary>
        /// &lt;p&gt;This parameter defines the price modification type code.&lt;/p&gt;&lt;br /&gt;&lt;pre&gt;value: PromotionTriggerPrivilegeType [REBATESINGLE, REBATEPERCENT, NEWPRICE, REBATEAMOUNT]&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;ul&gt;&lt;br /&gt; &lt;li&gt;RebateSingle as &#39;RS&#39;,&lt;/li&gt;&lt;br /&gt; &lt;li&gt;RebatePercent as &#39;RP&#39;,&lt;/li&gt;&lt;br /&gt; &lt;li&gt;NewPrice as &#39;PS&#39;,&lt;/li&gt;&lt;br /&gt; &lt;li&gt;RebateAmount as &#39;AM&#39;&lt;/li&gt;&lt;br /&gt;&lt;/ul&gt;
        /// </summary>
        /// <value>&lt;p&gt;This parameter defines the price modification type code.&lt;/p&gt;&lt;br /&gt;&lt;pre&gt;value: PromotionTriggerPrivilegeType [REBATESINGLE, REBATEPERCENT, NEWPRICE, REBATEAMOUNT]&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;ul&gt;&lt;br /&gt; &lt;li&gt;RebateSingle as &#39;RS&#39;,&lt;/li&gt;&lt;br /&gt; &lt;li&gt;RebatePercent as &#39;RP&#39;,&lt;/li&gt;&lt;br /&gt; &lt;li&gt;NewPrice as &#39;PS&#39;,&lt;/li&gt;&lt;br /&gt; &lt;li&gt;RebateAmount as &#39;AM&#39;&lt;/li&gt;&lt;br /&gt;&lt;/ul&gt;</value>
        [JsonConverter(typeof(StringEnumConverter))]
        public enum PrivilegeTypeEnum
        {
            
            /// <summary>
            /// Enum RebateSingle for value: RebateSingle
            /// </summary>
            [EnumMember(Value = "RebateSingle")]
            RebateSingle = 1,
            
            /// <summary>
            /// Enum RebatePercent for value: RebatePercent
            /// </summary>
            [EnumMember(Value = "RebatePercent")]
            RebatePercent = 2,
            
            /// <summary>
            /// Enum NewPrice for value: NewPrice
            /// </summary>
            [EnumMember(Value = "NewPrice")]
            NewPrice = 3,
            
            /// <summary>
            /// Enum RebateAmount for value: RebateAmount
            /// </summary>
            [EnumMember(Value = "RebateAmount")]
            RebateAmount = 4
        }

        /// <summary>
        /// &lt;p&gt;This parameter defines the price modification type code.&lt;/p&gt;&lt;br /&gt;&lt;pre&gt;value: PromotionTriggerPrivilegeType [REBATESINGLE, REBATEPERCENT, NEWPRICE, REBATEAMOUNT]&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;ul&gt;&lt;br /&gt; &lt;li&gt;RebateSingle as &#39;RS&#39;,&lt;/li&gt;&lt;br /&gt; &lt;li&gt;RebatePercent as &#39;RP&#39;,&lt;/li&gt;&lt;br /&gt; &lt;li&gt;NewPrice as &#39;PS&#39;,&lt;/li&gt;&lt;br /&gt; &lt;li&gt;RebateAmount as &#39;AM&#39;&lt;/li&gt;&lt;br /&gt;&lt;/ul&gt;
        /// </summary>
        /// <value>&lt;p&gt;This parameter defines the price modification type code.&lt;/p&gt;&lt;br /&gt;&lt;pre&gt;value: PromotionTriggerPrivilegeType [REBATESINGLE, REBATEPERCENT, NEWPRICE, REBATEAMOUNT]&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;ul&gt;&lt;br /&gt; &lt;li&gt;RebateSingle as &#39;RS&#39;,&lt;/li&gt;&lt;br /&gt; &lt;li&gt;RebatePercent as &#39;RP&#39;,&lt;/li&gt;&lt;br /&gt; &lt;li&gt;NewPrice as &#39;PS&#39;,&lt;/li&gt;&lt;br /&gt; &lt;li&gt;RebateAmount as &#39;AM&#39;&lt;/li&gt;&lt;br /&gt;&lt;/ul&gt;</value>
        [DataMember(Name="privilegeType", EmitDefaultValue=false)]
        public PrivilegeTypeEnum PrivilegeType { get; set; }
        /// <summary>
        /// &lt;p&gt;This parameter defines the sequence handling type code.&lt;/p&gt;&lt;br /&gt;&lt;pre&gt;value: PromotionTriggerSequenceType [FIX, MAX, SAME]&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;ul&gt;&lt;br /&gt; &lt;li&gt;FIX as &#39;FIX&#39;,&lt;/li&gt;&lt;br /&gt; &lt;li&gt;MAX as &#39;MAX&#39;,&lt;/li&gt;&lt;br /&gt; &lt;li&gt;SAME as &#39;SAME&#39;&lt;/li&gt;&lt;br /&gt;&lt;/ul&gt;
        /// </summary>
        /// <value>&lt;p&gt;This parameter defines the sequence handling type code.&lt;/p&gt;&lt;br /&gt;&lt;pre&gt;value: PromotionTriggerSequenceType [FIX, MAX, SAME]&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;ul&gt;&lt;br /&gt; &lt;li&gt;FIX as &#39;FIX&#39;,&lt;/li&gt;&lt;br /&gt; &lt;li&gt;MAX as &#39;MAX&#39;,&lt;/li&gt;&lt;br /&gt; &lt;li&gt;SAME as &#39;SAME&#39;&lt;/li&gt;&lt;br /&gt;&lt;/ul&gt;</value>
        [JsonConverter(typeof(StringEnumConverter))]
        public enum SequenceTypeEnum
        {
            
            /// <summary>
            /// Enum FIX for value: FIX
            /// </summary>
            [EnumMember(Value = "FIX")]
            FIX = 1,
            
            /// <summary>
            /// Enum MAX for value: MAX
            /// </summary>
            [EnumMember(Value = "MAX")]
            MAX = 2,
            
            /// <summary>
            /// Enum SAME for value: SAME
            /// </summary>
            [EnumMember(Value = "SAME")]
            SAME = 3
        }

        /// <summary>
        /// &lt;p&gt;This parameter defines the sequence handling type code.&lt;/p&gt;&lt;br /&gt;&lt;pre&gt;value: PromotionTriggerSequenceType [FIX, MAX, SAME]&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;ul&gt;&lt;br /&gt; &lt;li&gt;FIX as &#39;FIX&#39;,&lt;/li&gt;&lt;br /&gt; &lt;li&gt;MAX as &#39;MAX&#39;,&lt;/li&gt;&lt;br /&gt; &lt;li&gt;SAME as &#39;SAME&#39;&lt;/li&gt;&lt;br /&gt;&lt;/ul&gt;
        /// </summary>
        /// <value>&lt;p&gt;This parameter defines the sequence handling type code.&lt;/p&gt;&lt;br /&gt;&lt;pre&gt;value: PromotionTriggerSequenceType [FIX, MAX, SAME]&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;ul&gt;&lt;br /&gt; &lt;li&gt;FIX as &#39;FIX&#39;,&lt;/li&gt;&lt;br /&gt; &lt;li&gt;MAX as &#39;MAX&#39;,&lt;/li&gt;&lt;br /&gt; &lt;li&gt;SAME as &#39;SAME&#39;&lt;/li&gt;&lt;br /&gt;&lt;/ul&gt;</value>
        [DataMember(Name="sequenceType", EmitDefaultValue=false)]
        public SequenceTypeEnum SequenceType { get; set; }
        /// <summary>
        /// &lt;p&gt;This parameter defines which price deviation type is allowed.&lt;/p&gt;&lt;br /&gt;&lt;pre&gt;value: PriceDeviationType [ALL, EQUAL_LESS, EQUAL_GREATER]&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;ul&gt;&lt;br /&gt; &lt;li&gt;ALL as &#39;ALL&#39;,&lt;/li&gt;&lt;br /&gt; &lt;li&gt;EQUAL_LESS as &#39;EQUAL_LESS&#39;,&lt;/li&gt;&lt;br /&gt; &lt;li&gt;EQUAL_GREATER as &#39;EQUAL_GREATER&#39;&lt;/li&gt;&lt;br /&gt;&lt;/ul&gt;
        /// </summary>
        /// <value>&lt;p&gt;This parameter defines which price deviation type is allowed.&lt;/p&gt;&lt;br /&gt;&lt;pre&gt;value: PriceDeviationType [ALL, EQUAL_LESS, EQUAL_GREATER]&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;ul&gt;&lt;br /&gt; &lt;li&gt;ALL as &#39;ALL&#39;,&lt;/li&gt;&lt;br /&gt; &lt;li&gt;EQUAL_LESS as &#39;EQUAL_LESS&#39;,&lt;/li&gt;&lt;br /&gt; &lt;li&gt;EQUAL_GREATER as &#39;EQUAL_GREATER&#39;&lt;/li&gt;&lt;br /&gt;&lt;/ul&gt;</value>
        [JsonConverter(typeof(StringEnumConverter))]
        public enum PriceDeviationTypeEnum
        {
            
            /// <summary>
            /// Enum ALL for value: ALL
            /// </summary>
            [EnumMember(Value = "ALL")]
            ALL = 1,
            
            /// <summary>
            /// Enum EQUALLESS for value: EQUAL_LESS
            /// </summary>
            [EnumMember(Value = "EQUAL_LESS")]
            EQUALLESS = 2,
            
            /// <summary>
            /// Enum EQUALGREATER for value: EQUAL_GREATER
            /// </summary>
            [EnumMember(Value = "EQUAL_GREATER")]
            EQUALGREATER = 3
        }

        /// <summary>
        /// &lt;p&gt;This parameter defines which price deviation type is allowed.&lt;/p&gt;&lt;br /&gt;&lt;pre&gt;value: PriceDeviationType [ALL, EQUAL_LESS, EQUAL_GREATER]&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;ul&gt;&lt;br /&gt; &lt;li&gt;ALL as &#39;ALL&#39;,&lt;/li&gt;&lt;br /&gt; &lt;li&gt;EQUAL_LESS as &#39;EQUAL_LESS&#39;,&lt;/li&gt;&lt;br /&gt; &lt;li&gt;EQUAL_GREATER as &#39;EQUAL_GREATER&#39;&lt;/li&gt;&lt;br /&gt;&lt;/ul&gt;
        /// </summary>
        /// <value>&lt;p&gt;This parameter defines which price deviation type is allowed.&lt;/p&gt;&lt;br /&gt;&lt;pre&gt;value: PriceDeviationType [ALL, EQUAL_LESS, EQUAL_GREATER]&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;ul&gt;&lt;br /&gt; &lt;li&gt;ALL as &#39;ALL&#39;,&lt;/li&gt;&lt;br /&gt; &lt;li&gt;EQUAL_LESS as &#39;EQUAL_LESS&#39;,&lt;/li&gt;&lt;br /&gt; &lt;li&gt;EQUAL_GREATER as &#39;EQUAL_GREATER&#39;&lt;/li&gt;&lt;br /&gt;&lt;/ul&gt;</value>
        [DataMember(Name="priceDeviationType", EmitDefaultValue=false)]
        public PriceDeviationTypeEnum PriceDeviationType { get; set; }
        /// <summary>
        /// Initializes a new instance of the <see cref="ComGkSoftwarePosApiModelConfigProcessActionPromotionOperationConfig" /> class.
        /// </summary>
        [JsonConstructorAttribute]
        protected ComGkSoftwarePosApiModelConfigProcessActionPromotionOperationConfig() { }
        /// <summary>
        /// Initializes a new instance of the <see cref="ComGkSoftwarePosApiModelConfigProcessActionPromotionOperationConfig" /> class.
        /// </summary>
        /// <param name="triggerType">&lt;p&gt;This parameter defines the trigger type for the loyalty engine. (e.g. CO)&lt;/p&gt; (required).</param>
        /// <param name="triggerValue">&lt;p&gt;This parameter defines the trigger value for the loyalty engine.&lt;/p&gt; (required).</param>
        /// <param name="privilegeType">&lt;p&gt;This parameter defines the price modification type code.&lt;/p&gt;&lt;br /&gt;&lt;pre&gt;value: PromotionTriggerPrivilegeType [REBATESINGLE, REBATEPERCENT, NEWPRICE, REBATEAMOUNT]&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;ul&gt;&lt;br /&gt; &lt;li&gt;RebateSingle as &#39;RS&#39;,&lt;/li&gt;&lt;br /&gt; &lt;li&gt;RebatePercent as &#39;RP&#39;,&lt;/li&gt;&lt;br /&gt; &lt;li&gt;NewPrice as &#39;PS&#39;,&lt;/li&gt;&lt;br /&gt; &lt;li&gt;RebateAmount as &#39;AM&#39;&lt;/li&gt;&lt;br /&gt;&lt;/ul&gt; (required).</param>
        /// <param name="privilegeValue">&lt;p&gt;This parameter defines the predefined discount or reduction value.&lt;/p&gt;.</param>
        /// <param name="sequenceType">&lt;p&gt;This parameter defines the sequence handling type code.&lt;/p&gt;&lt;br /&gt;&lt;pre&gt;value: PromotionTriggerSequenceType [FIX, MAX, SAME]&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;ul&gt;&lt;br /&gt; &lt;li&gt;FIX as &#39;FIX&#39;,&lt;/li&gt;&lt;br /&gt; &lt;li&gt;MAX as &#39;MAX&#39;,&lt;/li&gt;&lt;br /&gt; &lt;li&gt;SAME as &#39;SAME&#39;&lt;/li&gt;&lt;br /&gt;&lt;/ul&gt; (required).</param>
        /// <param name="startSequence">&lt;p&gt;This parameter defines the start sequence number of promotions with the same trigger value.&lt;/p&gt; (required).</param>
        /// <param name="maxSequence">&lt;p&gt;This parameter defines the maximum number of promotions with the same trigger value.&lt;/p&gt; (required).</param>
        /// <param name="maxLimitWarn">&lt;p&gt;This parameter defines the maximum percentage deviation from the unit price of the item. A warning message is displayed, if the defined maxLimitWarn is exceeded.&lt;/p&gt;.</param>
        /// <param name="maxLimitAuthorize">&lt;p&gt;This parameter defines the maximum percentage deviation from the unit price of the item. An authorization is required, if the defined maxLimitAuthorize is exceeded.&lt;/p&gt;.</param>
        /// <param name="maxLimitForbid">&lt;p&gt;This parameter defines the maximum percentage deviation from the unit price of the item. An error message is required, if the defined maxLimitForbid is exceeded. The operation will be canceled.&lt;/p&gt;.</param>
        /// <param name="priceDeviationType">&lt;p&gt;This parameter defines which price deviation type is allowed.&lt;/p&gt;&lt;br /&gt;&lt;pre&gt;value: PriceDeviationType [ALL, EQUAL_LESS, EQUAL_GREATER]&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;ul&gt;&lt;br /&gt; &lt;li&gt;ALL as &#39;ALL&#39;,&lt;/li&gt;&lt;br /&gt; &lt;li&gt;EQUAL_LESS as &#39;EQUAL_LESS&#39;,&lt;/li&gt;&lt;br /&gt; &lt;li&gt;EQUAL_GREATER as &#39;EQUAL_GREATER&#39;&lt;/li&gt;&lt;br /&gt;&lt;/ul&gt; (required).</param>
        /// <param name="xXCustom08">&lt;p&gt;Customizable information&lt;/p&gt;.</param>
        /// <param name="xXCustom10">&lt;p&gt;Customizable information&lt;/p&gt;.</param>
        /// <param name="xXCustom09">&lt;p&gt;Customizable information&lt;/p&gt;.</param>
        /// <param name="xXCustom07">&lt;p&gt;Customizable information&lt;/p&gt;.</param>
        /// <param name="xXCustom05">&lt;p&gt;Customizable information&lt;/p&gt;.</param>
        /// <param name="xXCustom06">&lt;p&gt;Customizable information&lt;/p&gt;.</param>
        /// <param name="xXCustom11">&lt;p&gt;Customizable information&lt;/p&gt;.</param>
        /// <param name="xXCustom12">&lt;p&gt;Customizable information&lt;/p&gt;.</param>
        /// <param name="xXCustom13">&lt;p&gt;Customizable information&lt;/p&gt;.</param>
        /// <param name="xXCustom14">&lt;p&gt;Customizable information&lt;/p&gt;.</param>
        /// <param name="xXCustom15">&lt;p&gt;Customizable information&lt;/p&gt;.</param>
        /// <param name="xXCustom03">&lt;p&gt;Customizable information&lt;/p&gt;.</param>
        /// <param name="xXCustom02">&lt;p&gt;Customizable information&lt;/p&gt;.</param>
        /// <param name="xXCustom04">&lt;p&gt;Customizable information&lt;/p&gt;.</param>
        /// <param name="xXCustom01">&lt;p&gt;Customizable information&lt;/p&gt;.</param>
        public ComGkSoftwarePosApiModelConfigProcessActionPromotionOperationConfig(string triggerType = default(string), string triggerValue = default(string), PrivilegeTypeEnum privilegeType = default(PrivilegeTypeEnum), double? privilegeValue = default(double?), SequenceTypeEnum sequenceType = default(SequenceTypeEnum), int? startSequence = default(int?), int? maxSequence = default(int?), double? maxLimitWarn = default(double?), double? maxLimitAuthorize = default(double?), double? maxLimitForbid = default(double?), PriceDeviationTypeEnum priceDeviationType = default(PriceDeviationTypeEnum), string xXCustom08 = default(string), string xXCustom10 = default(string), string xXCustom09 = default(string), string xXCustom07 = default(string), string xXCustom05 = default(string), string xXCustom06 = default(string), string xXCustom11 = default(string), string xXCustom12 = default(string), string xXCustom13 = default(string), string xXCustom14 = default(string), string xXCustom15 = default(string), string xXCustom03 = default(string), string xXCustom02 = default(string), string xXCustom04 = default(string), string xXCustom01 = default(string))
        {
            // to ensure "triggerType" is required (not null)
            if (triggerType == null)
            {
                throw new InvalidDataException("triggerType is a required property for ComGkSoftwarePosApiModelConfigProcessActionPromotionOperationConfig and cannot be null");
            }
            else
            {
                this.TriggerType = triggerType;
            }
            // to ensure "triggerValue" is required (not null)
            if (triggerValue == null)
            {
                throw new InvalidDataException("triggerValue is a required property for ComGkSoftwarePosApiModelConfigProcessActionPromotionOperationConfig and cannot be null");
            }
            else
            {
                this.TriggerValue = triggerValue;
            }
            // to ensure "privilegeType" is required (not null)
            if (privilegeType == null)
            {
                throw new InvalidDataException("privilegeType is a required property for ComGkSoftwarePosApiModelConfigProcessActionPromotionOperationConfig and cannot be null");
            }
            else
            {
                this.PrivilegeType = privilegeType;
            }
            // to ensure "sequenceType" is required (not null)
            if (sequenceType == null)
            {
                throw new InvalidDataException("sequenceType is a required property for ComGkSoftwarePosApiModelConfigProcessActionPromotionOperationConfig and cannot be null");
            }
            else
            {
                this.SequenceType = sequenceType;
            }
            // to ensure "startSequence" is required (not null)
            if (startSequence == null)
            {
                throw new InvalidDataException("startSequence is a required property for ComGkSoftwarePosApiModelConfigProcessActionPromotionOperationConfig and cannot be null");
            }
            else
            {
                this.StartSequence = startSequence;
            }
            // to ensure "maxSequence" is required (not null)
            if (maxSequence == null)
            {
                throw new InvalidDataException("maxSequence is a required property for ComGkSoftwarePosApiModelConfigProcessActionPromotionOperationConfig and cannot be null");
            }
            else
            {
                this.MaxSequence = maxSequence;
            }
            // to ensure "priceDeviationType" is required (not null)
            if (priceDeviationType == null)
            {
                throw new InvalidDataException("priceDeviationType is a required property for ComGkSoftwarePosApiModelConfigProcessActionPromotionOperationConfig and cannot be null");
            }
            else
            {
                this.PriceDeviationType = priceDeviationType;
            }
            this.PrivilegeValue = privilegeValue;
            this.MaxLimitWarn = maxLimitWarn;
            this.MaxLimitAuthorize = maxLimitAuthorize;
            this.MaxLimitForbid = maxLimitForbid;
            this.XXCustom08 = xXCustom08;
            this.XXCustom10 = xXCustom10;
            this.XXCustom09 = xXCustom09;
            this.XXCustom07 = xXCustom07;
            this.XXCustom05 = xXCustom05;
            this.XXCustom06 = xXCustom06;
            this.XXCustom11 = xXCustom11;
            this.XXCustom12 = xXCustom12;
            this.XXCustom13 = xXCustom13;
            this.XXCustom14 = xXCustom14;
            this.XXCustom15 = xXCustom15;
            this.XXCustom03 = xXCustom03;
            this.XXCustom02 = xXCustom02;
            this.XXCustom04 = xXCustom04;
            this.XXCustom01 = xXCustom01;
        }
        
        /// <summary>
        /// &lt;p&gt;This parameter defines the trigger type for the loyalty engine. (e.g. CO)&lt;/p&gt;
        /// </summary>
        /// <value>&lt;p&gt;This parameter defines the trigger type for the loyalty engine. (e.g. CO)&lt;/p&gt;</value>
        [DataMember(Name="triggerType", EmitDefaultValue=false)]
        public string TriggerType { get; set; }

        /// <summary>
        /// &lt;p&gt;This parameter defines the trigger value for the loyalty engine.&lt;/p&gt;
        /// </summary>
        /// <value>&lt;p&gt;This parameter defines the trigger value for the loyalty engine.&lt;/p&gt;</value>
        [DataMember(Name="triggerValue", EmitDefaultValue=false)]
        public string TriggerValue { get; set; }


        /// <summary>
        /// &lt;p&gt;This parameter defines the predefined discount or reduction value.&lt;/p&gt;
        /// </summary>
        /// <value>&lt;p&gt;This parameter defines the predefined discount or reduction value.&lt;/p&gt;</value>
        [DataMember(Name="privilegeValue", EmitDefaultValue=false)]
        public double? PrivilegeValue { get; set; }


        /// <summary>
        /// &lt;p&gt;This parameter defines the start sequence number of promotions with the same trigger value.&lt;/p&gt;
        /// </summary>
        /// <value>&lt;p&gt;This parameter defines the start sequence number of promotions with the same trigger value.&lt;/p&gt;</value>
        [DataMember(Name="startSequence", EmitDefaultValue=false)]
        public int? StartSequence { get; set; }

        /// <summary>
        /// &lt;p&gt;This parameter defines the maximum number of promotions with the same trigger value.&lt;/p&gt;
        /// </summary>
        /// <value>&lt;p&gt;This parameter defines the maximum number of promotions with the same trigger value.&lt;/p&gt;</value>
        [DataMember(Name="maxSequence", EmitDefaultValue=false)]
        public int? MaxSequence { get; set; }

        /// <summary>
        /// &lt;p&gt;This parameter defines the maximum percentage deviation from the unit price of the item. A warning message is displayed, if the defined maxLimitWarn is exceeded.&lt;/p&gt;
        /// </summary>
        /// <value>&lt;p&gt;This parameter defines the maximum percentage deviation from the unit price of the item. A warning message is displayed, if the defined maxLimitWarn is exceeded.&lt;/p&gt;</value>
        [DataMember(Name="maxLimitWarn", EmitDefaultValue=false)]
        public double? MaxLimitWarn { get; set; }

        /// <summary>
        /// &lt;p&gt;This parameter defines the maximum percentage deviation from the unit price of the item. An authorization is required, if the defined maxLimitAuthorize is exceeded.&lt;/p&gt;
        /// </summary>
        /// <value>&lt;p&gt;This parameter defines the maximum percentage deviation from the unit price of the item. An authorization is required, if the defined maxLimitAuthorize is exceeded.&lt;/p&gt;</value>
        [DataMember(Name="maxLimitAuthorize", EmitDefaultValue=false)]
        public double? MaxLimitAuthorize { get; set; }

        /// <summary>
        /// &lt;p&gt;This parameter defines the maximum percentage deviation from the unit price of the item. An error message is required, if the defined maxLimitForbid is exceeded. The operation will be canceled.&lt;/p&gt;
        /// </summary>
        /// <value>&lt;p&gt;This parameter defines the maximum percentage deviation from the unit price of the item. An error message is required, if the defined maxLimitForbid is exceeded. The operation will be canceled.&lt;/p&gt;</value>
        [DataMember(Name="maxLimitForbid", EmitDefaultValue=false)]
        public double? MaxLimitForbid { get; set; }


        /// <summary>
        /// &lt;p&gt;Customizable information&lt;/p&gt;
        /// </summary>
        /// <value>&lt;p&gt;Customizable information&lt;/p&gt;</value>
        [DataMember(Name="xXCustom08", EmitDefaultValue=false)]
        public string XXCustom08 { get; set; }

        /// <summary>
        /// &lt;p&gt;Customizable information&lt;/p&gt;
        /// </summary>
        /// <value>&lt;p&gt;Customizable information&lt;/p&gt;</value>
        [DataMember(Name="xXCustom10", EmitDefaultValue=false)]
        public string XXCustom10 { get; set; }

        /// <summary>
        /// &lt;p&gt;Customizable information&lt;/p&gt;
        /// </summary>
        /// <value>&lt;p&gt;Customizable information&lt;/p&gt;</value>
        [DataMember(Name="xXCustom09", EmitDefaultValue=false)]
        public string XXCustom09 { get; set; }

        /// <summary>
        /// &lt;p&gt;Customizable information&lt;/p&gt;
        /// </summary>
        /// <value>&lt;p&gt;Customizable information&lt;/p&gt;</value>
        [DataMember(Name="xXCustom07", EmitDefaultValue=false)]
        public string XXCustom07 { get; set; }

        /// <summary>
        /// &lt;p&gt;Customizable information&lt;/p&gt;
        /// </summary>
        /// <value>&lt;p&gt;Customizable information&lt;/p&gt;</value>
        [DataMember(Name="xXCustom05", EmitDefaultValue=false)]
        public string XXCustom05 { get; set; }

        /// <summary>
        /// &lt;p&gt;Customizable information&lt;/p&gt;
        /// </summary>
        /// <value>&lt;p&gt;Customizable information&lt;/p&gt;</value>
        [DataMember(Name="xXCustom06", EmitDefaultValue=false)]
        public string XXCustom06 { get; set; }

        /// <summary>
        /// &lt;p&gt;Customizable information&lt;/p&gt;
        /// </summary>
        /// <value>&lt;p&gt;Customizable information&lt;/p&gt;</value>
        [DataMember(Name="xXCustom11", EmitDefaultValue=false)]
        public string XXCustom11 { get; set; }

        /// <summary>
        /// &lt;p&gt;Customizable information&lt;/p&gt;
        /// </summary>
        /// <value>&lt;p&gt;Customizable information&lt;/p&gt;</value>
        [DataMember(Name="xXCustom12", EmitDefaultValue=false)]
        public string XXCustom12 { get; set; }

        /// <summary>
        /// &lt;p&gt;Customizable information&lt;/p&gt;
        /// </summary>
        /// <value>&lt;p&gt;Customizable information&lt;/p&gt;</value>
        [DataMember(Name="xXCustom13", EmitDefaultValue=false)]
        public string XXCustom13 { get; set; }

        /// <summary>
        /// &lt;p&gt;Customizable information&lt;/p&gt;
        /// </summary>
        /// <value>&lt;p&gt;Customizable information&lt;/p&gt;</value>
        [DataMember(Name="xXCustom14", EmitDefaultValue=false)]
        public string XXCustom14 { get; set; }

        /// <summary>
        /// &lt;p&gt;Customizable information&lt;/p&gt;
        /// </summary>
        /// <value>&lt;p&gt;Customizable information&lt;/p&gt;</value>
        [DataMember(Name="xXCustom15", EmitDefaultValue=false)]
        public string XXCustom15 { get; set; }

        /// <summary>
        /// &lt;p&gt;Customizable information&lt;/p&gt;
        /// </summary>
        /// <value>&lt;p&gt;Customizable information&lt;/p&gt;</value>
        [DataMember(Name="xXCustom03", EmitDefaultValue=false)]
        public string XXCustom03 { get; set; }

        /// <summary>
        /// &lt;p&gt;Customizable information&lt;/p&gt;
        /// </summary>
        /// <value>&lt;p&gt;Customizable information&lt;/p&gt;</value>
        [DataMember(Name="xXCustom02", EmitDefaultValue=false)]
        public string XXCustom02 { get; set; }

        /// <summary>
        /// &lt;p&gt;Customizable information&lt;/p&gt;
        /// </summary>
        /// <value>&lt;p&gt;Customizable information&lt;/p&gt;</value>
        [DataMember(Name="xXCustom04", EmitDefaultValue=false)]
        public string XXCustom04 { get; set; }

        /// <summary>
        /// &lt;p&gt;Customizable information&lt;/p&gt;
        /// </summary>
        /// <value>&lt;p&gt;Customizable information&lt;/p&gt;</value>
        [DataMember(Name="xXCustom01", EmitDefaultValue=false)]
        public string XXCustom01 { get; set; }

        /// <summary>
        /// Returns the string presentation of the object
        /// </summary>
        /// <returns>String presentation of the object</returns>
        public override string ToString()
        {
            var sb = new StringBuilder();
            sb.Append("class ComGkSoftwarePosApiModelConfigProcessActionPromotionOperationConfig {\n");
            sb.Append("  TriggerType: ").Append(TriggerType).Append("\n");
            sb.Append("  TriggerValue: ").Append(TriggerValue).Append("\n");
            sb.Append("  PrivilegeType: ").Append(PrivilegeType).Append("\n");
            sb.Append("  PrivilegeValue: ").Append(PrivilegeValue).Append("\n");
            sb.Append("  SequenceType: ").Append(SequenceType).Append("\n");
            sb.Append("  StartSequence: ").Append(StartSequence).Append("\n");
            sb.Append("  MaxSequence: ").Append(MaxSequence).Append("\n");
            sb.Append("  MaxLimitWarn: ").Append(MaxLimitWarn).Append("\n");
            sb.Append("  MaxLimitAuthorize: ").Append(MaxLimitAuthorize).Append("\n");
            sb.Append("  MaxLimitForbid: ").Append(MaxLimitForbid).Append("\n");
            sb.Append("  PriceDeviationType: ").Append(PriceDeviationType).Append("\n");
            sb.Append("  XXCustom08: ").Append(XXCustom08).Append("\n");
            sb.Append("  XXCustom10: ").Append(XXCustom10).Append("\n");
            sb.Append("  XXCustom09: ").Append(XXCustom09).Append("\n");
            sb.Append("  XXCustom07: ").Append(XXCustom07).Append("\n");
            sb.Append("  XXCustom05: ").Append(XXCustom05).Append("\n");
            sb.Append("  XXCustom06: ").Append(XXCustom06).Append("\n");
            sb.Append("  XXCustom11: ").Append(XXCustom11).Append("\n");
            sb.Append("  XXCustom12: ").Append(XXCustom12).Append("\n");
            sb.Append("  XXCustom13: ").Append(XXCustom13).Append("\n");
            sb.Append("  XXCustom14: ").Append(XXCustom14).Append("\n");
            sb.Append("  XXCustom15: ").Append(XXCustom15).Append("\n");
            sb.Append("  XXCustom03: ").Append(XXCustom03).Append("\n");
            sb.Append("  XXCustom02: ").Append(XXCustom02).Append("\n");
            sb.Append("  XXCustom04: ").Append(XXCustom04).Append("\n");
            sb.Append("  XXCustom01: ").Append(XXCustom01).Append("\n");
            sb.Append("}\n");
            return sb.ToString();
        }
  
        /// <summary>
        /// Returns the JSON string presentation of the object
        /// </summary>
        /// <returns>JSON string presentation of the object</returns>
        public virtual string ToJson()
        {
            return JsonConvert.SerializeObject(this, Formatting.Indented);
        }

        /// <summary>
        /// Returns true if objects are equal
        /// </summary>
        /// <param name="input">Object to be compared</param>
        /// <returns>Boolean</returns>
        public override bool Equals(object input)
        {
            return this.Equals(input as ComGkSoftwarePosApiModelConfigProcessActionPromotionOperationConfig);
        }

        /// <summary>
        /// Returns true if ComGkSoftwarePosApiModelConfigProcessActionPromotionOperationConfig instances are equal
        /// </summary>
        /// <param name="input">Instance of ComGkSoftwarePosApiModelConfigProcessActionPromotionOperationConfig to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(ComGkSoftwarePosApiModelConfigProcessActionPromotionOperationConfig input)
        {
            if (input == null)
                return false;

            return 
                (
                    this.TriggerType == input.TriggerType ||
                    (this.TriggerType != null &&
                    this.TriggerType.Equals(input.TriggerType))
                ) && 
                (
                    this.TriggerValue == input.TriggerValue ||
                    (this.TriggerValue != null &&
                    this.TriggerValue.Equals(input.TriggerValue))
                ) && 
                (
                    this.PrivilegeType == input.PrivilegeType ||
                    (this.PrivilegeType != null &&
                    this.PrivilegeType.Equals(input.PrivilegeType))
                ) && 
                (
                    this.PrivilegeValue == input.PrivilegeValue ||
                    (this.PrivilegeValue != null &&
                    this.PrivilegeValue.Equals(input.PrivilegeValue))
                ) && 
                (
                    this.SequenceType == input.SequenceType ||
                    (this.SequenceType != null &&
                    this.SequenceType.Equals(input.SequenceType))
                ) && 
                (
                    this.StartSequence == input.StartSequence ||
                    (this.StartSequence != null &&
                    this.StartSequence.Equals(input.StartSequence))
                ) && 
                (
                    this.MaxSequence == input.MaxSequence ||
                    (this.MaxSequence != null &&
                    this.MaxSequence.Equals(input.MaxSequence))
                ) && 
                (
                    this.MaxLimitWarn == input.MaxLimitWarn ||
                    (this.MaxLimitWarn != null &&
                    this.MaxLimitWarn.Equals(input.MaxLimitWarn))
                ) && 
                (
                    this.MaxLimitAuthorize == input.MaxLimitAuthorize ||
                    (this.MaxLimitAuthorize != null &&
                    this.MaxLimitAuthorize.Equals(input.MaxLimitAuthorize))
                ) && 
                (
                    this.MaxLimitForbid == input.MaxLimitForbid ||
                    (this.MaxLimitForbid != null &&
                    this.MaxLimitForbid.Equals(input.MaxLimitForbid))
                ) && 
                (
                    this.PriceDeviationType == input.PriceDeviationType ||
                    (this.PriceDeviationType != null &&
                    this.PriceDeviationType.Equals(input.PriceDeviationType))
                ) && 
                (
                    this.XXCustom08 == input.XXCustom08 ||
                    (this.XXCustom08 != null &&
                    this.XXCustom08.Equals(input.XXCustom08))
                ) && 
                (
                    this.XXCustom10 == input.XXCustom10 ||
                    (this.XXCustom10 != null &&
                    this.XXCustom10.Equals(input.XXCustom10))
                ) && 
                (
                    this.XXCustom09 == input.XXCustom09 ||
                    (this.XXCustom09 != null &&
                    this.XXCustom09.Equals(input.XXCustom09))
                ) && 
                (
                    this.XXCustom07 == input.XXCustom07 ||
                    (this.XXCustom07 != null &&
                    this.XXCustom07.Equals(input.XXCustom07))
                ) && 
                (
                    this.XXCustom05 == input.XXCustom05 ||
                    (this.XXCustom05 != null &&
                    this.XXCustom05.Equals(input.XXCustom05))
                ) && 
                (
                    this.XXCustom06 == input.XXCustom06 ||
                    (this.XXCustom06 != null &&
                    this.XXCustom06.Equals(input.XXCustom06))
                ) && 
                (
                    this.XXCustom11 == input.XXCustom11 ||
                    (this.XXCustom11 != null &&
                    this.XXCustom11.Equals(input.XXCustom11))
                ) && 
                (
                    this.XXCustom12 == input.XXCustom12 ||
                    (this.XXCustom12 != null &&
                    this.XXCustom12.Equals(input.XXCustom12))
                ) && 
                (
                    this.XXCustom13 == input.XXCustom13 ||
                    (this.XXCustom13 != null &&
                    this.XXCustom13.Equals(input.XXCustom13))
                ) && 
                (
                    this.XXCustom14 == input.XXCustom14 ||
                    (this.XXCustom14 != null &&
                    this.XXCustom14.Equals(input.XXCustom14))
                ) && 
                (
                    this.XXCustom15 == input.XXCustom15 ||
                    (this.XXCustom15 != null &&
                    this.XXCustom15.Equals(input.XXCustom15))
                ) && 
                (
                    this.XXCustom03 == input.XXCustom03 ||
                    (this.XXCustom03 != null &&
                    this.XXCustom03.Equals(input.XXCustom03))
                ) && 
                (
                    this.XXCustom02 == input.XXCustom02 ||
                    (this.XXCustom02 != null &&
                    this.XXCustom02.Equals(input.XXCustom02))
                ) && 
                (
                    this.XXCustom04 == input.XXCustom04 ||
                    (this.XXCustom04 != null &&
                    this.XXCustom04.Equals(input.XXCustom04))
                ) && 
                (
                    this.XXCustom01 == input.XXCustom01 ||
                    (this.XXCustom01 != null &&
                    this.XXCustom01.Equals(input.XXCustom01))
                );
        }

        /// <summary>
        /// Gets the hash code
        /// </summary>
        /// <returns>Hash code</returns>
        public override int GetHashCode()
        {
            unchecked // Overflow is fine, just wrap
            {
                int hashCode = 41;
                if (this.TriggerType != null)
                    hashCode = hashCode * 59 + this.TriggerType.GetHashCode();
                if (this.TriggerValue != null)
                    hashCode = hashCode * 59 + this.TriggerValue.GetHashCode();
                if (this.PrivilegeType != null)
                    hashCode = hashCode * 59 + this.PrivilegeType.GetHashCode();
                if (this.PrivilegeValue != null)
                    hashCode = hashCode * 59 + this.PrivilegeValue.GetHashCode();
                if (this.SequenceType != null)
                    hashCode = hashCode * 59 + this.SequenceType.GetHashCode();
                if (this.StartSequence != null)
                    hashCode = hashCode * 59 + this.StartSequence.GetHashCode();
                if (this.MaxSequence != null)
                    hashCode = hashCode * 59 + this.MaxSequence.GetHashCode();
                if (this.MaxLimitWarn != null)
                    hashCode = hashCode * 59 + this.MaxLimitWarn.GetHashCode();
                if (this.MaxLimitAuthorize != null)
                    hashCode = hashCode * 59 + this.MaxLimitAuthorize.GetHashCode();
                if (this.MaxLimitForbid != null)
                    hashCode = hashCode * 59 + this.MaxLimitForbid.GetHashCode();
                if (this.PriceDeviationType != null)
                    hashCode = hashCode * 59 + this.PriceDeviationType.GetHashCode();
                if (this.XXCustom08 != null)
                    hashCode = hashCode * 59 + this.XXCustom08.GetHashCode();
                if (this.XXCustom10 != null)
                    hashCode = hashCode * 59 + this.XXCustom10.GetHashCode();
                if (this.XXCustom09 != null)
                    hashCode = hashCode * 59 + this.XXCustom09.GetHashCode();
                if (this.XXCustom07 != null)
                    hashCode = hashCode * 59 + this.XXCustom07.GetHashCode();
                if (this.XXCustom05 != null)
                    hashCode = hashCode * 59 + this.XXCustom05.GetHashCode();
                if (this.XXCustom06 != null)
                    hashCode = hashCode * 59 + this.XXCustom06.GetHashCode();
                if (this.XXCustom11 != null)
                    hashCode = hashCode * 59 + this.XXCustom11.GetHashCode();
                if (this.XXCustom12 != null)
                    hashCode = hashCode * 59 + this.XXCustom12.GetHashCode();
                if (this.XXCustom13 != null)
                    hashCode = hashCode * 59 + this.XXCustom13.GetHashCode();
                if (this.XXCustom14 != null)
                    hashCode = hashCode * 59 + this.XXCustom14.GetHashCode();
                if (this.XXCustom15 != null)
                    hashCode = hashCode * 59 + this.XXCustom15.GetHashCode();
                if (this.XXCustom03 != null)
                    hashCode = hashCode * 59 + this.XXCustom03.GetHashCode();
                if (this.XXCustom02 != null)
                    hashCode = hashCode * 59 + this.XXCustom02.GetHashCode();
                if (this.XXCustom04 != null)
                    hashCode = hashCode * 59 + this.XXCustom04.GetHashCode();
                if (this.XXCustom01 != null)
                    hashCode = hashCode * 59 + this.XXCustom01.GetHashCode();
                return hashCode;
            }
        }

        /// <summary>
        /// To validate all properties of the instance
        /// </summary>
        /// <param name="validationContext">Validation context</param>
        /// <returns>Validation Result</returns>
        IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
        {
            yield break;
        }
    }

}
