/* 
 * TSE Cloud - CO
 *
 * This is Swagger Docs for Document WebApi Teamsystemn Enterprise Cloud, more detail at [https://swagger.io](https://swagger.io).
 *
 * OpenAPI spec version: v2025.3000
 * 
 * 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>
    /// CG68_NUMERDESC - Sezionale&lt;br&gt;Proprietà chiave:&lt;ul&gt;&lt;li&gt;&lt;b&gt;DittaCg18&lt;/b&gt;&lt;/li&gt;&lt;li&gt;&lt;b&gt;Sezionale&lt;/b&gt;&lt;/li&gt;&lt;/ul&gt;
    /// </summary>
    [DataContract]
        public partial class SectionalMasterDataCODTO :  IEquatable<SectionalMasterDataCODTO>, IValidatableObject
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="SectionalMasterDataCODTO" /> class.
        /// </summary>
        /// <param name="caustcoll">CG68_CAUSTCOLL - Causale trasporto collegata.</param>
        /// <param name="descsez">CG68_DESCSEZ - Descrizione Sezionale.</param>
        /// <param name="dittaCg18">CG68_DITTA_CG18 - Ditta (required).</param>
        /// <param name="flgNoLiqIva">CG68_FLGNOLIQIVA - Escludi elaborazioni IVA&lt;br&gt;&lt;ul&gt;&lt;li&gt;&lt;i&gt;0&lt;/i&gt; - No&lt;/li&gt;&lt;li&gt;&lt;i&gt;1&lt;/i&gt; - Si&lt;/li&gt;&lt;/ul&gt; (default to 0).</param>
        /// <param name="idagentecoll">CG68_IDAGENTECOLL - Agente collegato.</param>
        /// <param name="idprov">CG68_IDPROV - IdProv (Required only in PUT/PATCH).</param>
        /// <param name="indIntra1213">CG68_INDINTRA1213 - Modelli INTRA 12 e INTRA 13&lt;br&gt;&lt;ul&gt;&lt;li&gt;&lt;i&gt;0&lt;/i&gt; - No&lt;/li&gt;&lt;li&gt;&lt;i&gt;1&lt;/i&gt; - INTRA 12&lt;/li&gt;&lt;li&gt;&lt;i&gt;2&lt;/i&gt; - INTRA 13&lt;/li&gt;&lt;/ul&gt; (default to 0).</param>
        /// <param name="indRegione">CG68_INDREGIONE - Regione attività&lt;br&gt;&lt;ul&gt;&lt;li&gt;&lt;i&gt;0&lt;/i&gt; - non specificata&lt;/li&gt;&lt;li&gt;&lt;i&gt;1&lt;/i&gt; - Abruzzo&lt;/li&gt;&lt;li&gt;&lt;i&gt;2&lt;/i&gt; - Basilicata&lt;/li&gt;&lt;li&gt;&lt;i&gt;3&lt;/i&gt; - Bolzano&lt;/li&gt;&lt;li&gt;&lt;i&gt;4&lt;/i&gt; - Calabria&lt;/li&gt;&lt;li&gt;&lt;i&gt;5&lt;/i&gt; - Campania&lt;/li&gt;&lt;li&gt;&lt;i&gt;6&lt;/i&gt; - Emilia Romagna&lt;/li&gt;&lt;li&gt;&lt;i&gt;7&lt;/i&gt; - Friuli Venezia Giulia&lt;/li&gt;&lt;li&gt;&lt;i&gt;8&lt;/i&gt; - Lazio&lt;/li&gt;&lt;li&gt;&lt;i&gt;9&lt;/i&gt; - Liguria&lt;/li&gt;&lt;li&gt;&lt;i&gt;10&lt;/i&gt; - Lombardia&lt;/li&gt;&lt;li&gt;&lt;i&gt;11&lt;/i&gt; - Marche&lt;/li&gt;&lt;li&gt;&lt;i&gt;12&lt;/i&gt; - Molise&lt;/li&gt;&lt;li&gt;&lt;i&gt;13&lt;/i&gt; - Piemonte&lt;/li&gt;&lt;li&gt;&lt;i&gt;14&lt;/i&gt; - Puglia&lt;/li&gt;&lt;li&gt;&lt;i&gt;15&lt;/i&gt; - Sardegna&lt;/li&gt;&lt;li&gt;&lt;i&gt;16&lt;/i&gt; - Sicilia&lt;/li&gt;&lt;li&gt;&lt;i&gt;17&lt;/i&gt; - Toscana&lt;/li&gt;&lt;li&gt;&lt;i&gt;18&lt;/i&gt; - Trento&lt;/li&gt;&lt;li&gt;&lt;i&gt;19&lt;/i&gt; - Umbria&lt;/li&gt;&lt;li&gt;&lt;i&gt;20&lt;/i&gt; - Valle D&#x27;Aosta&lt;/li&gt;&lt;li&gt;&lt;i&gt;21&lt;/i&gt; - Veneto&lt;/li&gt;&lt;/ul&gt; (default to 0).</param>
        /// <param name="indTipologia">CG68_INDTIPOLOGIA - Tipologia&lt;br&gt;&lt;ul&gt;&lt;li&gt;&lt;i&gt;0&lt;/i&gt; - Iva&lt;/li&gt;&lt;li&gt;&lt;i&gt;1&lt;/i&gt; - Gestionale area amministrativa&lt;/li&gt;&lt;li&gt;&lt;i&gt;2&lt;/i&gt; - Gestionale area commerciale&lt;/li&gt;&lt;li&gt;&lt;i&gt;3&lt;/i&gt; - Gestionale area amministrativa/commerciale&lt;/li&gt;&lt;li&gt;&lt;i&gt;4&lt;/i&gt; - Registro IVA riepilogativo&lt;/li&gt;&lt;/ul&gt; (default to 0).</param>
        /// <param name="puntovenCg7a">CG68_PUNTOVEN_CG7A - Punto vendita.</param>
        /// <param name="sezionale">CG68_SEZIONALE - Sezionale (required).</param>
        /// <param name="storeCO">storeCO.</param>
        /// <param name="additionalData">additionalData.</param>
        /// <param name="pluginData">pluginData.</param>
        public SectionalMasterDataCODTO(string caustcoll = default(string), string descsez = default(string), double? dittaCg18 = default(double?), int? flgNoLiqIva = 0, int? idagentecoll = default(int?), double? idprov = default(double?), double? indIntra1213 = 0, double? indRegione = 0, double? indTipologia = 0, double? puntovenCg7a = default(double?), string sezionale = default(string), StoreCODTO storeCO = default(StoreCODTO), Dictionary<string, Object> additionalData = default(Dictionary<string, Object>), Dictionary<string, Object> pluginData = default(Dictionary<string, Object>))
        {
            // to ensure "dittaCg18" is required (not null)
            if (dittaCg18 == null)
            {
                throw new InvalidDataException("dittaCg18 is a required property for SectionalMasterDataCODTO and cannot be null");
            }
            else
            {
                this.DittaCg18 = dittaCg18;
            }
            // to ensure "sezionale" is required (not null)
            if (sezionale == null)
            {
                throw new InvalidDataException("sezionale is a required property for SectionalMasterDataCODTO and cannot be null");
            }
            else
            {
                this.Sezionale = sezionale;
            }
            this.Caustcoll = caustcoll;
            this.Descsez = descsez;
            // use default value if no "flgNoLiqIva" provided
            if (flgNoLiqIva == null)
            {
                this.FlgNoLiqIva = 0;
            }
            else
            {
                this.FlgNoLiqIva = flgNoLiqIva;
            }
            this.Idagentecoll = idagentecoll;
            this.Idprov = idprov;
            // use default value if no "indIntra1213" provided
            if (indIntra1213 == null)
            {
                this.IndIntra1213 = 0;
            }
            else
            {
                this.IndIntra1213 = indIntra1213;
            }
            // use default value if no "indRegione" provided
            if (indRegione == null)
            {
                this.IndRegione = 0;
            }
            else
            {
                this.IndRegione = indRegione;
            }
            // use default value if no "indTipologia" provided
            if (indTipologia == null)
            {
                this.IndTipologia = 0;
            }
            else
            {
                this.IndTipologia = indTipologia;
            }
            this.PuntovenCg7a = puntovenCg7a;
            this.StoreCO = storeCO;
            this.AdditionalData = additionalData;
            this.PluginData = pluginData;
        }
        
        /// <summary>
        /// CG68_CAUSTCOLL - Causale trasporto collegata
        /// </summary>
        /// <value>CG68_CAUSTCOLL - Causale trasporto collegata</value>
        [DataMember(Name="caustcoll", EmitDefaultValue=false)]
        public string Caustcoll { get; set; }

        /// <summary>
        /// CG68_DESCSEZ - Descrizione Sezionale
        /// </summary>
        /// <value>CG68_DESCSEZ - Descrizione Sezionale</value>
        [DataMember(Name="descsez", EmitDefaultValue=false)]
        public string Descsez { get; set; }

        /// <summary>
        /// CG68_DITTA_CG18 - Ditta
        /// </summary>
        /// <value>CG68_DITTA_CG18 - Ditta</value>
        [DataMember(Name="dittaCg18", EmitDefaultValue=false)]
        public double? DittaCg18 { get; set; }

        /// <summary>
        /// CG68_FLGNOLIQIVA - Escludi elaborazioni IVA&lt;br&gt;&lt;ul&gt;&lt;li&gt;&lt;i&gt;0&lt;/i&gt; - No&lt;/li&gt;&lt;li&gt;&lt;i&gt;1&lt;/i&gt; - Si&lt;/li&gt;&lt;/ul&gt;
        /// </summary>
        /// <value>CG68_FLGNOLIQIVA - Escludi elaborazioni IVA&lt;br&gt;&lt;ul&gt;&lt;li&gt;&lt;i&gt;0&lt;/i&gt; - No&lt;/li&gt;&lt;li&gt;&lt;i&gt;1&lt;/i&gt; - Si&lt;/li&gt;&lt;/ul&gt;</value>
        [DataMember(Name="flgNoLiqIva", EmitDefaultValue=false)]
        public int? FlgNoLiqIva { get; set; }

        /// <summary>
        /// CG68_IDAGENTECOLL - Agente collegato
        /// </summary>
        /// <value>CG68_IDAGENTECOLL - Agente collegato</value>
        [DataMember(Name="idagentecoll", EmitDefaultValue=false)]
        public int? Idagentecoll { get; set; }

        /// <summary>
        /// CG68_IDPROV - IdProv (Required only in PUT/PATCH)
        /// </summary>
        /// <value>CG68_IDPROV - IdProv (Required only in PUT/PATCH)</value>
        [DataMember(Name="idprov", EmitDefaultValue=false)]
        public double? Idprov { get; set; }

        /// <summary>
        /// CG68_INDINTRA1213 - Modelli INTRA 12 e INTRA 13&lt;br&gt;&lt;ul&gt;&lt;li&gt;&lt;i&gt;0&lt;/i&gt; - No&lt;/li&gt;&lt;li&gt;&lt;i&gt;1&lt;/i&gt; - INTRA 12&lt;/li&gt;&lt;li&gt;&lt;i&gt;2&lt;/i&gt; - INTRA 13&lt;/li&gt;&lt;/ul&gt;
        /// </summary>
        /// <value>CG68_INDINTRA1213 - Modelli INTRA 12 e INTRA 13&lt;br&gt;&lt;ul&gt;&lt;li&gt;&lt;i&gt;0&lt;/i&gt; - No&lt;/li&gt;&lt;li&gt;&lt;i&gt;1&lt;/i&gt; - INTRA 12&lt;/li&gt;&lt;li&gt;&lt;i&gt;2&lt;/i&gt; - INTRA 13&lt;/li&gt;&lt;/ul&gt;</value>
        [DataMember(Name="indIntra1213", EmitDefaultValue=false)]
        public double? IndIntra1213 { get; set; }

        /// <summary>
        /// CG68_INDREGIONE - Regione attività&lt;br&gt;&lt;ul&gt;&lt;li&gt;&lt;i&gt;0&lt;/i&gt; - non specificata&lt;/li&gt;&lt;li&gt;&lt;i&gt;1&lt;/i&gt; - Abruzzo&lt;/li&gt;&lt;li&gt;&lt;i&gt;2&lt;/i&gt; - Basilicata&lt;/li&gt;&lt;li&gt;&lt;i&gt;3&lt;/i&gt; - Bolzano&lt;/li&gt;&lt;li&gt;&lt;i&gt;4&lt;/i&gt; - Calabria&lt;/li&gt;&lt;li&gt;&lt;i&gt;5&lt;/i&gt; - Campania&lt;/li&gt;&lt;li&gt;&lt;i&gt;6&lt;/i&gt; - Emilia Romagna&lt;/li&gt;&lt;li&gt;&lt;i&gt;7&lt;/i&gt; - Friuli Venezia Giulia&lt;/li&gt;&lt;li&gt;&lt;i&gt;8&lt;/i&gt; - Lazio&lt;/li&gt;&lt;li&gt;&lt;i&gt;9&lt;/i&gt; - Liguria&lt;/li&gt;&lt;li&gt;&lt;i&gt;10&lt;/i&gt; - Lombardia&lt;/li&gt;&lt;li&gt;&lt;i&gt;11&lt;/i&gt; - Marche&lt;/li&gt;&lt;li&gt;&lt;i&gt;12&lt;/i&gt; - Molise&lt;/li&gt;&lt;li&gt;&lt;i&gt;13&lt;/i&gt; - Piemonte&lt;/li&gt;&lt;li&gt;&lt;i&gt;14&lt;/i&gt; - Puglia&lt;/li&gt;&lt;li&gt;&lt;i&gt;15&lt;/i&gt; - Sardegna&lt;/li&gt;&lt;li&gt;&lt;i&gt;16&lt;/i&gt; - Sicilia&lt;/li&gt;&lt;li&gt;&lt;i&gt;17&lt;/i&gt; - Toscana&lt;/li&gt;&lt;li&gt;&lt;i&gt;18&lt;/i&gt; - Trento&lt;/li&gt;&lt;li&gt;&lt;i&gt;19&lt;/i&gt; - Umbria&lt;/li&gt;&lt;li&gt;&lt;i&gt;20&lt;/i&gt; - Valle D&#x27;Aosta&lt;/li&gt;&lt;li&gt;&lt;i&gt;21&lt;/i&gt; - Veneto&lt;/li&gt;&lt;/ul&gt;
        /// </summary>
        /// <value>CG68_INDREGIONE - Regione attività&lt;br&gt;&lt;ul&gt;&lt;li&gt;&lt;i&gt;0&lt;/i&gt; - non specificata&lt;/li&gt;&lt;li&gt;&lt;i&gt;1&lt;/i&gt; - Abruzzo&lt;/li&gt;&lt;li&gt;&lt;i&gt;2&lt;/i&gt; - Basilicata&lt;/li&gt;&lt;li&gt;&lt;i&gt;3&lt;/i&gt; - Bolzano&lt;/li&gt;&lt;li&gt;&lt;i&gt;4&lt;/i&gt; - Calabria&lt;/li&gt;&lt;li&gt;&lt;i&gt;5&lt;/i&gt; - Campania&lt;/li&gt;&lt;li&gt;&lt;i&gt;6&lt;/i&gt; - Emilia Romagna&lt;/li&gt;&lt;li&gt;&lt;i&gt;7&lt;/i&gt; - Friuli Venezia Giulia&lt;/li&gt;&lt;li&gt;&lt;i&gt;8&lt;/i&gt; - Lazio&lt;/li&gt;&lt;li&gt;&lt;i&gt;9&lt;/i&gt; - Liguria&lt;/li&gt;&lt;li&gt;&lt;i&gt;10&lt;/i&gt; - Lombardia&lt;/li&gt;&lt;li&gt;&lt;i&gt;11&lt;/i&gt; - Marche&lt;/li&gt;&lt;li&gt;&lt;i&gt;12&lt;/i&gt; - Molise&lt;/li&gt;&lt;li&gt;&lt;i&gt;13&lt;/i&gt; - Piemonte&lt;/li&gt;&lt;li&gt;&lt;i&gt;14&lt;/i&gt; - Puglia&lt;/li&gt;&lt;li&gt;&lt;i&gt;15&lt;/i&gt; - Sardegna&lt;/li&gt;&lt;li&gt;&lt;i&gt;16&lt;/i&gt; - Sicilia&lt;/li&gt;&lt;li&gt;&lt;i&gt;17&lt;/i&gt; - Toscana&lt;/li&gt;&lt;li&gt;&lt;i&gt;18&lt;/i&gt; - Trento&lt;/li&gt;&lt;li&gt;&lt;i&gt;19&lt;/i&gt; - Umbria&lt;/li&gt;&lt;li&gt;&lt;i&gt;20&lt;/i&gt; - Valle D&#x27;Aosta&lt;/li&gt;&lt;li&gt;&lt;i&gt;21&lt;/i&gt; - Veneto&lt;/li&gt;&lt;/ul&gt;</value>
        [DataMember(Name="indRegione", EmitDefaultValue=false)]
        public double? IndRegione { get; set; }

        /// <summary>
        /// CG68_INDTIPOLOGIA - Tipologia&lt;br&gt;&lt;ul&gt;&lt;li&gt;&lt;i&gt;0&lt;/i&gt; - Iva&lt;/li&gt;&lt;li&gt;&lt;i&gt;1&lt;/i&gt; - Gestionale area amministrativa&lt;/li&gt;&lt;li&gt;&lt;i&gt;2&lt;/i&gt; - Gestionale area commerciale&lt;/li&gt;&lt;li&gt;&lt;i&gt;3&lt;/i&gt; - Gestionale area amministrativa/commerciale&lt;/li&gt;&lt;li&gt;&lt;i&gt;4&lt;/i&gt; - Registro IVA riepilogativo&lt;/li&gt;&lt;/ul&gt;
        /// </summary>
        /// <value>CG68_INDTIPOLOGIA - Tipologia&lt;br&gt;&lt;ul&gt;&lt;li&gt;&lt;i&gt;0&lt;/i&gt; - Iva&lt;/li&gt;&lt;li&gt;&lt;i&gt;1&lt;/i&gt; - Gestionale area amministrativa&lt;/li&gt;&lt;li&gt;&lt;i&gt;2&lt;/i&gt; - Gestionale area commerciale&lt;/li&gt;&lt;li&gt;&lt;i&gt;3&lt;/i&gt; - Gestionale area amministrativa/commerciale&lt;/li&gt;&lt;li&gt;&lt;i&gt;4&lt;/i&gt; - Registro IVA riepilogativo&lt;/li&gt;&lt;/ul&gt;</value>
        [DataMember(Name="indTipologia", EmitDefaultValue=false)]
        public double? IndTipologia { get; set; }

        /// <summary>
        /// CG68_PUNTOVEN_CG7A - Punto vendita
        /// </summary>
        /// <value>CG68_PUNTOVEN_CG7A - Punto vendita</value>
        [DataMember(Name="puntovenCg7a", EmitDefaultValue=false)]
        public double? PuntovenCg7a { get; set; }

        /// <summary>
        /// CG68_SEZIONALE - Sezionale
        /// </summary>
        /// <value>CG68_SEZIONALE - Sezionale</value>
        [DataMember(Name="sezionale", EmitDefaultValue=false)]
        public string Sezionale { get; set; }

        /// <summary>
        /// Gets or Sets StoreCO
        /// </summary>
        [DataMember(Name="storeCO", EmitDefaultValue=false)]
        public StoreCODTO StoreCO { get; set; }

        /// <summary>
        /// Gets or Sets AdditionalData
        /// </summary>
        [DataMember(Name="additionalData", EmitDefaultValue=false)]
        public Dictionary<string, Object> AdditionalData { get; set; }

        /// <summary>
        /// Gets or Sets PluginData
        /// </summary>
        [DataMember(Name="pluginData", EmitDefaultValue=false)]
        public Dictionary<string, Object> PluginData { 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 SectionalMasterDataCODTO {\n");
            sb.Append("  Caustcoll: ").Append(Caustcoll).Append("\n");
            sb.Append("  Descsez: ").Append(Descsez).Append("\n");
            sb.Append("  DittaCg18: ").Append(DittaCg18).Append("\n");
            sb.Append("  FlgNoLiqIva: ").Append(FlgNoLiqIva).Append("\n");
            sb.Append("  Idagentecoll: ").Append(Idagentecoll).Append("\n");
            sb.Append("  Idprov: ").Append(Idprov).Append("\n");
            sb.Append("  IndIntra1213: ").Append(IndIntra1213).Append("\n");
            sb.Append("  IndRegione: ").Append(IndRegione).Append("\n");
            sb.Append("  IndTipologia: ").Append(IndTipologia).Append("\n");
            sb.Append("  PuntovenCg7a: ").Append(PuntovenCg7a).Append("\n");
            sb.Append("  Sezionale: ").Append(Sezionale).Append("\n");
            sb.Append("  StoreCO: ").Append(StoreCO).Append("\n");
            sb.Append("  AdditionalData: ").Append(AdditionalData).Append("\n");
            sb.Append("  PluginData: ").Append(PluginData).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 SectionalMasterDataCODTO);
        }

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

            return 
                (
                    this.Caustcoll == input.Caustcoll ||
                    (this.Caustcoll != null &&
                    this.Caustcoll.Equals(input.Caustcoll))
                ) && 
                (
                    this.Descsez == input.Descsez ||
                    (this.Descsez != null &&
                    this.Descsez.Equals(input.Descsez))
                ) && 
                (
                    this.DittaCg18 == input.DittaCg18 ||
                    (this.DittaCg18 != null &&
                    this.DittaCg18.Equals(input.DittaCg18))
                ) && 
                (
                    this.FlgNoLiqIva == input.FlgNoLiqIva ||
                    (this.FlgNoLiqIva != null &&
                    this.FlgNoLiqIva.Equals(input.FlgNoLiqIva))
                ) && 
                (
                    this.Idagentecoll == input.Idagentecoll ||
                    (this.Idagentecoll != null &&
                    this.Idagentecoll.Equals(input.Idagentecoll))
                ) && 
                (
                    this.Idprov == input.Idprov ||
                    (this.Idprov != null &&
                    this.Idprov.Equals(input.Idprov))
                ) && 
                (
                    this.IndIntra1213 == input.IndIntra1213 ||
                    (this.IndIntra1213 != null &&
                    this.IndIntra1213.Equals(input.IndIntra1213))
                ) && 
                (
                    this.IndRegione == input.IndRegione ||
                    (this.IndRegione != null &&
                    this.IndRegione.Equals(input.IndRegione))
                ) && 
                (
                    this.IndTipologia == input.IndTipologia ||
                    (this.IndTipologia != null &&
                    this.IndTipologia.Equals(input.IndTipologia))
                ) && 
                (
                    this.PuntovenCg7a == input.PuntovenCg7a ||
                    (this.PuntovenCg7a != null &&
                    this.PuntovenCg7a.Equals(input.PuntovenCg7a))
                ) && 
                (
                    this.Sezionale == input.Sezionale ||
                    (this.Sezionale != null &&
                    this.Sezionale.Equals(input.Sezionale))
                ) && 
                (
                    this.StoreCO == input.StoreCO ||
                    (this.StoreCO != null &&
                    this.StoreCO.Equals(input.StoreCO))
                ) && 
                (
                    this.AdditionalData == input.AdditionalData ||
                    this.AdditionalData != null &&
                    input.AdditionalData != null &&
                    this.AdditionalData.SequenceEqual(input.AdditionalData)
                ) && 
                (
                    this.PluginData == input.PluginData ||
                    this.PluginData != null &&
                    input.PluginData != null &&
                    this.PluginData.SequenceEqual(input.PluginData)
                );
        }

        /// <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.Caustcoll != null)
                    hashCode = hashCode * 59 + this.Caustcoll.GetHashCode();
                if (this.Descsez != null)
                    hashCode = hashCode * 59 + this.Descsez.GetHashCode();
                if (this.DittaCg18 != null)
                    hashCode = hashCode * 59 + this.DittaCg18.GetHashCode();
                if (this.FlgNoLiqIva != null)
                    hashCode = hashCode * 59 + this.FlgNoLiqIva.GetHashCode();
                if (this.Idagentecoll != null)
                    hashCode = hashCode * 59 + this.Idagentecoll.GetHashCode();
                if (this.Idprov != null)
                    hashCode = hashCode * 59 + this.Idprov.GetHashCode();
                if (this.IndIntra1213 != null)
                    hashCode = hashCode * 59 + this.IndIntra1213.GetHashCode();
                if (this.IndRegione != null)
                    hashCode = hashCode * 59 + this.IndRegione.GetHashCode();
                if (this.IndTipologia != null)
                    hashCode = hashCode * 59 + this.IndTipologia.GetHashCode();
                if (this.PuntovenCg7a != null)
                    hashCode = hashCode * 59 + this.PuntovenCg7a.GetHashCode();
                if (this.Sezionale != null)
                    hashCode = hashCode * 59 + this.Sezionale.GetHashCode();
                if (this.StoreCO != null)
                    hashCode = hashCode * 59 + this.StoreCO.GetHashCode();
                if (this.AdditionalData != null)
                    hashCode = hashCode * 59 + this.AdditionalData.GetHashCode();
                if (this.PluginData != null)
                    hashCode = hashCode * 59 + this.PluginData.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;
        }
    }
}
