/* 
 * 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>
    /// Parameters for calculating instalments
    /// </summary>
    [DataContract]
        public partial class InstalmentCalculationParametersDTO :  IEquatable<InstalmentCalculationParametersDTO>, IValidatableObject
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="InstalmentCalculationParametersDTO" /> class.
        /// </summary>
        /// <param name="valuta">Currency Code.</param>
        /// <param name="idCliFor">Customer/Supplier ID.</param>
        /// <param name="escludiScaglioniPagamento">Retrieve payment condition from Customer/Supplier (default &#x3D; true).</param>
        /// <param name="codPag">Payment condition code if not provided by Customer/Supplier.</param>
        /// <param name="dataDoc">Document Date (for reference date calculation).</param>
        /// <param name="totImponibileEuro">Total Taxable Amount in EURO.</param>
        /// <param name="totIvaEuro">Total VAT Amount in EURO.</param>
        /// <param name="totImponibileValuta">Total Taxable Amount in Currency.</param>
        /// <param name="totIvaValuta">Total VAT Amount in Currency.</param>
        /// <param name="art62">Article 62 Indicator (default false).</param>
        /// <param name="cambio">Exchange Rate.</param>
        /// <param name="dataBolla">DDT Date (for reference date calculation).</param>
        /// <param name="dataConsegna">Delivery Date (for reference date calculation).</param>
        /// <param name="dataOrdine">Order Date (for reference date calculation).</param>
        /// <param name="dataRichiesta">Request Date (for reference date calculation).</param>
        /// <param name="idBancaAziendale">Company Bank ID.</param>
        /// <param name="idBancaCliFor">Customer/Supplier Bank ID.</param>
        /// <param name="idCodPag">Not managed.</param>
        /// <param name="importoFissoEuro">Fixed Amount in EURO.</param>
        /// <param name="importoFissoValuta">Fixed Amount in Currency.</param>
        /// <param name="isIvaSplitPayment">Split Payment IVA Indicator (default false).</param>
        /// <param name="modalitaImportoFisso">Fixed Amount Mode.</param>
        /// <param name="sottotipoSpesa">Expense Subtype.</param>
        /// <param name="tipoCF">Customer/Supplier Type.</param>
        /// <param name="totNonSoggEuro">Total Non-Taxable Amount in EURO.</param>
        /// <param name="totNonSoggValuta">Total Non-Taxable Amount in Currency.</param>
        /// <param name="totRitenuteEuro">Total Withholdings in EURO.</param>
        /// <param name="totRitenuteValuta">Total Withholdings in Currency.</param>
        /// <param name="additionalData">additionalData.</param>
        /// <param name="pluginData">pluginData.</param>
        public InstalmentCalculationParametersDTO(string valuta = default(string), int? idCliFor = default(int?), bool? escludiScaglioniPagamento = default(bool?), string codPag = default(string), DateTime? dataDoc = default(DateTime?), double? totImponibileEuro = default(double?), double? totIvaEuro = default(double?), double? totImponibileValuta = default(double?), double? totIvaValuta = default(double?), bool? art62 = default(bool?), double? cambio = default(double?), DateTime? dataBolla = default(DateTime?), DateTime? dataConsegna = default(DateTime?), DateTime? dataOrdine = default(DateTime?), DateTime? dataRichiesta = default(DateTime?), long? idBancaAziendale = default(long?), int? idBancaCliFor = default(int?), long? idCodPag = default(long?), double? importoFissoEuro = default(double?), double? importoFissoValuta = default(double?), bool? isIvaSplitPayment = default(bool?), int? modalitaImportoFisso = default(int?), int? sottotipoSpesa = default(int?), int? tipoCF = default(int?), double? totNonSoggEuro = default(double?), double? totNonSoggValuta = default(double?), double? totRitenuteEuro = default(double?), double? totRitenuteValuta = default(double?), Dictionary<string, Object> additionalData = default(Dictionary<string, Object>), Dictionary<string, Object> pluginData = default(Dictionary<string, Object>))
        {
            this.Valuta = valuta;
            this.IdCliFor = idCliFor;
            this.EscludiScaglioniPagamento = escludiScaglioniPagamento;
            this.CodPag = codPag;
            this.DataDoc = dataDoc;
            this.TotImponibileEuro = totImponibileEuro;
            this.TotIvaEuro = totIvaEuro;
            this.TotImponibileValuta = totImponibileValuta;
            this.TotIvaValuta = totIvaValuta;
            this.Art62 = art62;
            this.Cambio = cambio;
            this.DataBolla = dataBolla;
            this.DataConsegna = dataConsegna;
            this.DataOrdine = dataOrdine;
            this.DataRichiesta = dataRichiesta;
            this.IdBancaAziendale = idBancaAziendale;
            this.IdBancaCliFor = idBancaCliFor;
            this.IdCodPag = idCodPag;
            this.ImportoFissoEuro = importoFissoEuro;
            this.ImportoFissoValuta = importoFissoValuta;
            this.IsIvaSplitPayment = isIvaSplitPayment;
            this.ModalitaImportoFisso = modalitaImportoFisso;
            this.SottotipoSpesa = sottotipoSpesa;
            this.TipoCF = tipoCF;
            this.TotNonSoggEuro = totNonSoggEuro;
            this.TotNonSoggValuta = totNonSoggValuta;
            this.TotRitenuteEuro = totRitenuteEuro;
            this.TotRitenuteValuta = totRitenuteValuta;
            this.AdditionalData = additionalData;
            this.PluginData = pluginData;
        }
        
        /// <summary>
        /// Currency Code
        /// </summary>
        /// <value>Currency Code</value>
        [DataMember(Name="valuta", EmitDefaultValue=false)]
        public string Valuta { get; set; }

        /// <summary>
        /// Customer/Supplier ID
        /// </summary>
        /// <value>Customer/Supplier ID</value>
        [DataMember(Name="idCliFor", EmitDefaultValue=false)]
        public int? IdCliFor { get; set; }

        /// <summary>
        /// Retrieve payment condition from Customer/Supplier (default &#x3D; true)
        /// </summary>
        /// <value>Retrieve payment condition from Customer/Supplier (default &#x3D; true)</value>
        [DataMember(Name="escludiScaglioniPagamento", EmitDefaultValue=false)]
        public bool? EscludiScaglioniPagamento { get; set; }

        /// <summary>
        /// Payment condition code if not provided by Customer/Supplier
        /// </summary>
        /// <value>Payment condition code if not provided by Customer/Supplier</value>
        [DataMember(Name="codPag", EmitDefaultValue=false)]
        public string CodPag { get; set; }

        /// <summary>
        /// Document Date (for reference date calculation)
        /// </summary>
        /// <value>Document Date (for reference date calculation)</value>
        [DataMember(Name="dataDoc", EmitDefaultValue=false)]
        public DateTime? DataDoc { get; set; }

        /// <summary>
        /// Total Taxable Amount in EURO
        /// </summary>
        /// <value>Total Taxable Amount in EURO</value>
        [DataMember(Name="totImponibileEuro", EmitDefaultValue=false)]
        public double? TotImponibileEuro { get; set; }

        /// <summary>
        /// Total VAT Amount in EURO
        /// </summary>
        /// <value>Total VAT Amount in EURO</value>
        [DataMember(Name="totIvaEuro", EmitDefaultValue=false)]
        public double? TotIvaEuro { get; set; }

        /// <summary>
        /// Total Taxable Amount in Currency
        /// </summary>
        /// <value>Total Taxable Amount in Currency</value>
        [DataMember(Name="totImponibileValuta", EmitDefaultValue=false)]
        public double? TotImponibileValuta { get; set; }

        /// <summary>
        /// Total VAT Amount in Currency
        /// </summary>
        /// <value>Total VAT Amount in Currency</value>
        [DataMember(Name="totIvaValuta", EmitDefaultValue=false)]
        public double? TotIvaValuta { get; set; }

        /// <summary>
        /// Article 62 Indicator (default false)
        /// </summary>
        /// <value>Article 62 Indicator (default false)</value>
        [DataMember(Name="art62", EmitDefaultValue=false)]
        public bool? Art62 { get; set; }

        /// <summary>
        /// Exchange Rate
        /// </summary>
        /// <value>Exchange Rate</value>
        [DataMember(Name="cambio", EmitDefaultValue=false)]
        public double? Cambio { get; set; }

        /// <summary>
        /// DDT Date (for reference date calculation)
        /// </summary>
        /// <value>DDT Date (for reference date calculation)</value>
        [DataMember(Name="dataBolla", EmitDefaultValue=false)]
        public DateTime? DataBolla { get; set; }

        /// <summary>
        /// Delivery Date (for reference date calculation)
        /// </summary>
        /// <value>Delivery Date (for reference date calculation)</value>
        [DataMember(Name="dataConsegna", EmitDefaultValue=false)]
        public DateTime? DataConsegna { get; set; }

        /// <summary>
        /// Order Date (for reference date calculation)
        /// </summary>
        /// <value>Order Date (for reference date calculation)</value>
        [DataMember(Name="dataOrdine", EmitDefaultValue=false)]
        public DateTime? DataOrdine { get; set; }

        /// <summary>
        /// Request Date (for reference date calculation)
        /// </summary>
        /// <value>Request Date (for reference date calculation)</value>
        [DataMember(Name="dataRichiesta", EmitDefaultValue=false)]
        public DateTime? DataRichiesta { get; set; }

        /// <summary>
        /// Company Bank ID
        /// </summary>
        /// <value>Company Bank ID</value>
        [DataMember(Name="idBancaAziendale", EmitDefaultValue=false)]
        public long? IdBancaAziendale { get; set; }

        /// <summary>
        /// Customer/Supplier Bank ID
        /// </summary>
        /// <value>Customer/Supplier Bank ID</value>
        [DataMember(Name="idBancaCliFor", EmitDefaultValue=false)]
        public int? IdBancaCliFor { get; set; }

        /// <summary>
        /// Not managed
        /// </summary>
        /// <value>Not managed</value>
        [DataMember(Name="idCodPag", EmitDefaultValue=false)]
        public long? IdCodPag { get; set; }

        /// <summary>
        /// Fixed Amount in EURO
        /// </summary>
        /// <value>Fixed Amount in EURO</value>
        [DataMember(Name="importoFissoEuro", EmitDefaultValue=false)]
        public double? ImportoFissoEuro { get; set; }

        /// <summary>
        /// Fixed Amount in Currency
        /// </summary>
        /// <value>Fixed Amount in Currency</value>
        [DataMember(Name="importoFissoValuta", EmitDefaultValue=false)]
        public double? ImportoFissoValuta { get; set; }

        /// <summary>
        /// Split Payment IVA Indicator (default false)
        /// </summary>
        /// <value>Split Payment IVA Indicator (default false)</value>
        [DataMember(Name="isIvaSplitPayment", EmitDefaultValue=false)]
        public bool? IsIvaSplitPayment { get; set; }

        /// <summary>
        /// Fixed Amount Mode
        /// </summary>
        /// <value>Fixed Amount Mode</value>
        [DataMember(Name="modalitaImportoFisso", EmitDefaultValue=false)]
        public int? ModalitaImportoFisso { get; set; }

        /// <summary>
        /// Expense Subtype
        /// </summary>
        /// <value>Expense Subtype</value>
        [DataMember(Name="sottotipoSpesa", EmitDefaultValue=false)]
        public int? SottotipoSpesa { get; set; }

        /// <summary>
        /// Customer/Supplier Type
        /// </summary>
        /// <value>Customer/Supplier Type</value>
        [DataMember(Name="tipoCF", EmitDefaultValue=false)]
        public int? TipoCF { get; set; }

        /// <summary>
        /// Total Non-Taxable Amount in EURO
        /// </summary>
        /// <value>Total Non-Taxable Amount in EURO</value>
        [DataMember(Name="totNonSoggEuro", EmitDefaultValue=false)]
        public double? TotNonSoggEuro { get; set; }

        /// <summary>
        /// Total Non-Taxable Amount in Currency
        /// </summary>
        /// <value>Total Non-Taxable Amount in Currency</value>
        [DataMember(Name="totNonSoggValuta", EmitDefaultValue=false)]
        public double? TotNonSoggValuta { get; set; }

        /// <summary>
        /// Total Withholdings in EURO
        /// </summary>
        /// <value>Total Withholdings in EURO</value>
        [DataMember(Name="totRitenuteEuro", EmitDefaultValue=false)]
        public double? TotRitenuteEuro { get; set; }

        /// <summary>
        /// Total Withholdings in Currency
        /// </summary>
        /// <value>Total Withholdings in Currency</value>
        [DataMember(Name="totRitenuteValuta", EmitDefaultValue=false)]
        public double? TotRitenuteValuta { 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 InstalmentCalculationParametersDTO {\n");
            sb.Append("  Valuta: ").Append(Valuta).Append("\n");
            sb.Append("  IdCliFor: ").Append(IdCliFor).Append("\n");
            sb.Append("  EscludiScaglioniPagamento: ").Append(EscludiScaglioniPagamento).Append("\n");
            sb.Append("  CodPag: ").Append(CodPag).Append("\n");
            sb.Append("  DataDoc: ").Append(DataDoc).Append("\n");
            sb.Append("  TotImponibileEuro: ").Append(TotImponibileEuro).Append("\n");
            sb.Append("  TotIvaEuro: ").Append(TotIvaEuro).Append("\n");
            sb.Append("  TotImponibileValuta: ").Append(TotImponibileValuta).Append("\n");
            sb.Append("  TotIvaValuta: ").Append(TotIvaValuta).Append("\n");
            sb.Append("  Art62: ").Append(Art62).Append("\n");
            sb.Append("  Cambio: ").Append(Cambio).Append("\n");
            sb.Append("  DataBolla: ").Append(DataBolla).Append("\n");
            sb.Append("  DataConsegna: ").Append(DataConsegna).Append("\n");
            sb.Append("  DataOrdine: ").Append(DataOrdine).Append("\n");
            sb.Append("  DataRichiesta: ").Append(DataRichiesta).Append("\n");
            sb.Append("  IdBancaAziendale: ").Append(IdBancaAziendale).Append("\n");
            sb.Append("  IdBancaCliFor: ").Append(IdBancaCliFor).Append("\n");
            sb.Append("  IdCodPag: ").Append(IdCodPag).Append("\n");
            sb.Append("  ImportoFissoEuro: ").Append(ImportoFissoEuro).Append("\n");
            sb.Append("  ImportoFissoValuta: ").Append(ImportoFissoValuta).Append("\n");
            sb.Append("  IsIvaSplitPayment: ").Append(IsIvaSplitPayment).Append("\n");
            sb.Append("  ModalitaImportoFisso: ").Append(ModalitaImportoFisso).Append("\n");
            sb.Append("  SottotipoSpesa: ").Append(SottotipoSpesa).Append("\n");
            sb.Append("  TipoCF: ").Append(TipoCF).Append("\n");
            sb.Append("  TotNonSoggEuro: ").Append(TotNonSoggEuro).Append("\n");
            sb.Append("  TotNonSoggValuta: ").Append(TotNonSoggValuta).Append("\n");
            sb.Append("  TotRitenuteEuro: ").Append(TotRitenuteEuro).Append("\n");
            sb.Append("  TotRitenuteValuta: ").Append(TotRitenuteValuta).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 InstalmentCalculationParametersDTO);
        }

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

            return 
                (
                    this.Valuta == input.Valuta ||
                    (this.Valuta != null &&
                    this.Valuta.Equals(input.Valuta))
                ) && 
                (
                    this.IdCliFor == input.IdCliFor ||
                    (this.IdCliFor != null &&
                    this.IdCliFor.Equals(input.IdCliFor))
                ) && 
                (
                    this.EscludiScaglioniPagamento == input.EscludiScaglioniPagamento ||
                    (this.EscludiScaglioniPagamento != null &&
                    this.EscludiScaglioniPagamento.Equals(input.EscludiScaglioniPagamento))
                ) && 
                (
                    this.CodPag == input.CodPag ||
                    (this.CodPag != null &&
                    this.CodPag.Equals(input.CodPag))
                ) && 
                (
                    this.DataDoc == input.DataDoc ||
                    (this.DataDoc != null &&
                    this.DataDoc.Equals(input.DataDoc))
                ) && 
                (
                    this.TotImponibileEuro == input.TotImponibileEuro ||
                    (this.TotImponibileEuro != null &&
                    this.TotImponibileEuro.Equals(input.TotImponibileEuro))
                ) && 
                (
                    this.TotIvaEuro == input.TotIvaEuro ||
                    (this.TotIvaEuro != null &&
                    this.TotIvaEuro.Equals(input.TotIvaEuro))
                ) && 
                (
                    this.TotImponibileValuta == input.TotImponibileValuta ||
                    (this.TotImponibileValuta != null &&
                    this.TotImponibileValuta.Equals(input.TotImponibileValuta))
                ) && 
                (
                    this.TotIvaValuta == input.TotIvaValuta ||
                    (this.TotIvaValuta != null &&
                    this.TotIvaValuta.Equals(input.TotIvaValuta))
                ) && 
                (
                    this.Art62 == input.Art62 ||
                    (this.Art62 != null &&
                    this.Art62.Equals(input.Art62))
                ) && 
                (
                    this.Cambio == input.Cambio ||
                    (this.Cambio != null &&
                    this.Cambio.Equals(input.Cambio))
                ) && 
                (
                    this.DataBolla == input.DataBolla ||
                    (this.DataBolla != null &&
                    this.DataBolla.Equals(input.DataBolla))
                ) && 
                (
                    this.DataConsegna == input.DataConsegna ||
                    (this.DataConsegna != null &&
                    this.DataConsegna.Equals(input.DataConsegna))
                ) && 
                (
                    this.DataOrdine == input.DataOrdine ||
                    (this.DataOrdine != null &&
                    this.DataOrdine.Equals(input.DataOrdine))
                ) && 
                (
                    this.DataRichiesta == input.DataRichiesta ||
                    (this.DataRichiesta != null &&
                    this.DataRichiesta.Equals(input.DataRichiesta))
                ) && 
                (
                    this.IdBancaAziendale == input.IdBancaAziendale ||
                    (this.IdBancaAziendale != null &&
                    this.IdBancaAziendale.Equals(input.IdBancaAziendale))
                ) && 
                (
                    this.IdBancaCliFor == input.IdBancaCliFor ||
                    (this.IdBancaCliFor != null &&
                    this.IdBancaCliFor.Equals(input.IdBancaCliFor))
                ) && 
                (
                    this.IdCodPag == input.IdCodPag ||
                    (this.IdCodPag != null &&
                    this.IdCodPag.Equals(input.IdCodPag))
                ) && 
                (
                    this.ImportoFissoEuro == input.ImportoFissoEuro ||
                    (this.ImportoFissoEuro != null &&
                    this.ImportoFissoEuro.Equals(input.ImportoFissoEuro))
                ) && 
                (
                    this.ImportoFissoValuta == input.ImportoFissoValuta ||
                    (this.ImportoFissoValuta != null &&
                    this.ImportoFissoValuta.Equals(input.ImportoFissoValuta))
                ) && 
                (
                    this.IsIvaSplitPayment == input.IsIvaSplitPayment ||
                    (this.IsIvaSplitPayment != null &&
                    this.IsIvaSplitPayment.Equals(input.IsIvaSplitPayment))
                ) && 
                (
                    this.ModalitaImportoFisso == input.ModalitaImportoFisso ||
                    (this.ModalitaImportoFisso != null &&
                    this.ModalitaImportoFisso.Equals(input.ModalitaImportoFisso))
                ) && 
                (
                    this.SottotipoSpesa == input.SottotipoSpesa ||
                    (this.SottotipoSpesa != null &&
                    this.SottotipoSpesa.Equals(input.SottotipoSpesa))
                ) && 
                (
                    this.TipoCF == input.TipoCF ||
                    (this.TipoCF != null &&
                    this.TipoCF.Equals(input.TipoCF))
                ) && 
                (
                    this.TotNonSoggEuro == input.TotNonSoggEuro ||
                    (this.TotNonSoggEuro != null &&
                    this.TotNonSoggEuro.Equals(input.TotNonSoggEuro))
                ) && 
                (
                    this.TotNonSoggValuta == input.TotNonSoggValuta ||
                    (this.TotNonSoggValuta != null &&
                    this.TotNonSoggValuta.Equals(input.TotNonSoggValuta))
                ) && 
                (
                    this.TotRitenuteEuro == input.TotRitenuteEuro ||
                    (this.TotRitenuteEuro != null &&
                    this.TotRitenuteEuro.Equals(input.TotRitenuteEuro))
                ) && 
                (
                    this.TotRitenuteValuta == input.TotRitenuteValuta ||
                    (this.TotRitenuteValuta != null &&
                    this.TotRitenuteValuta.Equals(input.TotRitenuteValuta))
                ) && 
                (
                    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.Valuta != null)
                    hashCode = hashCode * 59 + this.Valuta.GetHashCode();
                if (this.IdCliFor != null)
                    hashCode = hashCode * 59 + this.IdCliFor.GetHashCode();
                if (this.EscludiScaglioniPagamento != null)
                    hashCode = hashCode * 59 + this.EscludiScaglioniPagamento.GetHashCode();
                if (this.CodPag != null)
                    hashCode = hashCode * 59 + this.CodPag.GetHashCode();
                if (this.DataDoc != null)
                    hashCode = hashCode * 59 + this.DataDoc.GetHashCode();
                if (this.TotImponibileEuro != null)
                    hashCode = hashCode * 59 + this.TotImponibileEuro.GetHashCode();
                if (this.TotIvaEuro != null)
                    hashCode = hashCode * 59 + this.TotIvaEuro.GetHashCode();
                if (this.TotImponibileValuta != null)
                    hashCode = hashCode * 59 + this.TotImponibileValuta.GetHashCode();
                if (this.TotIvaValuta != null)
                    hashCode = hashCode * 59 + this.TotIvaValuta.GetHashCode();
                if (this.Art62 != null)
                    hashCode = hashCode * 59 + this.Art62.GetHashCode();
                if (this.Cambio != null)
                    hashCode = hashCode * 59 + this.Cambio.GetHashCode();
                if (this.DataBolla != null)
                    hashCode = hashCode * 59 + this.DataBolla.GetHashCode();
                if (this.DataConsegna != null)
                    hashCode = hashCode * 59 + this.DataConsegna.GetHashCode();
                if (this.DataOrdine != null)
                    hashCode = hashCode * 59 + this.DataOrdine.GetHashCode();
                if (this.DataRichiesta != null)
                    hashCode = hashCode * 59 + this.DataRichiesta.GetHashCode();
                if (this.IdBancaAziendale != null)
                    hashCode = hashCode * 59 + this.IdBancaAziendale.GetHashCode();
                if (this.IdBancaCliFor != null)
                    hashCode = hashCode * 59 + this.IdBancaCliFor.GetHashCode();
                if (this.IdCodPag != null)
                    hashCode = hashCode * 59 + this.IdCodPag.GetHashCode();
                if (this.ImportoFissoEuro != null)
                    hashCode = hashCode * 59 + this.ImportoFissoEuro.GetHashCode();
                if (this.ImportoFissoValuta != null)
                    hashCode = hashCode * 59 + this.ImportoFissoValuta.GetHashCode();
                if (this.IsIvaSplitPayment != null)
                    hashCode = hashCode * 59 + this.IsIvaSplitPayment.GetHashCode();
                if (this.ModalitaImportoFisso != null)
                    hashCode = hashCode * 59 + this.ModalitaImportoFisso.GetHashCode();
                if (this.SottotipoSpesa != null)
                    hashCode = hashCode * 59 + this.SottotipoSpesa.GetHashCode();
                if (this.TipoCF != null)
                    hashCode = hashCode * 59 + this.TipoCF.GetHashCode();
                if (this.TotNonSoggEuro != null)
                    hashCode = hashCode * 59 + this.TotNonSoggEuro.GetHashCode();
                if (this.TotNonSoggValuta != null)
                    hashCode = hashCode * 59 + this.TotNonSoggValuta.GetHashCode();
                if (this.TotRitenuteEuro != null)
                    hashCode = hashCode * 59 + this.TotRitenuteEuro.GetHashCode();
                if (this.TotRitenuteValuta != null)
                    hashCode = hashCode * 59 + this.TotRitenuteValuta.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;
        }
    }
}
