/* 
 * 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>
    /// SalesOrderExtendedItemDataV3 &lt;p&gt;Sales order extended item data based on sales order common data.&lt;/p&gt;
    /// </summary>
    [DataContract]
    public partial class ComGkSoftwarePosApiServiceCommunicationWsSalesOrderByIdSalesOrderExtendedItemDataV3 :  IEquatable<ComGkSoftwarePosApiServiceCommunicationWsSalesOrderByIdSalesOrderExtendedItemDataV3>, IValidatableObject
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="ComGkSoftwarePosApiServiceCommunicationWsSalesOrderByIdSalesOrderExtendedItemDataV3" /> class.
        /// </summary>
        [JsonConstructorAttribute]
        protected ComGkSoftwarePosApiServiceCommunicationWsSalesOrderByIdSalesOrderExtendedItemDataV3() { }
        /// <summary>
        /// Initializes a new instance of the <see cref="ComGkSoftwarePosApiServiceCommunicationWsSalesOrderByIdSalesOrderExtendedItemDataV3" /> class.
        /// </summary>
        /// <param name="id">&lt;p&gt;The id&lt;/p&gt;.</param>
        /// <param name="description">&lt;p&gt;The description&lt;/p&gt;.</param>
        /// <param name="productInternalId">&lt;p&gt;The productInternalId&lt;/p&gt;.</param>
        /// <param name="productSalesMeasureUnitCode">&lt;p&gt;The productSalesMeasureUnitCode&lt;/p&gt;.</param>
        /// <param name="requestDate">&lt;p&gt;The requestDate&lt;/p&gt; Date format &#39;yyyy-MM-dd&#39;T&#39;HH:mm:ss.SSS&#39; (no timezone).</param>
        /// <param name="deliveryTermsDeliveryPlantId">&lt;p&gt;The deliveryTermsDeliveryPlantId&lt;/p&gt;.</param>
        /// <param name="requestedQuantity">&lt;p&gt;The requestedQuantity&lt;/p&gt; (required).</param>
        /// <param name="receivingPointId">&lt;p&gt;The receivingPointId&lt;/p&gt;.</param>
        /// <param name="productStandardId">&lt;p&gt;The product standard id&lt;/p&gt;.</param>
        /// <param name="productRejectionReasonCode">&lt;p&gt;The product rejection reason code.&lt;/p&gt;.</param>
        /// <param name="itemPriceComponents">&lt;p&gt;The item price component list.&lt;/p&gt;.</param>
        /// <param name="totalValuesRequestedQuantity">&lt;p&gt;The requested quantity.&lt;/p&gt;.</param>
        /// <param name="totalValuesConfirmedQuantity">&lt;p&gt;The confirmed quantity.&lt;/p&gt;.</param>
        /// <param name="totalValuesDeliveredQuantity">&lt;p&gt;The delivered quantity.&lt;/p&gt;.</param>
        /// <param name="totalValuesNetAmount">&lt;p&gt;The total net amount.&lt;/p&gt;.</param>
        /// <param name="totalValuesNetPrice">&lt;p&gt;The total net price.&lt;/p&gt;.</param>
        /// <param name="totalValuesTaxAmount">&lt;p&gt;The total tax amount.&lt;/p&gt;.</param>
        /// <param name="scheduleLines">&lt;p&gt;The schedule line list.&lt;/p&gt;.</param>
        /// <param name="xXCustom08">&lt;p&gt;Customizable information&lt;/p&gt;.</param>
        /// <param name="xXCustom10">&lt;p&gt;Customizable information&lt;/p&gt;.</param>
        /// <param name="xXCustom09">&lt;p&gt;Customizable information&lt;/p&gt;.</param>
        /// <param name="xXCustom07">&lt;p&gt;Customizable information&lt;/p&gt;.</param>
        /// <param name="xXCustom05">&lt;p&gt;Customizable information&lt;/p&gt;.</param>
        /// <param name="xXCustom06">&lt;p&gt;Customizable information&lt;/p&gt;.</param>
        /// <param name="xXCustom11">&lt;p&gt;Customizable information&lt;/p&gt;.</param>
        /// <param name="xXCustom12">&lt;p&gt;Customizable information&lt;/p&gt;.</param>
        /// <param name="xXCustom13">&lt;p&gt;Customizable information&lt;/p&gt;.</param>
        /// <param name="xXCustom14">&lt;p&gt;Customizable information&lt;/p&gt;.</param>
        /// <param name="xXCustom15">&lt;p&gt;Customizable information&lt;/p&gt;.</param>
        /// <param name="xXCustom03">&lt;p&gt;Customizable information&lt;/p&gt;.</param>
        /// <param name="xXCustom02">&lt;p&gt;Customizable information&lt;/p&gt;.</param>
        /// <param name="xXCustom04">&lt;p&gt;Customizable information&lt;/p&gt;.</param>
        /// <param name="xXCustom01">&lt;p&gt;Customizable information&lt;/p&gt;.</param>
        public ComGkSoftwarePosApiServiceCommunicationWsSalesOrderByIdSalesOrderExtendedItemDataV3(string id = default(string), string description = default(string), string productInternalId = default(string), string productSalesMeasureUnitCode = default(string), string requestDate = default(string), string deliveryTermsDeliveryPlantId = default(string), double? requestedQuantity = default(double?), string receivingPointId = default(string), string productStandardId = default(string), string productRejectionReasonCode = default(string), List<ComGkSoftwarePosApiServiceCommunicationWsSalesOrderWrapperSalesOrderPriceComponentV3> itemPriceComponents = default(List<ComGkSoftwarePosApiServiceCommunicationWsSalesOrderWrapperSalesOrderPriceComponentV3>), double? totalValuesRequestedQuantity = default(double?), double? totalValuesConfirmedQuantity = default(double?), double? totalValuesDeliveredQuantity = default(double?), double? totalValuesNetAmount = default(double?), double? totalValuesNetPrice = default(double?), double? totalValuesTaxAmount = default(double?), List<ComGkSoftwarePosApiServiceTransactionSalesOrderCommonScheduleLine> scheduleLines = default(List<ComGkSoftwarePosApiServiceTransactionSalesOrderCommonScheduleLine>), string xXCustom08 = default(string), string xXCustom10 = default(string), string xXCustom09 = default(string), string xXCustom07 = default(string), string xXCustom05 = default(string), string xXCustom06 = default(string), string xXCustom11 = default(string), string xXCustom12 = default(string), string xXCustom13 = default(string), string xXCustom14 = default(string), string xXCustom15 = default(string), string xXCustom03 = default(string), string xXCustom02 = default(string), string xXCustom04 = default(string), string xXCustom01 = default(string))
        {
            // to ensure "requestedQuantity" is required (not null)
            if (requestedQuantity == null)
            {
                throw new InvalidDataException("requestedQuantity is a required property for ComGkSoftwarePosApiServiceCommunicationWsSalesOrderByIdSalesOrderExtendedItemDataV3 and cannot be null");
            }
            else
            {
                this.RequestedQuantity = requestedQuantity;
            }
            this.Id = id;
            this.Description = description;
            this.ProductInternalId = productInternalId;
            this.ProductSalesMeasureUnitCode = productSalesMeasureUnitCode;
            this.RequestDate = requestDate;
            this.DeliveryTermsDeliveryPlantId = deliveryTermsDeliveryPlantId;
            this.ReceivingPointId = receivingPointId;
            this.ProductStandardId = productStandardId;
            this.ProductRejectionReasonCode = productRejectionReasonCode;
            this.ItemPriceComponents = itemPriceComponents;
            this.TotalValuesRequestedQuantity = totalValuesRequestedQuantity;
            this.TotalValuesConfirmedQuantity = totalValuesConfirmedQuantity;
            this.TotalValuesDeliveredQuantity = totalValuesDeliveredQuantity;
            this.TotalValuesNetAmount = totalValuesNetAmount;
            this.TotalValuesNetPrice = totalValuesNetPrice;
            this.TotalValuesTaxAmount = totalValuesTaxAmount;
            this.ScheduleLines = scheduleLines;
            this.XXCustom08 = xXCustom08;
            this.XXCustom10 = xXCustom10;
            this.XXCustom09 = xXCustom09;
            this.XXCustom07 = xXCustom07;
            this.XXCustom05 = xXCustom05;
            this.XXCustom06 = xXCustom06;
            this.XXCustom11 = xXCustom11;
            this.XXCustom12 = xXCustom12;
            this.XXCustom13 = xXCustom13;
            this.XXCustom14 = xXCustom14;
            this.XXCustom15 = xXCustom15;
            this.XXCustom03 = xXCustom03;
            this.XXCustom02 = xXCustom02;
            this.XXCustom04 = xXCustom04;
            this.XXCustom01 = xXCustom01;
        }
        
        /// <summary>
        /// &lt;p&gt;The id&lt;/p&gt;
        /// </summary>
        /// <value>&lt;p&gt;The id&lt;/p&gt;</value>
        [DataMember(Name="id", EmitDefaultValue=false)]
        public string Id { get; set; }

        /// <summary>
        /// &lt;p&gt;The description&lt;/p&gt;
        /// </summary>
        /// <value>&lt;p&gt;The description&lt;/p&gt;</value>
        [DataMember(Name="description", EmitDefaultValue=false)]
        public string Description { get; set; }

        /// <summary>
        /// &lt;p&gt;The productInternalId&lt;/p&gt;
        /// </summary>
        /// <value>&lt;p&gt;The productInternalId&lt;/p&gt;</value>
        [DataMember(Name="productInternalId", EmitDefaultValue=false)]
        public string ProductInternalId { get; set; }

        /// <summary>
        /// &lt;p&gt;The productSalesMeasureUnitCode&lt;/p&gt;
        /// </summary>
        /// <value>&lt;p&gt;The productSalesMeasureUnitCode&lt;/p&gt;</value>
        [DataMember(Name="productSalesMeasureUnitCode", EmitDefaultValue=false)]
        public string ProductSalesMeasureUnitCode { get; set; }

        /// <summary>
        /// &lt;p&gt;The requestDate&lt;/p&gt; Date format &#39;yyyy-MM-dd&#39;T&#39;HH:mm:ss.SSS&#39; (no timezone)
        /// </summary>
        /// <value>&lt;p&gt;The requestDate&lt;/p&gt; Date format &#39;yyyy-MM-dd&#39;T&#39;HH:mm:ss.SSS&#39; (no timezone)</value>
        [DataMember(Name="requestDate", EmitDefaultValue=false)]
        public string RequestDate { get; set; }

        /// <summary>
        /// &lt;p&gt;The deliveryTermsDeliveryPlantId&lt;/p&gt;
        /// </summary>
        /// <value>&lt;p&gt;The deliveryTermsDeliveryPlantId&lt;/p&gt;</value>
        [DataMember(Name="deliveryTermsDeliveryPlantId", EmitDefaultValue=false)]
        public string DeliveryTermsDeliveryPlantId { get; set; }

        /// <summary>
        /// &lt;p&gt;The requestedQuantity&lt;/p&gt;
        /// </summary>
        /// <value>&lt;p&gt;The requestedQuantity&lt;/p&gt;</value>
        [DataMember(Name="requestedQuantity", EmitDefaultValue=false)]
        public double? RequestedQuantity { get; set; }

        /// <summary>
        /// &lt;p&gt;The receivingPointId&lt;/p&gt;
        /// </summary>
        /// <value>&lt;p&gt;The receivingPointId&lt;/p&gt;</value>
        [DataMember(Name="receivingPointId", EmitDefaultValue=false)]
        public string ReceivingPointId { get; set; }

        /// <summary>
        /// &lt;p&gt;The product standard id&lt;/p&gt;
        /// </summary>
        /// <value>&lt;p&gt;The product standard id&lt;/p&gt;</value>
        [DataMember(Name="productStandardId", EmitDefaultValue=false)]
        public string ProductStandardId { get; set; }

        /// <summary>
        /// &lt;p&gt;The product rejection reason code.&lt;/p&gt;
        /// </summary>
        /// <value>&lt;p&gt;The product rejection reason code.&lt;/p&gt;</value>
        [DataMember(Name="productRejectionReasonCode", EmitDefaultValue=false)]
        public string ProductRejectionReasonCode { get; set; }

        /// <summary>
        /// &lt;p&gt;The item price component list.&lt;/p&gt;
        /// </summary>
        /// <value>&lt;p&gt;The item price component list.&lt;/p&gt;</value>
        [DataMember(Name="itemPriceComponents", EmitDefaultValue=false)]
        public List<ComGkSoftwarePosApiServiceCommunicationWsSalesOrderWrapperSalesOrderPriceComponentV3> ItemPriceComponents { get; set; }

        /// <summary>
        /// &lt;p&gt;The requested quantity.&lt;/p&gt;
        /// </summary>
        /// <value>&lt;p&gt;The requested quantity.&lt;/p&gt;</value>
        [DataMember(Name="totalValuesRequestedQuantity", EmitDefaultValue=false)]
        public double? TotalValuesRequestedQuantity { get; set; }

        /// <summary>
        /// &lt;p&gt;The confirmed quantity.&lt;/p&gt;
        /// </summary>
        /// <value>&lt;p&gt;The confirmed quantity.&lt;/p&gt;</value>
        [DataMember(Name="totalValuesConfirmedQuantity", EmitDefaultValue=false)]
        public double? TotalValuesConfirmedQuantity { get; set; }

        /// <summary>
        /// &lt;p&gt;The delivered quantity.&lt;/p&gt;
        /// </summary>
        /// <value>&lt;p&gt;The delivered quantity.&lt;/p&gt;</value>
        [DataMember(Name="totalValuesDeliveredQuantity", EmitDefaultValue=false)]
        public double? TotalValuesDeliveredQuantity { get; set; }

        /// <summary>
        /// &lt;p&gt;The total net amount.&lt;/p&gt;
        /// </summary>
        /// <value>&lt;p&gt;The total net amount.&lt;/p&gt;</value>
        [DataMember(Name="totalValuesNetAmount", EmitDefaultValue=false)]
        public double? TotalValuesNetAmount { get; set; }

        /// <summary>
        /// &lt;p&gt;The total net price.&lt;/p&gt;
        /// </summary>
        /// <value>&lt;p&gt;The total net price.&lt;/p&gt;</value>
        [DataMember(Name="totalValuesNetPrice", EmitDefaultValue=false)]
        public double? TotalValuesNetPrice { get; set; }

        /// <summary>
        /// &lt;p&gt;The total tax amount.&lt;/p&gt;
        /// </summary>
        /// <value>&lt;p&gt;The total tax amount.&lt;/p&gt;</value>
        [DataMember(Name="totalValuesTaxAmount", EmitDefaultValue=false)]
        public double? TotalValuesTaxAmount { get; set; }

        /// <summary>
        /// &lt;p&gt;The schedule line list.&lt;/p&gt;
        /// </summary>
        /// <value>&lt;p&gt;The schedule line list.&lt;/p&gt;</value>
        [DataMember(Name="scheduleLines", EmitDefaultValue=false)]
        public List<ComGkSoftwarePosApiServiceTransactionSalesOrderCommonScheduleLine> ScheduleLines { get; set; }

        /// <summary>
        /// &lt;p&gt;Customizable information&lt;/p&gt;
        /// </summary>
        /// <value>&lt;p&gt;Customizable information&lt;/p&gt;</value>
        [DataMember(Name="xXCustom08", EmitDefaultValue=false)]
        public string XXCustom08 { get; set; }

        /// <summary>
        /// &lt;p&gt;Customizable information&lt;/p&gt;
        /// </summary>
        /// <value>&lt;p&gt;Customizable information&lt;/p&gt;</value>
        [DataMember(Name="xXCustom10", EmitDefaultValue=false)]
        public string XXCustom10 { get; set; }

        /// <summary>
        /// &lt;p&gt;Customizable information&lt;/p&gt;
        /// </summary>
        /// <value>&lt;p&gt;Customizable information&lt;/p&gt;</value>
        [DataMember(Name="xXCustom09", EmitDefaultValue=false)]
        public string XXCustom09 { get; set; }

        /// <summary>
        /// &lt;p&gt;Customizable information&lt;/p&gt;
        /// </summary>
        /// <value>&lt;p&gt;Customizable information&lt;/p&gt;</value>
        [DataMember(Name="xXCustom07", EmitDefaultValue=false)]
        public string XXCustom07 { get; set; }

        /// <summary>
        /// &lt;p&gt;Customizable information&lt;/p&gt;
        /// </summary>
        /// <value>&lt;p&gt;Customizable information&lt;/p&gt;</value>
        [DataMember(Name="xXCustom05", EmitDefaultValue=false)]
        public string XXCustom05 { get; set; }

        /// <summary>
        /// &lt;p&gt;Customizable information&lt;/p&gt;
        /// </summary>
        /// <value>&lt;p&gt;Customizable information&lt;/p&gt;</value>
        [DataMember(Name="xXCustom06", EmitDefaultValue=false)]
        public string XXCustom06 { get; set; }

        /// <summary>
        /// &lt;p&gt;Customizable information&lt;/p&gt;
        /// </summary>
        /// <value>&lt;p&gt;Customizable information&lt;/p&gt;</value>
        [DataMember(Name="xXCustom11", EmitDefaultValue=false)]
        public string XXCustom11 { get; set; }

        /// <summary>
        /// &lt;p&gt;Customizable information&lt;/p&gt;
        /// </summary>
        /// <value>&lt;p&gt;Customizable information&lt;/p&gt;</value>
        [DataMember(Name="xXCustom12", EmitDefaultValue=false)]
        public string XXCustom12 { get; set; }

        /// <summary>
        /// &lt;p&gt;Customizable information&lt;/p&gt;
        /// </summary>
        /// <value>&lt;p&gt;Customizable information&lt;/p&gt;</value>
        [DataMember(Name="xXCustom13", EmitDefaultValue=false)]
        public string XXCustom13 { get; set; }

        /// <summary>
        /// &lt;p&gt;Customizable information&lt;/p&gt;
        /// </summary>
        /// <value>&lt;p&gt;Customizable information&lt;/p&gt;</value>
        [DataMember(Name="xXCustom14", EmitDefaultValue=false)]
        public string XXCustom14 { get; set; }

        /// <summary>
        /// &lt;p&gt;Customizable information&lt;/p&gt;
        /// </summary>
        /// <value>&lt;p&gt;Customizable information&lt;/p&gt;</value>
        [DataMember(Name="xXCustom15", EmitDefaultValue=false)]
        public string XXCustom15 { get; set; }

        /// <summary>
        /// &lt;p&gt;Customizable information&lt;/p&gt;
        /// </summary>
        /// <value>&lt;p&gt;Customizable information&lt;/p&gt;</value>
        [DataMember(Name="xXCustom03", EmitDefaultValue=false)]
        public string XXCustom03 { get; set; }

        /// <summary>
        /// &lt;p&gt;Customizable information&lt;/p&gt;
        /// </summary>
        /// <value>&lt;p&gt;Customizable information&lt;/p&gt;</value>
        [DataMember(Name="xXCustom02", EmitDefaultValue=false)]
        public string XXCustom02 { get; set; }

        /// <summary>
        /// &lt;p&gt;Customizable information&lt;/p&gt;
        /// </summary>
        /// <value>&lt;p&gt;Customizable information&lt;/p&gt;</value>
        [DataMember(Name="xXCustom04", EmitDefaultValue=false)]
        public string XXCustom04 { get; set; }

        /// <summary>
        /// &lt;p&gt;Customizable information&lt;/p&gt;
        /// </summary>
        /// <value>&lt;p&gt;Customizable information&lt;/p&gt;</value>
        [DataMember(Name="xXCustom01", EmitDefaultValue=false)]
        public string XXCustom01 { 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 ComGkSoftwarePosApiServiceCommunicationWsSalesOrderByIdSalesOrderExtendedItemDataV3 {\n");
            sb.Append("  Id: ").Append(Id).Append("\n");
            sb.Append("  Description: ").Append(Description).Append("\n");
            sb.Append("  ProductInternalId: ").Append(ProductInternalId).Append("\n");
            sb.Append("  ProductSalesMeasureUnitCode: ").Append(ProductSalesMeasureUnitCode).Append("\n");
            sb.Append("  RequestDate: ").Append(RequestDate).Append("\n");
            sb.Append("  DeliveryTermsDeliveryPlantId: ").Append(DeliveryTermsDeliveryPlantId).Append("\n");
            sb.Append("  RequestedQuantity: ").Append(RequestedQuantity).Append("\n");
            sb.Append("  ReceivingPointId: ").Append(ReceivingPointId).Append("\n");
            sb.Append("  ProductStandardId: ").Append(ProductStandardId).Append("\n");
            sb.Append("  ProductRejectionReasonCode: ").Append(ProductRejectionReasonCode).Append("\n");
            sb.Append("  ItemPriceComponents: ").Append(ItemPriceComponents).Append("\n");
            sb.Append("  TotalValuesRequestedQuantity: ").Append(TotalValuesRequestedQuantity).Append("\n");
            sb.Append("  TotalValuesConfirmedQuantity: ").Append(TotalValuesConfirmedQuantity).Append("\n");
            sb.Append("  TotalValuesDeliveredQuantity: ").Append(TotalValuesDeliveredQuantity).Append("\n");
            sb.Append("  TotalValuesNetAmount: ").Append(TotalValuesNetAmount).Append("\n");
            sb.Append("  TotalValuesNetPrice: ").Append(TotalValuesNetPrice).Append("\n");
            sb.Append("  TotalValuesTaxAmount: ").Append(TotalValuesTaxAmount).Append("\n");
            sb.Append("  ScheduleLines: ").Append(ScheduleLines).Append("\n");
            sb.Append("  XXCustom08: ").Append(XXCustom08).Append("\n");
            sb.Append("  XXCustom10: ").Append(XXCustom10).Append("\n");
            sb.Append("  XXCustom09: ").Append(XXCustom09).Append("\n");
            sb.Append("  XXCustom07: ").Append(XXCustom07).Append("\n");
            sb.Append("  XXCustom05: ").Append(XXCustom05).Append("\n");
            sb.Append("  XXCustom06: ").Append(XXCustom06).Append("\n");
            sb.Append("  XXCustom11: ").Append(XXCustom11).Append("\n");
            sb.Append("  XXCustom12: ").Append(XXCustom12).Append("\n");
            sb.Append("  XXCustom13: ").Append(XXCustom13).Append("\n");
            sb.Append("  XXCustom14: ").Append(XXCustom14).Append("\n");
            sb.Append("  XXCustom15: ").Append(XXCustom15).Append("\n");
            sb.Append("  XXCustom03: ").Append(XXCustom03).Append("\n");
            sb.Append("  XXCustom02: ").Append(XXCustom02).Append("\n");
            sb.Append("  XXCustom04: ").Append(XXCustom04).Append("\n");
            sb.Append("  XXCustom01: ").Append(XXCustom01).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 ComGkSoftwarePosApiServiceCommunicationWsSalesOrderByIdSalesOrderExtendedItemDataV3);
        }

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

            return 
                (
                    this.Id == input.Id ||
                    (this.Id != null &&
                    this.Id.Equals(input.Id))
                ) && 
                (
                    this.Description == input.Description ||
                    (this.Description != null &&
                    this.Description.Equals(input.Description))
                ) && 
                (
                    this.ProductInternalId == input.ProductInternalId ||
                    (this.ProductInternalId != null &&
                    this.ProductInternalId.Equals(input.ProductInternalId))
                ) && 
                (
                    this.ProductSalesMeasureUnitCode == input.ProductSalesMeasureUnitCode ||
                    (this.ProductSalesMeasureUnitCode != null &&
                    this.ProductSalesMeasureUnitCode.Equals(input.ProductSalesMeasureUnitCode))
                ) && 
                (
                    this.RequestDate == input.RequestDate ||
                    (this.RequestDate != null &&
                    this.RequestDate.Equals(input.RequestDate))
                ) && 
                (
                    this.DeliveryTermsDeliveryPlantId == input.DeliveryTermsDeliveryPlantId ||
                    (this.DeliveryTermsDeliveryPlantId != null &&
                    this.DeliveryTermsDeliveryPlantId.Equals(input.DeliveryTermsDeliveryPlantId))
                ) && 
                (
                    this.RequestedQuantity == input.RequestedQuantity ||
                    (this.RequestedQuantity != null &&
                    this.RequestedQuantity.Equals(input.RequestedQuantity))
                ) && 
                (
                    this.ReceivingPointId == input.ReceivingPointId ||
                    (this.ReceivingPointId != null &&
                    this.ReceivingPointId.Equals(input.ReceivingPointId))
                ) && 
                (
                    this.ProductStandardId == input.ProductStandardId ||
                    (this.ProductStandardId != null &&
                    this.ProductStandardId.Equals(input.ProductStandardId))
                ) && 
                (
                    this.ProductRejectionReasonCode == input.ProductRejectionReasonCode ||
                    (this.ProductRejectionReasonCode != null &&
                    this.ProductRejectionReasonCode.Equals(input.ProductRejectionReasonCode))
                ) && 
                (
                    this.ItemPriceComponents == input.ItemPriceComponents ||
                    this.ItemPriceComponents != null &&
                    this.ItemPriceComponents.SequenceEqual(input.ItemPriceComponents)
                ) && 
                (
                    this.TotalValuesRequestedQuantity == input.TotalValuesRequestedQuantity ||
                    (this.TotalValuesRequestedQuantity != null &&
                    this.TotalValuesRequestedQuantity.Equals(input.TotalValuesRequestedQuantity))
                ) && 
                (
                    this.TotalValuesConfirmedQuantity == input.TotalValuesConfirmedQuantity ||
                    (this.TotalValuesConfirmedQuantity != null &&
                    this.TotalValuesConfirmedQuantity.Equals(input.TotalValuesConfirmedQuantity))
                ) && 
                (
                    this.TotalValuesDeliveredQuantity == input.TotalValuesDeliveredQuantity ||
                    (this.TotalValuesDeliveredQuantity != null &&
                    this.TotalValuesDeliveredQuantity.Equals(input.TotalValuesDeliveredQuantity))
                ) && 
                (
                    this.TotalValuesNetAmount == input.TotalValuesNetAmount ||
                    (this.TotalValuesNetAmount != null &&
                    this.TotalValuesNetAmount.Equals(input.TotalValuesNetAmount))
                ) && 
                (
                    this.TotalValuesNetPrice == input.TotalValuesNetPrice ||
                    (this.TotalValuesNetPrice != null &&
                    this.TotalValuesNetPrice.Equals(input.TotalValuesNetPrice))
                ) && 
                (
                    this.TotalValuesTaxAmount == input.TotalValuesTaxAmount ||
                    (this.TotalValuesTaxAmount != null &&
                    this.TotalValuesTaxAmount.Equals(input.TotalValuesTaxAmount))
                ) && 
                (
                    this.ScheduleLines == input.ScheduleLines ||
                    this.ScheduleLines != null &&
                    this.ScheduleLines.SequenceEqual(input.ScheduleLines)
                ) && 
                (
                    this.XXCustom08 == input.XXCustom08 ||
                    (this.XXCustom08 != null &&
                    this.XXCustom08.Equals(input.XXCustom08))
                ) && 
                (
                    this.XXCustom10 == input.XXCustom10 ||
                    (this.XXCustom10 != null &&
                    this.XXCustom10.Equals(input.XXCustom10))
                ) && 
                (
                    this.XXCustom09 == input.XXCustom09 ||
                    (this.XXCustom09 != null &&
                    this.XXCustom09.Equals(input.XXCustom09))
                ) && 
                (
                    this.XXCustom07 == input.XXCustom07 ||
                    (this.XXCustom07 != null &&
                    this.XXCustom07.Equals(input.XXCustom07))
                ) && 
                (
                    this.XXCustom05 == input.XXCustom05 ||
                    (this.XXCustom05 != null &&
                    this.XXCustom05.Equals(input.XXCustom05))
                ) && 
                (
                    this.XXCustom06 == input.XXCustom06 ||
                    (this.XXCustom06 != null &&
                    this.XXCustom06.Equals(input.XXCustom06))
                ) && 
                (
                    this.XXCustom11 == input.XXCustom11 ||
                    (this.XXCustom11 != null &&
                    this.XXCustom11.Equals(input.XXCustom11))
                ) && 
                (
                    this.XXCustom12 == input.XXCustom12 ||
                    (this.XXCustom12 != null &&
                    this.XXCustom12.Equals(input.XXCustom12))
                ) && 
                (
                    this.XXCustom13 == input.XXCustom13 ||
                    (this.XXCustom13 != null &&
                    this.XXCustom13.Equals(input.XXCustom13))
                ) && 
                (
                    this.XXCustom14 == input.XXCustom14 ||
                    (this.XXCustom14 != null &&
                    this.XXCustom14.Equals(input.XXCustom14))
                ) && 
                (
                    this.XXCustom15 == input.XXCustom15 ||
                    (this.XXCustom15 != null &&
                    this.XXCustom15.Equals(input.XXCustom15))
                ) && 
                (
                    this.XXCustom03 == input.XXCustom03 ||
                    (this.XXCustom03 != null &&
                    this.XXCustom03.Equals(input.XXCustom03))
                ) && 
                (
                    this.XXCustom02 == input.XXCustom02 ||
                    (this.XXCustom02 != null &&
                    this.XXCustom02.Equals(input.XXCustom02))
                ) && 
                (
                    this.XXCustom04 == input.XXCustom04 ||
                    (this.XXCustom04 != null &&
                    this.XXCustom04.Equals(input.XXCustom04))
                ) && 
                (
                    this.XXCustom01 == input.XXCustom01 ||
                    (this.XXCustom01 != null &&
                    this.XXCustom01.Equals(input.XXCustom01))
                );
        }

        /// <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.Id != null)
                    hashCode = hashCode * 59 + this.Id.GetHashCode();
                if (this.Description != null)
                    hashCode = hashCode * 59 + this.Description.GetHashCode();
                if (this.ProductInternalId != null)
                    hashCode = hashCode * 59 + this.ProductInternalId.GetHashCode();
                if (this.ProductSalesMeasureUnitCode != null)
                    hashCode = hashCode * 59 + this.ProductSalesMeasureUnitCode.GetHashCode();
                if (this.RequestDate != null)
                    hashCode = hashCode * 59 + this.RequestDate.GetHashCode();
                if (this.DeliveryTermsDeliveryPlantId != null)
                    hashCode = hashCode * 59 + this.DeliveryTermsDeliveryPlantId.GetHashCode();
                if (this.RequestedQuantity != null)
                    hashCode = hashCode * 59 + this.RequestedQuantity.GetHashCode();
                if (this.ReceivingPointId != null)
                    hashCode = hashCode * 59 + this.ReceivingPointId.GetHashCode();
                if (this.ProductStandardId != null)
                    hashCode = hashCode * 59 + this.ProductStandardId.GetHashCode();
                if (this.ProductRejectionReasonCode != null)
                    hashCode = hashCode * 59 + this.ProductRejectionReasonCode.GetHashCode();
                if (this.ItemPriceComponents != null)
                    hashCode = hashCode * 59 + this.ItemPriceComponents.GetHashCode();
                if (this.TotalValuesRequestedQuantity != null)
                    hashCode = hashCode * 59 + this.TotalValuesRequestedQuantity.GetHashCode();
                if (this.TotalValuesConfirmedQuantity != null)
                    hashCode = hashCode * 59 + this.TotalValuesConfirmedQuantity.GetHashCode();
                if (this.TotalValuesDeliveredQuantity != null)
                    hashCode = hashCode * 59 + this.TotalValuesDeliveredQuantity.GetHashCode();
                if (this.TotalValuesNetAmount != null)
                    hashCode = hashCode * 59 + this.TotalValuesNetAmount.GetHashCode();
                if (this.TotalValuesNetPrice != null)
                    hashCode = hashCode * 59 + this.TotalValuesNetPrice.GetHashCode();
                if (this.TotalValuesTaxAmount != null)
                    hashCode = hashCode * 59 + this.TotalValuesTaxAmount.GetHashCode();
                if (this.ScheduleLines != null)
                    hashCode = hashCode * 59 + this.ScheduleLines.GetHashCode();
                if (this.XXCustom08 != null)
                    hashCode = hashCode * 59 + this.XXCustom08.GetHashCode();
                if (this.XXCustom10 != null)
                    hashCode = hashCode * 59 + this.XXCustom10.GetHashCode();
                if (this.XXCustom09 != null)
                    hashCode = hashCode * 59 + this.XXCustom09.GetHashCode();
                if (this.XXCustom07 != null)
                    hashCode = hashCode * 59 + this.XXCustom07.GetHashCode();
                if (this.XXCustom05 != null)
                    hashCode = hashCode * 59 + this.XXCustom05.GetHashCode();
                if (this.XXCustom06 != null)
                    hashCode = hashCode * 59 + this.XXCustom06.GetHashCode();
                if (this.XXCustom11 != null)
                    hashCode = hashCode * 59 + this.XXCustom11.GetHashCode();
                if (this.XXCustom12 != null)
                    hashCode = hashCode * 59 + this.XXCustom12.GetHashCode();
                if (this.XXCustom13 != null)
                    hashCode = hashCode * 59 + this.XXCustom13.GetHashCode();
                if (this.XXCustom14 != null)
                    hashCode = hashCode * 59 + this.XXCustom14.GetHashCode();
                if (this.XXCustom15 != null)
                    hashCode = hashCode * 59 + this.XXCustom15.GetHashCode();
                if (this.XXCustom03 != null)
                    hashCode = hashCode * 59 + this.XXCustom03.GetHashCode();
                if (this.XXCustom02 != null)
                    hashCode = hashCode * 59 + this.XXCustom02.GetHashCode();
                if (this.XXCustom04 != null)
                    hashCode = hashCode * 59 + this.XXCustom04.GetHashCode();
                if (this.XXCustom01 != null)
                    hashCode = hashCode * 59 + this.XXCustom01.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;
        }
    }

}
