/* 
 * 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>
    /// VatCodeDuplicationParametersCODTO
    /// </summary>
    [DataContract]
        public partial class VatCodeDuplicationParametersCODTO :  IEquatable<VatCodeDuplicationParametersCODTO>, IValidatableObject
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="VatCodeDuplicationParametersCODTO" /> class.
        /// </summary>
        /// <param name="sourceVatCode">sourceVatCode.</param>
        /// <param name="newVatCode">newVatCode.</param>
        /// <param name="newVatCodeDescription">newVatCodeDescription.</param>
        /// <param name="isDuplLangDescriptions">isDuplLangDescriptions.</param>
        /// <param name="isDuplExtendedAttribute">isDuplExtendedAttribute.</param>
        public VatCodeDuplicationParametersCODTO(string sourceVatCode = default(string), string newVatCode = default(string), string newVatCodeDescription = default(string), bool? isDuplLangDescriptions = default(bool?), bool? isDuplExtendedAttribute = default(bool?))
        {
            this.SourceVatCode = sourceVatCode;
            this.NewVatCode = newVatCode;
            this.NewVatCodeDescription = newVatCodeDescription;
            this.IsDuplLangDescriptions = isDuplLangDescriptions;
            this.IsDuplExtendedAttribute = isDuplExtendedAttribute;
        }
        
        /// <summary>
        /// Gets or Sets SourceVatCode
        /// </summary>
        [DataMember(Name="sourceVatCode", EmitDefaultValue=false)]
        public string SourceVatCode { get; set; }

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

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

        /// <summary>
        /// Gets or Sets IsDuplLangDescriptions
        /// </summary>
        [DataMember(Name="isDuplLangDescriptions", EmitDefaultValue=false)]
        public bool? IsDuplLangDescriptions { get; set; }

        /// <summary>
        /// Gets or Sets IsDuplExtendedAttribute
        /// </summary>
        [DataMember(Name="isDuplExtendedAttribute", EmitDefaultValue=false)]
        public bool? IsDuplExtendedAttribute { 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 VatCodeDuplicationParametersCODTO {\n");
            sb.Append("  SourceVatCode: ").Append(SourceVatCode).Append("\n");
            sb.Append("  NewVatCode: ").Append(NewVatCode).Append("\n");
            sb.Append("  NewVatCodeDescription: ").Append(NewVatCodeDescription).Append("\n");
            sb.Append("  IsDuplLangDescriptions: ").Append(IsDuplLangDescriptions).Append("\n");
            sb.Append("  IsDuplExtendedAttribute: ").Append(IsDuplExtendedAttribute).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 VatCodeDuplicationParametersCODTO);
        }

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

            return 
                (
                    this.SourceVatCode == input.SourceVatCode ||
                    (this.SourceVatCode != null &&
                    this.SourceVatCode.Equals(input.SourceVatCode))
                ) && 
                (
                    this.NewVatCode == input.NewVatCode ||
                    (this.NewVatCode != null &&
                    this.NewVatCode.Equals(input.NewVatCode))
                ) && 
                (
                    this.NewVatCodeDescription == input.NewVatCodeDescription ||
                    (this.NewVatCodeDescription != null &&
                    this.NewVatCodeDescription.Equals(input.NewVatCodeDescription))
                ) && 
                (
                    this.IsDuplLangDescriptions == input.IsDuplLangDescriptions ||
                    (this.IsDuplLangDescriptions != null &&
                    this.IsDuplLangDescriptions.Equals(input.IsDuplLangDescriptions))
                ) && 
                (
                    this.IsDuplExtendedAttribute == input.IsDuplExtendedAttribute ||
                    (this.IsDuplExtendedAttribute != null &&
                    this.IsDuplExtendedAttribute.Equals(input.IsDuplExtendedAttribute))
                );
        }

        /// <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.SourceVatCode != null)
                    hashCode = hashCode * 59 + this.SourceVatCode.GetHashCode();
                if (this.NewVatCode != null)
                    hashCode = hashCode * 59 + this.NewVatCode.GetHashCode();
                if (this.NewVatCodeDescription != null)
                    hashCode = hashCode * 59 + this.NewVatCodeDescription.GetHashCode();
                if (this.IsDuplLangDescriptions != null)
                    hashCode = hashCode * 59 + this.IsDuplLangDescriptions.GetHashCode();
                if (this.IsDuplExtendedAttribute != null)
                    hashCode = hashCode * 59 + this.IsDuplExtendedAttribute.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;
        }
    }
}
