/* 
 * 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>
    /// Parametri per l&#x27;importazione delle serie storiche dei cambi valuta
    /// </summary>
    [DataContract]
        public partial class ImportTimeSeriesRatesInputDTO :  IEquatable<ImportTimeSeriesRatesInputDTO>, IValidatableObject
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="ImportTimeSeriesRatesInputDTO" /> class.
        /// </summary>
        /// <param name="startDate">startDate.</param>
        /// <param name="endDate">endDate.</param>
        /// <param name="baseCurrencyIsoCode">baseCurrencyIsoCode.</param>
        /// <param name="currencyIsoCode">currencyIsoCode.</param>
        /// <param name="overwrite">overwrite.</param>
        public ImportTimeSeriesRatesInputDTO(DateTime? startDate = default(DateTime?), DateTime? endDate = default(DateTime?), string baseCurrencyIsoCode = default(string), string currencyIsoCode = default(string), bool? overwrite = default(bool?))
        {
            this.StartDate = startDate;
            this.EndDate = endDate;
            this.BaseCurrencyIsoCode = baseCurrencyIsoCode;
            this.CurrencyIsoCode = currencyIsoCode;
            this.Overwrite = overwrite;
        }
        
        /// <summary>
        /// Gets or Sets StartDate
        /// </summary>
        [DataMember(Name="startDate", EmitDefaultValue=false)]
        public DateTime? StartDate { get; set; }

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

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

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

        /// <summary>
        /// Gets or Sets Overwrite
        /// </summary>
        [DataMember(Name="overwrite", EmitDefaultValue=false)]
        public bool? Overwrite { 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 ImportTimeSeriesRatesInputDTO {\n");
            sb.Append("  StartDate: ").Append(StartDate).Append("\n");
            sb.Append("  EndDate: ").Append(EndDate).Append("\n");
            sb.Append("  BaseCurrencyIsoCode: ").Append(BaseCurrencyIsoCode).Append("\n");
            sb.Append("  CurrencyIsoCode: ").Append(CurrencyIsoCode).Append("\n");
            sb.Append("  Overwrite: ").Append(Overwrite).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 ImportTimeSeriesRatesInputDTO);
        }

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

            return 
                (
                    this.StartDate == input.StartDate ||
                    (this.StartDate != null &&
                    this.StartDate.Equals(input.StartDate))
                ) && 
                (
                    this.EndDate == input.EndDate ||
                    (this.EndDate != null &&
                    this.EndDate.Equals(input.EndDate))
                ) && 
                (
                    this.BaseCurrencyIsoCode == input.BaseCurrencyIsoCode ||
                    (this.BaseCurrencyIsoCode != null &&
                    this.BaseCurrencyIsoCode.Equals(input.BaseCurrencyIsoCode))
                ) && 
                (
                    this.CurrencyIsoCode == input.CurrencyIsoCode ||
                    (this.CurrencyIsoCode != null &&
                    this.CurrencyIsoCode.Equals(input.CurrencyIsoCode))
                ) && 
                (
                    this.Overwrite == input.Overwrite ||
                    (this.Overwrite != null &&
                    this.Overwrite.Equals(input.Overwrite))
                );
        }

        /// <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.StartDate != null)
                    hashCode = hashCode * 59 + this.StartDate.GetHashCode();
                if (this.EndDate != null)
                    hashCode = hashCode * 59 + this.EndDate.GetHashCode();
                if (this.BaseCurrencyIsoCode != null)
                    hashCode = hashCode * 59 + this.BaseCurrencyIsoCode.GetHashCode();
                if (this.CurrencyIsoCode != null)
                    hashCode = hashCode * 59 + this.CurrencyIsoCode.GetHashCode();
                if (this.Overwrite != null)
                    hashCode = hashCode * 59 + this.Overwrite.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;
        }
    }
}
