/* 
 * 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>
    /// RegisterLineItemAddonData TODO: undocumented
    /// </summary>
    [DataContract]
    public partial class ComGkSoftwarePosApiModelConfigProcessFlowsRegisterLineItemAddonData :  IEquatable<ComGkSoftwarePosApiModelConfigProcessFlowsRegisterLineItemAddonData>, IValidatableObject
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="ComGkSoftwarePosApiModelConfigProcessFlowsRegisterLineItemAddonData" /> class.
        /// </summary>
        /// <param name="language">language.</param>
        /// <param name="isoCurrencyCode">isoCurrencyCode.</param>
        /// <param name="actualUnitPrice">actualUnitPrice.</param>
        /// <param name="itemType">itemType.</param>
        /// <param name="retailPriceModifierList">retailPriceModifierList.</param>
        /// <param name="lineItemExtensionList">lineItemExtensionList.</param>
        /// <param name="printAdditionalLineItemTextLineList">printAdditionalLineItemTextLineList.</param>
        public ComGkSoftwarePosApiModelConfigProcessFlowsRegisterLineItemAddonData(string language = default(string), string isoCurrencyCode = default(string), double? actualUnitPrice = default(double?), string itemType = default(string), List<ComGkSoftwarePosApiModelDomAppServicesTransactionExternalRetailPriceModifier> retailPriceModifierList = default(List<ComGkSoftwarePosApiModelDomAppServicesTransactionExternalRetailPriceModifier>), List<ComGkSoftwarePosApiModelDomAppServicesTransactionLineItemExtension> lineItemExtensionList = default(List<ComGkSoftwarePosApiModelDomAppServicesTransactionLineItemExtension>), List<ComGkSoftwarePosApiModelDomAppServicesTransactionPrintAdditionalLineItemTextLine> printAdditionalLineItemTextLineList = default(List<ComGkSoftwarePosApiModelDomAppServicesTransactionPrintAdditionalLineItemTextLine>))
        {
            this.Language = language;
            this.IsoCurrencyCode = isoCurrencyCode;
            this.ActualUnitPrice = actualUnitPrice;
            this.ItemType = itemType;
            this.RetailPriceModifierList = retailPriceModifierList;
            this.LineItemExtensionList = lineItemExtensionList;
            this.PrintAdditionalLineItemTextLineList = printAdditionalLineItemTextLineList;
        }
        
        /// <summary>
        /// Gets or Sets Language
        /// </summary>
        [DataMember(Name="language", EmitDefaultValue=false)]
        public string Language { get; set; }

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

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

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

        /// <summary>
        /// Gets or Sets RetailPriceModifierList
        /// </summary>
        [DataMember(Name="retailPriceModifierList", EmitDefaultValue=false)]
        public List<ComGkSoftwarePosApiModelDomAppServicesTransactionExternalRetailPriceModifier> RetailPriceModifierList { get; set; }

        /// <summary>
        /// Gets or Sets LineItemExtensionList
        /// </summary>
        [DataMember(Name="lineItemExtensionList", EmitDefaultValue=false)]
        public List<ComGkSoftwarePosApiModelDomAppServicesTransactionLineItemExtension> LineItemExtensionList { get; set; }

        /// <summary>
        /// Gets or Sets PrintAdditionalLineItemTextLineList
        /// </summary>
        [DataMember(Name="printAdditionalLineItemTextLineList", EmitDefaultValue=false)]
        public List<ComGkSoftwarePosApiModelDomAppServicesTransactionPrintAdditionalLineItemTextLine> PrintAdditionalLineItemTextLineList { 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 ComGkSoftwarePosApiModelConfigProcessFlowsRegisterLineItemAddonData {\n");
            sb.Append("  Language: ").Append(Language).Append("\n");
            sb.Append("  IsoCurrencyCode: ").Append(IsoCurrencyCode).Append("\n");
            sb.Append("  ActualUnitPrice: ").Append(ActualUnitPrice).Append("\n");
            sb.Append("  ItemType: ").Append(ItemType).Append("\n");
            sb.Append("  RetailPriceModifierList: ").Append(RetailPriceModifierList).Append("\n");
            sb.Append("  LineItemExtensionList: ").Append(LineItemExtensionList).Append("\n");
            sb.Append("  PrintAdditionalLineItemTextLineList: ").Append(PrintAdditionalLineItemTextLineList).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 ComGkSoftwarePosApiModelConfigProcessFlowsRegisterLineItemAddonData);
        }

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

            return 
                (
                    this.Language == input.Language ||
                    (this.Language != null &&
                    this.Language.Equals(input.Language))
                ) && 
                (
                    this.IsoCurrencyCode == input.IsoCurrencyCode ||
                    (this.IsoCurrencyCode != null &&
                    this.IsoCurrencyCode.Equals(input.IsoCurrencyCode))
                ) && 
                (
                    this.ActualUnitPrice == input.ActualUnitPrice ||
                    (this.ActualUnitPrice != null &&
                    this.ActualUnitPrice.Equals(input.ActualUnitPrice))
                ) && 
                (
                    this.ItemType == input.ItemType ||
                    (this.ItemType != null &&
                    this.ItemType.Equals(input.ItemType))
                ) && 
                (
                    this.RetailPriceModifierList == input.RetailPriceModifierList ||
                    this.RetailPriceModifierList != null &&
                    this.RetailPriceModifierList.SequenceEqual(input.RetailPriceModifierList)
                ) && 
                (
                    this.LineItemExtensionList == input.LineItemExtensionList ||
                    this.LineItemExtensionList != null &&
                    this.LineItemExtensionList.SequenceEqual(input.LineItemExtensionList)
                ) && 
                (
                    this.PrintAdditionalLineItemTextLineList == input.PrintAdditionalLineItemTextLineList ||
                    this.PrintAdditionalLineItemTextLineList != null &&
                    this.PrintAdditionalLineItemTextLineList.SequenceEqual(input.PrintAdditionalLineItemTextLineList)
                );
        }

        /// <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.Language != null)
                    hashCode = hashCode * 59 + this.Language.GetHashCode();
                if (this.IsoCurrencyCode != null)
                    hashCode = hashCode * 59 + this.IsoCurrencyCode.GetHashCode();
                if (this.ActualUnitPrice != null)
                    hashCode = hashCode * 59 + this.ActualUnitPrice.GetHashCode();
                if (this.ItemType != null)
                    hashCode = hashCode * 59 + this.ItemType.GetHashCode();
                if (this.RetailPriceModifierList != null)
                    hashCode = hashCode * 59 + this.RetailPriceModifierList.GetHashCode();
                if (this.LineItemExtensionList != null)
                    hashCode = hashCode * 59 + this.LineItemExtensionList.GetHashCode();
                if (this.PrintAdditionalLineItemTextLineList != null)
                    hashCode = hashCode * 59 + this.PrintAdditionalLineItemTextLineList.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;
        }
    }

}
