/* 
 * 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>
    /// SaleReturnLineItemDataRequest &lt;p&gt;Request object for the item registration process.&lt;/p&gt;
    /// </summary>
    [DataContract]
    public partial class ComGkSoftwarePosApiServiceTransactionSaleReturnLineItemDataRequest :  IEquatable<ComGkSoftwarePosApiServiceTransactionSaleReturnLineItemDataRequest>, IValidatableObject
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="ComGkSoftwarePosApiServiceTransactionSaleReturnLineItemDataRequest" /> class.
        /// </summary>
        /// <param name="itemType">&lt;p&gt;The itemType.&lt;/p&gt;.</param>
        /// <param name="subItemType">&lt;p&gt;The subItemType&lt;/p&gt;.</param>
        /// <param name="actionCode">&lt;p&gt;The actionCode&lt;/p&gt;.</param>
        /// <param name="units">&lt;p&gt;The units&lt;/p&gt;.</param>
        /// <param name="quantity">&lt;p&gt;The quantity&lt;/p&gt;.</param>
        /// <param name="quantityInputMethod">&lt;p&gt;The quantityInputMethod&lt;/p&gt;.</param>
        /// <param name="itemId">&lt;p&gt;The itemId&lt;/p&gt;.</param>
        /// <param name="mainPOSItemId">&lt;p&gt;The mainPOSItemId&lt;/p&gt;.</param>
        /// <param name="posItemId">&lt;p&gt;The posItemId&lt;/p&gt;.</param>
        /// <param name="registrationNumber">&lt;p&gt;The registrationNumber&lt;/p&gt;.</param>
        /// <param name="mainMerchandiseHierarchyGroupId">&lt;p&gt;The mainMerchandiseHierarchyGroupId&lt;/p&gt;.</param>
        /// <param name="mainMerchandiseHierarchyGroupIdQualifier">&lt;p&gt;The mainMerchandiseHierarchyGroupIdQualifier&lt;/p&gt;.</param>
        /// <param name="merchandiseHierarchyGroupName">&lt;p&gt;The merchandiseHierarchyGroupName&lt;/p&gt;.</param>
        /// <param name="merchandiseHierarchyGroupDescription">&lt;p&gt;The merchandiseHierarchyGroupDescription&lt;/p&gt;.</param>
        /// <param name="receiptText">&lt;p&gt;The receiptText&lt;/p&gt;.</param>
        /// <param name="receiptDescription">&lt;p&gt;The receiptDescription&lt;/p&gt;.</param>
        /// <param name="regularUnitPrice">&lt;p&gt;The regularUnitPrice&lt;/p&gt;.</param>
        /// <param name="actualUnitPrice">&lt;p&gt;The actualUnitPrice&lt;/p&gt;.</param>
        /// <param name="priceTypeCode">&lt;p&gt;The priceTypeCode&lt;/p&gt;.</param>
        /// <param name="taxGroupID">&lt;p&gt;The taxGroupID&lt;/p&gt;.</param>
        /// <param name="discountFlag">&lt;p&gt;The discountFlag&lt;/p&gt;.</param>
        /// <param name="frequentShopperPointsEligibilityFlag">&lt;p&gt;The frequentShopperPointsEligibilityFlag&lt;/p&gt;.</param>
        /// <param name="discountTypeCode">&lt;p&gt;The discountTypeCode&lt;/p&gt;.</param>
        /// <param name="invoiceId">&lt;p&gt;The invoiceId&lt;/p&gt;.</param>
        /// <param name="priceModifierList">&lt;p&gt;The price modifier list.&lt;/p&gt;.</param>
        /// <param name="promotion">&lt;p&gt;The promotion.&lt;/p&gt;.</param>
        /// <param name="alternativeTaxInfos">&lt;p&gt;The alternative tax infos for updating the tax group.&lt;/p&gt;.</param>
        /// <param name="priceChangeTypeCode">&lt;p&gt;The price change type code&lt;/p&gt;.</param>
        /// <param name="prohibitReturnFlag">&lt;p&gt;The prohibit return flag&lt;/p&gt;.</param>
        /// <param name="notConsideredByLoyaltyEngineFlag">&lt;p&gt;The not considered by loyalty (pricing) engine flag&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 ComGkSoftwarePosApiServiceTransactionSaleReturnLineItemDataRequest(string itemType = default(string), string subItemType = default(string), string actionCode = default(string), double? units = default(double?), int? quantity = default(int?), string quantityInputMethod = default(string), string itemId = default(string), string mainPOSItemId = default(string), string posItemId = default(string), string registrationNumber = default(string), string mainMerchandiseHierarchyGroupId = default(string), string mainMerchandiseHierarchyGroupIdQualifier = default(string), string merchandiseHierarchyGroupName = default(string), string merchandiseHierarchyGroupDescription = default(string), string receiptText = default(string), string receiptDescription = default(string), double? regularUnitPrice = default(double?), double? actualUnitPrice = default(double?), string priceTypeCode = default(string), string taxGroupID = default(string), bool? discountFlag = default(bool?), bool? frequentShopperPointsEligibilityFlag = default(bool?), string discountTypeCode = default(string), string invoiceId = default(string), List<ComGkSoftwareGkrApiTxpoolDtoRetailPriceModifier> priceModifierList = default(List<ComGkSoftwareGkrApiTxpoolDtoRetailPriceModifier>), ComGkSoftwareSweeSesApiServerMdPromotionDtoSoPromotionSO promotion = default(ComGkSoftwareSweeSesApiServerMdPromotionDtoSoPromotionSO), ComGkSoftwarePosApiModelConfigProcessFlowsAlternativeTaxInfos alternativeTaxInfos = default(ComGkSoftwarePosApiModelConfigProcessFlowsAlternativeTaxInfos), string priceChangeTypeCode = default(string), bool? prohibitReturnFlag = default(bool?), bool? notConsideredByLoyaltyEngineFlag = default(bool?), 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))
        {
            this.ItemType = itemType;
            this.SubItemType = subItemType;
            this.ActionCode = actionCode;
            this.Units = units;
            this.Quantity = quantity;
            this.QuantityInputMethod = quantityInputMethod;
            this.ItemId = itemId;
            this.MainPOSItemId = mainPOSItemId;
            this.PosItemId = posItemId;
            this.RegistrationNumber = registrationNumber;
            this.MainMerchandiseHierarchyGroupId = mainMerchandiseHierarchyGroupId;
            this.MainMerchandiseHierarchyGroupIdQualifier = mainMerchandiseHierarchyGroupIdQualifier;
            this.MerchandiseHierarchyGroupName = merchandiseHierarchyGroupName;
            this.MerchandiseHierarchyGroupDescription = merchandiseHierarchyGroupDescription;
            this.ReceiptText = receiptText;
            this.ReceiptDescription = receiptDescription;
            this.RegularUnitPrice = regularUnitPrice;
            this.ActualUnitPrice = actualUnitPrice;
            this.PriceTypeCode = priceTypeCode;
            this.TaxGroupID = taxGroupID;
            this.DiscountFlag = discountFlag;
            this.FrequentShopperPointsEligibilityFlag = frequentShopperPointsEligibilityFlag;
            this.DiscountTypeCode = discountTypeCode;
            this.InvoiceId = invoiceId;
            this.PriceModifierList = priceModifierList;
            this.Promotion = promotion;
            this.AlternativeTaxInfos = alternativeTaxInfos;
            this.PriceChangeTypeCode = priceChangeTypeCode;
            this.ProhibitReturnFlag = prohibitReturnFlag;
            this.NotConsideredByLoyaltyEngineFlag = notConsideredByLoyaltyEngineFlag;
            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 itemType.&lt;/p&gt;
        /// </summary>
        /// <value>&lt;p&gt;The itemType.&lt;/p&gt;</value>
        [DataMember(Name="itemType", EmitDefaultValue=false)]
        public string ItemType { get; set; }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        /// <summary>
        /// &lt;p&gt;The price modifier list.&lt;/p&gt;
        /// </summary>
        /// <value>&lt;p&gt;The price modifier list.&lt;/p&gt;</value>
        [DataMember(Name="priceModifierList", EmitDefaultValue=false)]
        public List<ComGkSoftwareGkrApiTxpoolDtoRetailPriceModifier> PriceModifierList { get; set; }

        /// <summary>
        /// &lt;p&gt;The promotion.&lt;/p&gt;
        /// </summary>
        /// <value>&lt;p&gt;The promotion.&lt;/p&gt;</value>
        [DataMember(Name="promotion", EmitDefaultValue=false)]
        public ComGkSoftwareSweeSesApiServerMdPromotionDtoSoPromotionSO Promotion { get; set; }

        /// <summary>
        /// &lt;p&gt;The alternative tax infos for updating the tax group.&lt;/p&gt;
        /// </summary>
        /// <value>&lt;p&gt;The alternative tax infos for updating the tax group.&lt;/p&gt;</value>
        [DataMember(Name="alternativeTaxInfos", EmitDefaultValue=false)]
        public ComGkSoftwarePosApiModelConfigProcessFlowsAlternativeTaxInfos AlternativeTaxInfos { get; set; }

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

        /// <summary>
        /// &lt;p&gt;The prohibit return flag&lt;/p&gt;
        /// </summary>
        /// <value>&lt;p&gt;The prohibit return flag&lt;/p&gt;</value>
        [DataMember(Name="prohibitReturnFlag", EmitDefaultValue=false)]
        public bool? ProhibitReturnFlag { get; set; }

        /// <summary>
        /// &lt;p&gt;The not considered by loyalty (pricing) engine flag&lt;/p&gt;
        /// </summary>
        /// <value>&lt;p&gt;The not considered by loyalty (pricing) engine flag&lt;/p&gt;</value>
        [DataMember(Name="notConsideredByLoyaltyEngineFlag", EmitDefaultValue=false)]
        public bool? NotConsideredByLoyaltyEngineFlag { 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 ComGkSoftwarePosApiServiceTransactionSaleReturnLineItemDataRequest {\n");
            sb.Append("  ItemType: ").Append(ItemType).Append("\n");
            sb.Append("  SubItemType: ").Append(SubItemType).Append("\n");
            sb.Append("  ActionCode: ").Append(ActionCode).Append("\n");
            sb.Append("  Units: ").Append(Units).Append("\n");
            sb.Append("  Quantity: ").Append(Quantity).Append("\n");
            sb.Append("  QuantityInputMethod: ").Append(QuantityInputMethod).Append("\n");
            sb.Append("  ItemId: ").Append(ItemId).Append("\n");
            sb.Append("  MainPOSItemId: ").Append(MainPOSItemId).Append("\n");
            sb.Append("  PosItemId: ").Append(PosItemId).Append("\n");
            sb.Append("  RegistrationNumber: ").Append(RegistrationNumber).Append("\n");
            sb.Append("  MainMerchandiseHierarchyGroupId: ").Append(MainMerchandiseHierarchyGroupId).Append("\n");
            sb.Append("  MainMerchandiseHierarchyGroupIdQualifier: ").Append(MainMerchandiseHierarchyGroupIdQualifier).Append("\n");
            sb.Append("  MerchandiseHierarchyGroupName: ").Append(MerchandiseHierarchyGroupName).Append("\n");
            sb.Append("  MerchandiseHierarchyGroupDescription: ").Append(MerchandiseHierarchyGroupDescription).Append("\n");
            sb.Append("  ReceiptText: ").Append(ReceiptText).Append("\n");
            sb.Append("  ReceiptDescription: ").Append(ReceiptDescription).Append("\n");
            sb.Append("  RegularUnitPrice: ").Append(RegularUnitPrice).Append("\n");
            sb.Append("  ActualUnitPrice: ").Append(ActualUnitPrice).Append("\n");
            sb.Append("  PriceTypeCode: ").Append(PriceTypeCode).Append("\n");
            sb.Append("  TaxGroupID: ").Append(TaxGroupID).Append("\n");
            sb.Append("  DiscountFlag: ").Append(DiscountFlag).Append("\n");
            sb.Append("  FrequentShopperPointsEligibilityFlag: ").Append(FrequentShopperPointsEligibilityFlag).Append("\n");
            sb.Append("  DiscountTypeCode: ").Append(DiscountTypeCode).Append("\n");
            sb.Append("  InvoiceId: ").Append(InvoiceId).Append("\n");
            sb.Append("  PriceModifierList: ").Append(PriceModifierList).Append("\n");
            sb.Append("  Promotion: ").Append(Promotion).Append("\n");
            sb.Append("  AlternativeTaxInfos: ").Append(AlternativeTaxInfos).Append("\n");
            sb.Append("  PriceChangeTypeCode: ").Append(PriceChangeTypeCode).Append("\n");
            sb.Append("  ProhibitReturnFlag: ").Append(ProhibitReturnFlag).Append("\n");
            sb.Append("  NotConsideredByLoyaltyEngineFlag: ").Append(NotConsideredByLoyaltyEngineFlag).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 ComGkSoftwarePosApiServiceTransactionSaleReturnLineItemDataRequest);
        }

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

            return 
                (
                    this.ItemType == input.ItemType ||
                    (this.ItemType != null &&
                    this.ItemType.Equals(input.ItemType))
                ) && 
                (
                    this.SubItemType == input.SubItemType ||
                    (this.SubItemType != null &&
                    this.SubItemType.Equals(input.SubItemType))
                ) && 
                (
                    this.ActionCode == input.ActionCode ||
                    (this.ActionCode != null &&
                    this.ActionCode.Equals(input.ActionCode))
                ) && 
                (
                    this.Units == input.Units ||
                    (this.Units != null &&
                    this.Units.Equals(input.Units))
                ) && 
                (
                    this.Quantity == input.Quantity ||
                    (this.Quantity != null &&
                    this.Quantity.Equals(input.Quantity))
                ) && 
                (
                    this.QuantityInputMethod == input.QuantityInputMethod ||
                    (this.QuantityInputMethod != null &&
                    this.QuantityInputMethod.Equals(input.QuantityInputMethod))
                ) && 
                (
                    this.ItemId == input.ItemId ||
                    (this.ItemId != null &&
                    this.ItemId.Equals(input.ItemId))
                ) && 
                (
                    this.MainPOSItemId == input.MainPOSItemId ||
                    (this.MainPOSItemId != null &&
                    this.MainPOSItemId.Equals(input.MainPOSItemId))
                ) && 
                (
                    this.PosItemId == input.PosItemId ||
                    (this.PosItemId != null &&
                    this.PosItemId.Equals(input.PosItemId))
                ) && 
                (
                    this.RegistrationNumber == input.RegistrationNumber ||
                    (this.RegistrationNumber != null &&
                    this.RegistrationNumber.Equals(input.RegistrationNumber))
                ) && 
                (
                    this.MainMerchandiseHierarchyGroupId == input.MainMerchandiseHierarchyGroupId ||
                    (this.MainMerchandiseHierarchyGroupId != null &&
                    this.MainMerchandiseHierarchyGroupId.Equals(input.MainMerchandiseHierarchyGroupId))
                ) && 
                (
                    this.MainMerchandiseHierarchyGroupIdQualifier == input.MainMerchandiseHierarchyGroupIdQualifier ||
                    (this.MainMerchandiseHierarchyGroupIdQualifier != null &&
                    this.MainMerchandiseHierarchyGroupIdQualifier.Equals(input.MainMerchandiseHierarchyGroupIdQualifier))
                ) && 
                (
                    this.MerchandiseHierarchyGroupName == input.MerchandiseHierarchyGroupName ||
                    (this.MerchandiseHierarchyGroupName != null &&
                    this.MerchandiseHierarchyGroupName.Equals(input.MerchandiseHierarchyGroupName))
                ) && 
                (
                    this.MerchandiseHierarchyGroupDescription == input.MerchandiseHierarchyGroupDescription ||
                    (this.MerchandiseHierarchyGroupDescription != null &&
                    this.MerchandiseHierarchyGroupDescription.Equals(input.MerchandiseHierarchyGroupDescription))
                ) && 
                (
                    this.ReceiptText == input.ReceiptText ||
                    (this.ReceiptText != null &&
                    this.ReceiptText.Equals(input.ReceiptText))
                ) && 
                (
                    this.ReceiptDescription == input.ReceiptDescription ||
                    (this.ReceiptDescription != null &&
                    this.ReceiptDescription.Equals(input.ReceiptDescription))
                ) && 
                (
                    this.RegularUnitPrice == input.RegularUnitPrice ||
                    (this.RegularUnitPrice != null &&
                    this.RegularUnitPrice.Equals(input.RegularUnitPrice))
                ) && 
                (
                    this.ActualUnitPrice == input.ActualUnitPrice ||
                    (this.ActualUnitPrice != null &&
                    this.ActualUnitPrice.Equals(input.ActualUnitPrice))
                ) && 
                (
                    this.PriceTypeCode == input.PriceTypeCode ||
                    (this.PriceTypeCode != null &&
                    this.PriceTypeCode.Equals(input.PriceTypeCode))
                ) && 
                (
                    this.TaxGroupID == input.TaxGroupID ||
                    (this.TaxGroupID != null &&
                    this.TaxGroupID.Equals(input.TaxGroupID))
                ) && 
                (
                    this.DiscountFlag == input.DiscountFlag ||
                    (this.DiscountFlag != null &&
                    this.DiscountFlag.Equals(input.DiscountFlag))
                ) && 
                (
                    this.FrequentShopperPointsEligibilityFlag == input.FrequentShopperPointsEligibilityFlag ||
                    (this.FrequentShopperPointsEligibilityFlag != null &&
                    this.FrequentShopperPointsEligibilityFlag.Equals(input.FrequentShopperPointsEligibilityFlag))
                ) && 
                (
                    this.DiscountTypeCode == input.DiscountTypeCode ||
                    (this.DiscountTypeCode != null &&
                    this.DiscountTypeCode.Equals(input.DiscountTypeCode))
                ) && 
                (
                    this.InvoiceId == input.InvoiceId ||
                    (this.InvoiceId != null &&
                    this.InvoiceId.Equals(input.InvoiceId))
                ) && 
                (
                    this.PriceModifierList == input.PriceModifierList ||
                    this.PriceModifierList != null &&
                    this.PriceModifierList.SequenceEqual(input.PriceModifierList)
                ) && 
                (
                    this.Promotion == input.Promotion ||
                    (this.Promotion != null &&
                    this.Promotion.Equals(input.Promotion))
                ) && 
                (
                    this.AlternativeTaxInfos == input.AlternativeTaxInfos ||
                    (this.AlternativeTaxInfos != null &&
                    this.AlternativeTaxInfos.Equals(input.AlternativeTaxInfos))
                ) && 
                (
                    this.PriceChangeTypeCode == input.PriceChangeTypeCode ||
                    (this.PriceChangeTypeCode != null &&
                    this.PriceChangeTypeCode.Equals(input.PriceChangeTypeCode))
                ) && 
                (
                    this.ProhibitReturnFlag == input.ProhibitReturnFlag ||
                    (this.ProhibitReturnFlag != null &&
                    this.ProhibitReturnFlag.Equals(input.ProhibitReturnFlag))
                ) && 
                (
                    this.NotConsideredByLoyaltyEngineFlag == input.NotConsideredByLoyaltyEngineFlag ||
                    (this.NotConsideredByLoyaltyEngineFlag != null &&
                    this.NotConsideredByLoyaltyEngineFlag.Equals(input.NotConsideredByLoyaltyEngineFlag))
                ) && 
                (
                    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.ItemType != null)
                    hashCode = hashCode * 59 + this.ItemType.GetHashCode();
                if (this.SubItemType != null)
                    hashCode = hashCode * 59 + this.SubItemType.GetHashCode();
                if (this.ActionCode != null)
                    hashCode = hashCode * 59 + this.ActionCode.GetHashCode();
                if (this.Units != null)
                    hashCode = hashCode * 59 + this.Units.GetHashCode();
                if (this.Quantity != null)
                    hashCode = hashCode * 59 + this.Quantity.GetHashCode();
                if (this.QuantityInputMethod != null)
                    hashCode = hashCode * 59 + this.QuantityInputMethod.GetHashCode();
                if (this.ItemId != null)
                    hashCode = hashCode * 59 + this.ItemId.GetHashCode();
                if (this.MainPOSItemId != null)
                    hashCode = hashCode * 59 + this.MainPOSItemId.GetHashCode();
                if (this.PosItemId != null)
                    hashCode = hashCode * 59 + this.PosItemId.GetHashCode();
                if (this.RegistrationNumber != null)
                    hashCode = hashCode * 59 + this.RegistrationNumber.GetHashCode();
                if (this.MainMerchandiseHierarchyGroupId != null)
                    hashCode = hashCode * 59 + this.MainMerchandiseHierarchyGroupId.GetHashCode();
                if (this.MainMerchandiseHierarchyGroupIdQualifier != null)
                    hashCode = hashCode * 59 + this.MainMerchandiseHierarchyGroupIdQualifier.GetHashCode();
                if (this.MerchandiseHierarchyGroupName != null)
                    hashCode = hashCode * 59 + this.MerchandiseHierarchyGroupName.GetHashCode();
                if (this.MerchandiseHierarchyGroupDescription != null)
                    hashCode = hashCode * 59 + this.MerchandiseHierarchyGroupDescription.GetHashCode();
                if (this.ReceiptText != null)
                    hashCode = hashCode * 59 + this.ReceiptText.GetHashCode();
                if (this.ReceiptDescription != null)
                    hashCode = hashCode * 59 + this.ReceiptDescription.GetHashCode();
                if (this.RegularUnitPrice != null)
                    hashCode = hashCode * 59 + this.RegularUnitPrice.GetHashCode();
                if (this.ActualUnitPrice != null)
                    hashCode = hashCode * 59 + this.ActualUnitPrice.GetHashCode();
                if (this.PriceTypeCode != null)
                    hashCode = hashCode * 59 + this.PriceTypeCode.GetHashCode();
                if (this.TaxGroupID != null)
                    hashCode = hashCode * 59 + this.TaxGroupID.GetHashCode();
                if (this.DiscountFlag != null)
                    hashCode = hashCode * 59 + this.DiscountFlag.GetHashCode();
                if (this.FrequentShopperPointsEligibilityFlag != null)
                    hashCode = hashCode * 59 + this.FrequentShopperPointsEligibilityFlag.GetHashCode();
                if (this.DiscountTypeCode != null)
                    hashCode = hashCode * 59 + this.DiscountTypeCode.GetHashCode();
                if (this.InvoiceId != null)
                    hashCode = hashCode * 59 + this.InvoiceId.GetHashCode();
                if (this.PriceModifierList != null)
                    hashCode = hashCode * 59 + this.PriceModifierList.GetHashCode();
                if (this.Promotion != null)
                    hashCode = hashCode * 59 + this.Promotion.GetHashCode();
                if (this.AlternativeTaxInfos != null)
                    hashCode = hashCode * 59 + this.AlternativeTaxInfos.GetHashCode();
                if (this.PriceChangeTypeCode != null)
                    hashCode = hashCode * 59 + this.PriceChangeTypeCode.GetHashCode();
                if (this.ProhibitReturnFlag != null)
                    hashCode = hashCode * 59 + this.ProhibitReturnFlag.GetHashCode();
                if (this.NotConsideredByLoyaltyEngineFlag != null)
                    hashCode = hashCode * 59 + this.NotConsideredByLoyaltyEngineFlag.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;
        }
    }

}
