/* 
 * 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>
    /// UpdateSalesOrderSelectedDeliveryItemRequest &lt;p&gt;The update sales order selected delivery item request object&lt;/p&gt;
    /// </summary>
    [DataContract]
    public partial class ComGkSoftwarePosApiServiceTransactionUpdateSalesOrderSelectedDeliveryItemRequest :  IEquatable<ComGkSoftwarePosApiServiceTransactionUpdateSalesOrderSelectedDeliveryItemRequest>, IValidatableObject
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="ComGkSoftwarePosApiServiceTransactionUpdateSalesOrderSelectedDeliveryItemRequest" /> class.
        /// </summary>
        [JsonConstructorAttribute]
        protected ComGkSoftwarePosApiServiceTransactionUpdateSalesOrderSelectedDeliveryItemRequest() { }
        /// <summary>
        /// Initializes a new instance of the <see cref="ComGkSoftwarePosApiServiceTransactionUpdateSalesOrderSelectedDeliveryItemRequest" /> class.
        /// </summary>
        /// <param name="orderId">&lt;p&gt;The order id.&lt;/p&gt;.</param>
        /// <param name="usePosPrices">&lt;p&gt;The use pos prices.&lt;/p&gt; (required).</param>
        /// <param name="extendOrderMode">&lt;p&gt;The extend order mode.&lt;/p&gt; (required).</param>
        /// <param name="responseData">&lt;p&gt;The response data.&lt;/p&gt;.</param>
        /// <param name="salesOrderStandardPriceSpecificationElementTypeCode">&lt;p&gt;The sales order standard price specification element type code.&lt;/p&gt;.</param>
        /// <param name="includeSalesTax">&lt;p&gt;The include sales tax.&lt;/p&gt; (required).</param>
        /// <param name="priceTypeCode">&lt;p&gt;The price type code.&lt;/p&gt;.</param>
        /// <param name="sapRebatesPromotionId">&lt;p&gt;The sap debates promotion id.&lt;/p&gt;.</param>
        /// <param name="lineItemList">&lt;p&gt;The line item list&lt;/p&gt;.</param>
        /// <param name="operationConfiguration">&lt;p&gt;The operation configuration&lt;/p&gt;.</param>
        /// <param name="deliveryTypeCode">&lt;p&gt;T delivery type code&lt;/p&gt;.</param>
        /// <param name="salesOrderFinalPricePosPriceSpecificationElementTypeCode">&lt;p&gt;The salesorder final price pos price specification element type code&lt;/p&gt;.</param>
        /// <param name="salesOrderDefaultPrepaymentPriceSpecificationElementTypeCode">&lt;p&gt;The sales order default prepayment price specification element type code&lt;/p&gt;.</param>
        /// <param name="deliveryPlantID">&lt;p&gt;The delivery plant ID&lt;/p&gt;.</param>
        /// <param name="uuid">&lt;p&gt;The uuid&lt;/p&gt;.</param>
        /// <param name="downpaymentNotAllowed">&lt;p&gt;The down payment not allowed&lt;/p&gt;.</param>
        /// <param name="downPaymentRequest">&lt;p&gt;The down payment request object&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 ComGkSoftwarePosApiServiceTransactionUpdateSalesOrderSelectedDeliveryItemRequest(string orderId = default(string), bool? usePosPrices = default(bool?), bool? extendOrderMode = default(bool?), ComGkSoftwarePosApiServiceTransactionSalesOrderCommonData responseData = default(ComGkSoftwarePosApiServiceTransactionSalesOrderCommonData), string salesOrderStandardPriceSpecificationElementTypeCode = default(string), bool? includeSalesTax = default(bool?), string priceTypeCode = default(string), string sapRebatesPromotionId = default(string), List<ComGkSoftwareGkrApiTxpoolDtoRetailTransactionLineItem> lineItemList = default(List<ComGkSoftwareGkrApiTxpoolDtoRetailTransactionLineItem>), ComGkSoftwarePosApiModelConfigProcessActionPositionOperationConfig operationConfiguration = default(ComGkSoftwarePosApiModelConfigProcessActionPositionOperationConfig), string deliveryTypeCode = default(string), string salesOrderFinalPricePosPriceSpecificationElementTypeCode = default(string), string salesOrderDefaultPrepaymentPriceSpecificationElementTypeCode = default(string), string deliveryPlantID = default(string), string uuid = default(string), bool? downpaymentNotAllowed = default(bool?), ComGkSoftwarePosApiServiceTransactionCreateDownpaymentLineItemRequest downPaymentRequest = default(ComGkSoftwarePosApiServiceTransactionCreateDownpaymentLineItemRequest), 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 "usePosPrices" is required (not null)
            if (usePosPrices == null)
            {
                throw new InvalidDataException("usePosPrices is a required property for ComGkSoftwarePosApiServiceTransactionUpdateSalesOrderSelectedDeliveryItemRequest and cannot be null");
            }
            else
            {
                this.UsePosPrices = usePosPrices;
            }
            // to ensure "extendOrderMode" is required (not null)
            if (extendOrderMode == null)
            {
                throw new InvalidDataException("extendOrderMode is a required property for ComGkSoftwarePosApiServiceTransactionUpdateSalesOrderSelectedDeliveryItemRequest and cannot be null");
            }
            else
            {
                this.ExtendOrderMode = extendOrderMode;
            }
            // to ensure "includeSalesTax" is required (not null)
            if (includeSalesTax == null)
            {
                throw new InvalidDataException("includeSalesTax is a required property for ComGkSoftwarePosApiServiceTransactionUpdateSalesOrderSelectedDeliveryItemRequest and cannot be null");
            }
            else
            {
                this.IncludeSalesTax = includeSalesTax;
            }
            this.OrderId = orderId;
            this.ResponseData = responseData;
            this.SalesOrderStandardPriceSpecificationElementTypeCode = salesOrderStandardPriceSpecificationElementTypeCode;
            this.PriceTypeCode = priceTypeCode;
            this.SapRebatesPromotionId = sapRebatesPromotionId;
            this.LineItemList = lineItemList;
            this.OperationConfiguration = operationConfiguration;
            this.DeliveryTypeCode = deliveryTypeCode;
            this.SalesOrderFinalPricePosPriceSpecificationElementTypeCode = salesOrderFinalPricePosPriceSpecificationElementTypeCode;
            this.SalesOrderDefaultPrepaymentPriceSpecificationElementTypeCode = salesOrderDefaultPrepaymentPriceSpecificationElementTypeCode;
            this.DeliveryPlantID = deliveryPlantID;
            this.Uuid = uuid;
            this.DownpaymentNotAllowed = downpaymentNotAllowed;
            this.DownPaymentRequest = downPaymentRequest;
            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 order id.&lt;/p&gt;
        /// </summary>
        /// <value>&lt;p&gt;The order id.&lt;/p&gt;</value>
        [DataMember(Name="orderId", EmitDefaultValue=false)]
        public string OrderId { get; set; }

        /// <summary>
        /// &lt;p&gt;The use pos prices.&lt;/p&gt;
        /// </summary>
        /// <value>&lt;p&gt;The use pos prices.&lt;/p&gt;</value>
        [DataMember(Name="usePosPrices", EmitDefaultValue=false)]
        public bool? UsePosPrices { get; set; }

        /// <summary>
        /// &lt;p&gt;The extend order mode.&lt;/p&gt;
        /// </summary>
        /// <value>&lt;p&gt;The extend order mode.&lt;/p&gt;</value>
        [DataMember(Name="extendOrderMode", EmitDefaultValue=false)]
        public bool? ExtendOrderMode { get; set; }

        /// <summary>
        /// &lt;p&gt;The response data.&lt;/p&gt;
        /// </summary>
        /// <value>&lt;p&gt;The response data.&lt;/p&gt;</value>
        [DataMember(Name="responseData", EmitDefaultValue=false)]
        public ComGkSoftwarePosApiServiceTransactionSalesOrderCommonData ResponseData { get; set; }

        /// <summary>
        /// &lt;p&gt;The sales order standard price specification element type code.&lt;/p&gt;
        /// </summary>
        /// <value>&lt;p&gt;The sales order standard price specification element type code.&lt;/p&gt;</value>
        [DataMember(Name="salesOrderStandardPriceSpecificationElementTypeCode", EmitDefaultValue=false)]
        public string SalesOrderStandardPriceSpecificationElementTypeCode { get; set; }

        /// <summary>
        /// &lt;p&gt;The include sales tax.&lt;/p&gt;
        /// </summary>
        /// <value>&lt;p&gt;The include sales tax.&lt;/p&gt;</value>
        [DataMember(Name="includeSalesTax", EmitDefaultValue=false)]
        public bool? IncludeSalesTax { get; set; }

        /// <summary>
        /// &lt;p&gt;The price type code.&lt;/p&gt;
        /// </summary>
        /// <value>&lt;p&gt;The price type code.&lt;/p&gt;</value>
        [DataMember(Name="priceTypeCode", EmitDefaultValue=false)]
        public string PriceTypeCode { get; set; }

        /// <summary>
        /// &lt;p&gt;The sap debates promotion id.&lt;/p&gt;
        /// </summary>
        /// <value>&lt;p&gt;The sap debates promotion id.&lt;/p&gt;</value>
        [DataMember(Name="sapRebatesPromotionId", EmitDefaultValue=false)]
        public string SapRebatesPromotionId { get; set; }

        /// <summary>
        /// &lt;p&gt;The line item list&lt;/p&gt;
        /// </summary>
        /// <value>&lt;p&gt;The line item list&lt;/p&gt;</value>
        [DataMember(Name="lineItemList", EmitDefaultValue=false)]
        public List<ComGkSoftwareGkrApiTxpoolDtoRetailTransactionLineItem> LineItemList { get; set; }

        /// <summary>
        /// &lt;p&gt;The operation configuration&lt;/p&gt;
        /// </summary>
        /// <value>&lt;p&gt;The operation configuration&lt;/p&gt;</value>
        [DataMember(Name="operationConfiguration", EmitDefaultValue=false)]
        public ComGkSoftwarePosApiModelConfigProcessActionPositionOperationConfig OperationConfiguration { get; set; }

        /// <summary>
        /// &lt;p&gt;T delivery type code&lt;/p&gt;
        /// </summary>
        /// <value>&lt;p&gt;T delivery type code&lt;/p&gt;</value>
        [DataMember(Name="deliveryTypeCode", EmitDefaultValue=false)]
        public string DeliveryTypeCode { get; set; }

        /// <summary>
        /// &lt;p&gt;The salesorder final price pos price specification element type code&lt;/p&gt;
        /// </summary>
        /// <value>&lt;p&gt;The salesorder final price pos price specification element type code&lt;/p&gt;</value>
        [DataMember(Name="salesOrderFinalPricePosPriceSpecificationElementTypeCode", EmitDefaultValue=false)]
        public string SalesOrderFinalPricePosPriceSpecificationElementTypeCode { get; set; }

        /// <summary>
        /// &lt;p&gt;The sales order default prepayment price specification element type code&lt;/p&gt;
        /// </summary>
        /// <value>&lt;p&gt;The sales order default prepayment price specification element type code&lt;/p&gt;</value>
        [DataMember(Name="salesOrderDefaultPrepaymentPriceSpecificationElementTypeCode", EmitDefaultValue=false)]
        public string SalesOrderDefaultPrepaymentPriceSpecificationElementTypeCode { get; set; }

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

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

        /// <summary>
        /// &lt;p&gt;The down payment not allowed&lt;/p&gt;
        /// </summary>
        /// <value>&lt;p&gt;The down payment not allowed&lt;/p&gt;</value>
        [DataMember(Name="downpaymentNotAllowed", EmitDefaultValue=false)]
        public bool? DownpaymentNotAllowed { get; set; }

        /// <summary>
        /// &lt;p&gt;The down payment request object&lt;/p&gt;
        /// </summary>
        /// <value>&lt;p&gt;The down payment request object&lt;/p&gt;</value>
        [DataMember(Name="downPaymentRequest", EmitDefaultValue=false)]
        public ComGkSoftwarePosApiServiceTransactionCreateDownpaymentLineItemRequest DownPaymentRequest { 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 ComGkSoftwarePosApiServiceTransactionUpdateSalesOrderSelectedDeliveryItemRequest {\n");
            sb.Append("  OrderId: ").Append(OrderId).Append("\n");
            sb.Append("  UsePosPrices: ").Append(UsePosPrices).Append("\n");
            sb.Append("  ExtendOrderMode: ").Append(ExtendOrderMode).Append("\n");
            sb.Append("  ResponseData: ").Append(ResponseData).Append("\n");
            sb.Append("  SalesOrderStandardPriceSpecificationElementTypeCode: ").Append(SalesOrderStandardPriceSpecificationElementTypeCode).Append("\n");
            sb.Append("  IncludeSalesTax: ").Append(IncludeSalesTax).Append("\n");
            sb.Append("  PriceTypeCode: ").Append(PriceTypeCode).Append("\n");
            sb.Append("  SapRebatesPromotionId: ").Append(SapRebatesPromotionId).Append("\n");
            sb.Append("  LineItemList: ").Append(LineItemList).Append("\n");
            sb.Append("  OperationConfiguration: ").Append(OperationConfiguration).Append("\n");
            sb.Append("  DeliveryTypeCode: ").Append(DeliveryTypeCode).Append("\n");
            sb.Append("  SalesOrderFinalPricePosPriceSpecificationElementTypeCode: ").Append(SalesOrderFinalPricePosPriceSpecificationElementTypeCode).Append("\n");
            sb.Append("  SalesOrderDefaultPrepaymentPriceSpecificationElementTypeCode: ").Append(SalesOrderDefaultPrepaymentPriceSpecificationElementTypeCode).Append("\n");
            sb.Append("  DeliveryPlantID: ").Append(DeliveryPlantID).Append("\n");
            sb.Append("  Uuid: ").Append(Uuid).Append("\n");
            sb.Append("  DownpaymentNotAllowed: ").Append(DownpaymentNotAllowed).Append("\n");
            sb.Append("  DownPaymentRequest: ").Append(DownPaymentRequest).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 ComGkSoftwarePosApiServiceTransactionUpdateSalesOrderSelectedDeliveryItemRequest);
        }

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

            return 
                (
                    this.OrderId == input.OrderId ||
                    (this.OrderId != null &&
                    this.OrderId.Equals(input.OrderId))
                ) && 
                (
                    this.UsePosPrices == input.UsePosPrices ||
                    (this.UsePosPrices != null &&
                    this.UsePosPrices.Equals(input.UsePosPrices))
                ) && 
                (
                    this.ExtendOrderMode == input.ExtendOrderMode ||
                    (this.ExtendOrderMode != null &&
                    this.ExtendOrderMode.Equals(input.ExtendOrderMode))
                ) && 
                (
                    this.ResponseData == input.ResponseData ||
                    (this.ResponseData != null &&
                    this.ResponseData.Equals(input.ResponseData))
                ) && 
                (
                    this.SalesOrderStandardPriceSpecificationElementTypeCode == input.SalesOrderStandardPriceSpecificationElementTypeCode ||
                    (this.SalesOrderStandardPriceSpecificationElementTypeCode != null &&
                    this.SalesOrderStandardPriceSpecificationElementTypeCode.Equals(input.SalesOrderStandardPriceSpecificationElementTypeCode))
                ) && 
                (
                    this.IncludeSalesTax == input.IncludeSalesTax ||
                    (this.IncludeSalesTax != null &&
                    this.IncludeSalesTax.Equals(input.IncludeSalesTax))
                ) && 
                (
                    this.PriceTypeCode == input.PriceTypeCode ||
                    (this.PriceTypeCode != null &&
                    this.PriceTypeCode.Equals(input.PriceTypeCode))
                ) && 
                (
                    this.SapRebatesPromotionId == input.SapRebatesPromotionId ||
                    (this.SapRebatesPromotionId != null &&
                    this.SapRebatesPromotionId.Equals(input.SapRebatesPromotionId))
                ) && 
                (
                    this.LineItemList == input.LineItemList ||
                    this.LineItemList != null &&
                    this.LineItemList.SequenceEqual(input.LineItemList)
                ) && 
                (
                    this.OperationConfiguration == input.OperationConfiguration ||
                    (this.OperationConfiguration != null &&
                    this.OperationConfiguration.Equals(input.OperationConfiguration))
                ) && 
                (
                    this.DeliveryTypeCode == input.DeliveryTypeCode ||
                    (this.DeliveryTypeCode != null &&
                    this.DeliveryTypeCode.Equals(input.DeliveryTypeCode))
                ) && 
                (
                    this.SalesOrderFinalPricePosPriceSpecificationElementTypeCode == input.SalesOrderFinalPricePosPriceSpecificationElementTypeCode ||
                    (this.SalesOrderFinalPricePosPriceSpecificationElementTypeCode != null &&
                    this.SalesOrderFinalPricePosPriceSpecificationElementTypeCode.Equals(input.SalesOrderFinalPricePosPriceSpecificationElementTypeCode))
                ) && 
                (
                    this.SalesOrderDefaultPrepaymentPriceSpecificationElementTypeCode == input.SalesOrderDefaultPrepaymentPriceSpecificationElementTypeCode ||
                    (this.SalesOrderDefaultPrepaymentPriceSpecificationElementTypeCode != null &&
                    this.SalesOrderDefaultPrepaymentPriceSpecificationElementTypeCode.Equals(input.SalesOrderDefaultPrepaymentPriceSpecificationElementTypeCode))
                ) && 
                (
                    this.DeliveryPlantID == input.DeliveryPlantID ||
                    (this.DeliveryPlantID != null &&
                    this.DeliveryPlantID.Equals(input.DeliveryPlantID))
                ) && 
                (
                    this.Uuid == input.Uuid ||
                    (this.Uuid != null &&
                    this.Uuid.Equals(input.Uuid))
                ) && 
                (
                    this.DownpaymentNotAllowed == input.DownpaymentNotAllowed ||
                    (this.DownpaymentNotAllowed != null &&
                    this.DownpaymentNotAllowed.Equals(input.DownpaymentNotAllowed))
                ) && 
                (
                    this.DownPaymentRequest == input.DownPaymentRequest ||
                    (this.DownPaymentRequest != null &&
                    this.DownPaymentRequest.Equals(input.DownPaymentRequest))
                ) && 
                (
                    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.OrderId != null)
                    hashCode = hashCode * 59 + this.OrderId.GetHashCode();
                if (this.UsePosPrices != null)
                    hashCode = hashCode * 59 + this.UsePosPrices.GetHashCode();
                if (this.ExtendOrderMode != null)
                    hashCode = hashCode * 59 + this.ExtendOrderMode.GetHashCode();
                if (this.ResponseData != null)
                    hashCode = hashCode * 59 + this.ResponseData.GetHashCode();
                if (this.SalesOrderStandardPriceSpecificationElementTypeCode != null)
                    hashCode = hashCode * 59 + this.SalesOrderStandardPriceSpecificationElementTypeCode.GetHashCode();
                if (this.IncludeSalesTax != null)
                    hashCode = hashCode * 59 + this.IncludeSalesTax.GetHashCode();
                if (this.PriceTypeCode != null)
                    hashCode = hashCode * 59 + this.PriceTypeCode.GetHashCode();
                if (this.SapRebatesPromotionId != null)
                    hashCode = hashCode * 59 + this.SapRebatesPromotionId.GetHashCode();
                if (this.LineItemList != null)
                    hashCode = hashCode * 59 + this.LineItemList.GetHashCode();
                if (this.OperationConfiguration != null)
                    hashCode = hashCode * 59 + this.OperationConfiguration.GetHashCode();
                if (this.DeliveryTypeCode != null)
                    hashCode = hashCode * 59 + this.DeliveryTypeCode.GetHashCode();
                if (this.SalesOrderFinalPricePosPriceSpecificationElementTypeCode != null)
                    hashCode = hashCode * 59 + this.SalesOrderFinalPricePosPriceSpecificationElementTypeCode.GetHashCode();
                if (this.SalesOrderDefaultPrepaymentPriceSpecificationElementTypeCode != null)
                    hashCode = hashCode * 59 + this.SalesOrderDefaultPrepaymentPriceSpecificationElementTypeCode.GetHashCode();
                if (this.DeliveryPlantID != null)
                    hashCode = hashCode * 59 + this.DeliveryPlantID.GetHashCode();
                if (this.Uuid != null)
                    hashCode = hashCode * 59 + this.Uuid.GetHashCode();
                if (this.DownpaymentNotAllowed != null)
                    hashCode = hashCode * 59 + this.DownpaymentNotAllowed.GetHashCode();
                if (this.DownPaymentRequest != null)
                    hashCode = hashCode * 59 + this.DownPaymentRequest.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;
        }
    }

}
