/* 
 * 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>
    /// AddFiscalizationDataToTransactionRequest &lt;p&gt;Request object to add fiscalization data to a transaction.&lt;/p&gt;
    /// </summary>
    [DataContract]
    public partial class ComGkSoftwarePosApiServiceTransactionAddFiscalizationDataToTransactionRequest :  IEquatable<ComGkSoftwarePosApiServiceTransactionAddFiscalizationDataToTransactionRequest>, IValidatableObject
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="ComGkSoftwarePosApiServiceTransactionAddFiscalizationDataToTransactionRequest" /> class.
        /// </summary>
        /// <param name="transactionId">&lt;p&gt;The identifier of the transaction where the fiscalization data should be set.&lt;/p&gt;.</param>
        /// <param name="fiscalDayNumber">&lt;p&gt;The fiscalization day number.&lt;/p&gt;.</param>
        /// <param name="fiscalPrinterId">&lt;p&gt;The fiscalization printer identifier.&lt;/p&gt;.</param>
        /// <param name="fiscalReceipt">&lt;p&gt;A flag to indicate if it is a fiscalization receipt/transaction.&lt;/p&gt;.</param>
        /// <param name="fiscalReceiptNumber">&lt;p&gt;The fiscalization receipt number.&lt;/p&gt;.</param>
        /// <param name="fiscalSignature">&lt;p&gt;The fiscalization signature.&lt;/p&gt;.</param>
        /// <param name="fiscalReceiptText">&lt;p&gt;The fiscalization receipt text.&lt;/p&gt;.</param>
        /// <param name="fiscalEncodedBarcodeImage">&lt;p&gt;The encoded fiscalization barcode image.&lt;/p&gt;.</param>
        /// <param name="fiscalBarcodeReference">&lt;p&gt;The fiscalization barcode reference.&lt;/p&gt;.</param>
        /// <param name="positionOperationConfig">&lt;p&gt;The position operation configuration.&lt;/p&gt;.</param>
        /// <param name="fiscalSecurity">&lt;p&gt;The fiscalization receipt security code.&lt;/p&gt;.</param>
        /// <param name="fiscalTaxId">&lt;p&gt;The fiscalization receipt tax identifier.&lt;/p&gt;.</param>
        /// <param name="fiscalCode">&lt;p&gt;The fiscalization receipt fiscal code.&lt;/p&gt;.</param>
        /// <param name="fiscalYear">&lt;p&gt;The fiscalization year.&lt;/p&gt;.</param>
        /// <param name="keyVersion">&lt;p&gt;The fiscalization signing key version.&lt;/p&gt;.</param>
        /// <param name="signatureSumDaily">&lt;p&gt;Daily sum of digital signatures&lt;/p&gt;.</param>
        /// <param name="signatureSumPerpetual">&lt;p&gt;Total sum of digital signatures&lt;/p&gt;.</param>
        /// <param name="timestamp">&lt;p&gt;Date and time of signature&lt;/p&gt;.</param>
        /// <param name="esdId">&lt;p&gt;ESD serial number&lt;/p&gt;.</param>
        /// <param name="receiptPrinted">&lt;p&gt;deprecated: as of 5.5.0. Use instead proper service to set flag&lt;br /&gt; A flag to indicate that the receipt was printed.&lt;/p&gt;.</param>
        /// <param name="extensions">&lt;p&gt;Additional extensions&lt;/p&gt;.</param>
        /// <param name="binaryDataExtensions">&lt;p&gt;Additional binary data extensions&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 ComGkSoftwarePosApiServiceTransactionAddFiscalizationDataToTransactionRequest(string transactionId = default(string), string fiscalDayNumber = default(string), string fiscalPrinterId = default(string), bool? fiscalReceipt = default(bool?), string fiscalReceiptNumber = default(string), string fiscalSignature = default(string), string fiscalReceiptText = default(string), string fiscalEncodedBarcodeImage = default(string), string fiscalBarcodeReference = default(string), ComGkSoftwarePosApiModelConfigProcessActionPositionOperationConfig positionOperationConfig = default(ComGkSoftwarePosApiModelConfigProcessActionPositionOperationConfig), ComGkSoftwarePosApiServiceTransactionFiscalTagFieldResult fiscalSecurity = default(ComGkSoftwarePosApiServiceTransactionFiscalTagFieldResult), ComGkSoftwarePosApiServiceTransactionFiscalTagFieldResult fiscalTaxId = default(ComGkSoftwarePosApiServiceTransactionFiscalTagFieldResult), ComGkSoftwarePosApiServiceTransactionFiscalTagFieldResult fiscalCode = default(ComGkSoftwarePosApiServiceTransactionFiscalTagFieldResult), int? fiscalYear = default(int?), string keyVersion = default(string), ComGkSoftwarePosApiServiceTransactionFiscalTagFieldResult signatureSumDaily = default(ComGkSoftwarePosApiServiceTransactionFiscalTagFieldResult), ComGkSoftwarePosApiServiceTransactionFiscalTagFieldResult signatureSumPerpetual = default(ComGkSoftwarePosApiServiceTransactionFiscalTagFieldResult), ComGkSoftwarePosApiServiceTransactionFiscalTagFieldResult timestamp = default(ComGkSoftwarePosApiServiceTransactionFiscalTagFieldResult), ComGkSoftwarePosApiServiceTransactionFiscalTagFieldResult esdId = default(ComGkSoftwarePosApiServiceTransactionFiscalTagFieldResult), bool? receiptPrinted = default(bool?), List<ComGkSoftwarePosApiServiceTransactionExtension> extensions = default(List<ComGkSoftwarePosApiServiceTransactionExtension>), List<ComGkSoftwarePosApiServiceTransactionExtension> binaryDataExtensions = default(List<ComGkSoftwarePosApiServiceTransactionExtension>), 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.TransactionId = transactionId;
            this.FiscalDayNumber = fiscalDayNumber;
            this.FiscalPrinterId = fiscalPrinterId;
            this.FiscalReceipt = fiscalReceipt;
            this.FiscalReceiptNumber = fiscalReceiptNumber;
            this.FiscalSignature = fiscalSignature;
            this.FiscalReceiptText = fiscalReceiptText;
            this.FiscalEncodedBarcodeImage = fiscalEncodedBarcodeImage;
            this.FiscalBarcodeReference = fiscalBarcodeReference;
            this.PositionOperationConfig = positionOperationConfig;
            this.FiscalSecurity = fiscalSecurity;
            this.FiscalTaxId = fiscalTaxId;
            this.FiscalCode = fiscalCode;
            this.FiscalYear = fiscalYear;
            this.KeyVersion = keyVersion;
            this.SignatureSumDaily = signatureSumDaily;
            this.SignatureSumPerpetual = signatureSumPerpetual;
            this.Timestamp = timestamp;
            this.EsdId = esdId;
            this.ReceiptPrinted = receiptPrinted;
            this.Extensions = extensions;
            this.BinaryDataExtensions = binaryDataExtensions;
            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 identifier of the transaction where the fiscalization data should be set.&lt;/p&gt;
        /// </summary>
        /// <value>&lt;p&gt;The identifier of the transaction where the fiscalization data should be set.&lt;/p&gt;</value>
        [DataMember(Name="transactionId", EmitDefaultValue=false)]
        public string TransactionId { get; set; }

        /// <summary>
        /// &lt;p&gt;The fiscalization day number.&lt;/p&gt;
        /// </summary>
        /// <value>&lt;p&gt;The fiscalization day number.&lt;/p&gt;</value>
        [DataMember(Name="fiscalDayNumber", EmitDefaultValue=false)]
        public string FiscalDayNumber { get; set; }

        /// <summary>
        /// &lt;p&gt;The fiscalization printer identifier.&lt;/p&gt;
        /// </summary>
        /// <value>&lt;p&gt;The fiscalization printer identifier.&lt;/p&gt;</value>
        [DataMember(Name="fiscalPrinterId", EmitDefaultValue=false)]
        public string FiscalPrinterId { get; set; }

        /// <summary>
        /// &lt;p&gt;A flag to indicate if it is a fiscalization receipt/transaction.&lt;/p&gt;
        /// </summary>
        /// <value>&lt;p&gt;A flag to indicate if it is a fiscalization receipt/transaction.&lt;/p&gt;</value>
        [DataMember(Name="fiscalReceipt", EmitDefaultValue=false)]
        public bool? FiscalReceipt { get; set; }

        /// <summary>
        /// &lt;p&gt;The fiscalization receipt number.&lt;/p&gt;
        /// </summary>
        /// <value>&lt;p&gt;The fiscalization receipt number.&lt;/p&gt;</value>
        [DataMember(Name="fiscalReceiptNumber", EmitDefaultValue=false)]
        public string FiscalReceiptNumber { get; set; }

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

        /// <summary>
        /// &lt;p&gt;The fiscalization receipt text.&lt;/p&gt;
        /// </summary>
        /// <value>&lt;p&gt;The fiscalization receipt text.&lt;/p&gt;</value>
        [DataMember(Name="fiscalReceiptText", EmitDefaultValue=false)]
        public string FiscalReceiptText { get; set; }

        /// <summary>
        /// &lt;p&gt;The encoded fiscalization barcode image.&lt;/p&gt;
        /// </summary>
        /// <value>&lt;p&gt;The encoded fiscalization barcode image.&lt;/p&gt;</value>
        [DataMember(Name="fiscalEncodedBarcodeImage", EmitDefaultValue=false)]
        public string FiscalEncodedBarcodeImage { get; set; }

        /// <summary>
        /// &lt;p&gt;The fiscalization barcode reference.&lt;/p&gt;
        /// </summary>
        /// <value>&lt;p&gt;The fiscalization barcode reference.&lt;/p&gt;</value>
        [DataMember(Name="fiscalBarcodeReference", EmitDefaultValue=false)]
        public string FiscalBarcodeReference { get; set; }

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

        /// <summary>
        /// &lt;p&gt;The fiscalization receipt security code.&lt;/p&gt;
        /// </summary>
        /// <value>&lt;p&gt;The fiscalization receipt security code.&lt;/p&gt;</value>
        [DataMember(Name="fiscalSecurity", EmitDefaultValue=false)]
        public ComGkSoftwarePosApiServiceTransactionFiscalTagFieldResult FiscalSecurity { get; set; }

        /// <summary>
        /// &lt;p&gt;The fiscalization receipt tax identifier.&lt;/p&gt;
        /// </summary>
        /// <value>&lt;p&gt;The fiscalization receipt tax identifier.&lt;/p&gt;</value>
        [DataMember(Name="fiscalTaxId", EmitDefaultValue=false)]
        public ComGkSoftwarePosApiServiceTransactionFiscalTagFieldResult FiscalTaxId { get; set; }

        /// <summary>
        /// &lt;p&gt;The fiscalization receipt fiscal code.&lt;/p&gt;
        /// </summary>
        /// <value>&lt;p&gt;The fiscalization receipt fiscal code.&lt;/p&gt;</value>
        [DataMember(Name="fiscalCode", EmitDefaultValue=false)]
        public ComGkSoftwarePosApiServiceTransactionFiscalTagFieldResult FiscalCode { get; set; }

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

        /// <summary>
        /// &lt;p&gt;The fiscalization signing key version.&lt;/p&gt;
        /// </summary>
        /// <value>&lt;p&gt;The fiscalization signing key version.&lt;/p&gt;</value>
        [DataMember(Name="keyVersion", EmitDefaultValue=false)]
        public string KeyVersion { get; set; }

        /// <summary>
        /// &lt;p&gt;Daily sum of digital signatures&lt;/p&gt;
        /// </summary>
        /// <value>&lt;p&gt;Daily sum of digital signatures&lt;/p&gt;</value>
        [DataMember(Name="signatureSumDaily", EmitDefaultValue=false)]
        public ComGkSoftwarePosApiServiceTransactionFiscalTagFieldResult SignatureSumDaily { get; set; }

        /// <summary>
        /// &lt;p&gt;Total sum of digital signatures&lt;/p&gt;
        /// </summary>
        /// <value>&lt;p&gt;Total sum of digital signatures&lt;/p&gt;</value>
        [DataMember(Name="signatureSumPerpetual", EmitDefaultValue=false)]
        public ComGkSoftwarePosApiServiceTransactionFiscalTagFieldResult SignatureSumPerpetual { get; set; }

        /// <summary>
        /// &lt;p&gt;Date and time of signature&lt;/p&gt;
        /// </summary>
        /// <value>&lt;p&gt;Date and time of signature&lt;/p&gt;</value>
        [DataMember(Name="timestamp", EmitDefaultValue=false)]
        public ComGkSoftwarePosApiServiceTransactionFiscalTagFieldResult Timestamp { get; set; }

        /// <summary>
        /// &lt;p&gt;ESD serial number&lt;/p&gt;
        /// </summary>
        /// <value>&lt;p&gt;ESD serial number&lt;/p&gt;</value>
        [DataMember(Name="esdId", EmitDefaultValue=false)]
        public ComGkSoftwarePosApiServiceTransactionFiscalTagFieldResult EsdId { get; set; }

        /// <summary>
        /// &lt;p&gt;deprecated: as of 5.5.0. Use instead proper service to set flag&lt;br /&gt; A flag to indicate that the receipt was printed.&lt;/p&gt;
        /// </summary>
        /// <value>&lt;p&gt;deprecated: as of 5.5.0. Use instead proper service to set flag&lt;br /&gt; A flag to indicate that the receipt was printed.&lt;/p&gt;</value>
        [DataMember(Name="receiptPrinted", EmitDefaultValue=false)]
        public bool? ReceiptPrinted { get; set; }

        /// <summary>
        /// &lt;p&gt;Additional extensions&lt;/p&gt;
        /// </summary>
        /// <value>&lt;p&gt;Additional extensions&lt;/p&gt;</value>
        [DataMember(Name="extensions", EmitDefaultValue=false)]
        public List<ComGkSoftwarePosApiServiceTransactionExtension> Extensions { get; set; }

        /// <summary>
        /// &lt;p&gt;Additional binary data extensions&lt;/p&gt;
        /// </summary>
        /// <value>&lt;p&gt;Additional binary data extensions&lt;/p&gt;</value>
        [DataMember(Name="binaryDataExtensions", EmitDefaultValue=false)]
        public List<ComGkSoftwarePosApiServiceTransactionExtension> BinaryDataExtensions { 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 ComGkSoftwarePosApiServiceTransactionAddFiscalizationDataToTransactionRequest {\n");
            sb.Append("  TransactionId: ").Append(TransactionId).Append("\n");
            sb.Append("  FiscalDayNumber: ").Append(FiscalDayNumber).Append("\n");
            sb.Append("  FiscalPrinterId: ").Append(FiscalPrinterId).Append("\n");
            sb.Append("  FiscalReceipt: ").Append(FiscalReceipt).Append("\n");
            sb.Append("  FiscalReceiptNumber: ").Append(FiscalReceiptNumber).Append("\n");
            sb.Append("  FiscalSignature: ").Append(FiscalSignature).Append("\n");
            sb.Append("  FiscalReceiptText: ").Append(FiscalReceiptText).Append("\n");
            sb.Append("  FiscalEncodedBarcodeImage: ").Append(FiscalEncodedBarcodeImage).Append("\n");
            sb.Append("  FiscalBarcodeReference: ").Append(FiscalBarcodeReference).Append("\n");
            sb.Append("  PositionOperationConfig: ").Append(PositionOperationConfig).Append("\n");
            sb.Append("  FiscalSecurity: ").Append(FiscalSecurity).Append("\n");
            sb.Append("  FiscalTaxId: ").Append(FiscalTaxId).Append("\n");
            sb.Append("  FiscalCode: ").Append(FiscalCode).Append("\n");
            sb.Append("  FiscalYear: ").Append(FiscalYear).Append("\n");
            sb.Append("  KeyVersion: ").Append(KeyVersion).Append("\n");
            sb.Append("  SignatureSumDaily: ").Append(SignatureSumDaily).Append("\n");
            sb.Append("  SignatureSumPerpetual: ").Append(SignatureSumPerpetual).Append("\n");
            sb.Append("  Timestamp: ").Append(Timestamp).Append("\n");
            sb.Append("  EsdId: ").Append(EsdId).Append("\n");
            sb.Append("  ReceiptPrinted: ").Append(ReceiptPrinted).Append("\n");
            sb.Append("  Extensions: ").Append(Extensions).Append("\n");
            sb.Append("  BinaryDataExtensions: ").Append(BinaryDataExtensions).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 ComGkSoftwarePosApiServiceTransactionAddFiscalizationDataToTransactionRequest);
        }

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

            return 
                (
                    this.TransactionId == input.TransactionId ||
                    (this.TransactionId != null &&
                    this.TransactionId.Equals(input.TransactionId))
                ) && 
                (
                    this.FiscalDayNumber == input.FiscalDayNumber ||
                    (this.FiscalDayNumber != null &&
                    this.FiscalDayNumber.Equals(input.FiscalDayNumber))
                ) && 
                (
                    this.FiscalPrinterId == input.FiscalPrinterId ||
                    (this.FiscalPrinterId != null &&
                    this.FiscalPrinterId.Equals(input.FiscalPrinterId))
                ) && 
                (
                    this.FiscalReceipt == input.FiscalReceipt ||
                    (this.FiscalReceipt != null &&
                    this.FiscalReceipt.Equals(input.FiscalReceipt))
                ) && 
                (
                    this.FiscalReceiptNumber == input.FiscalReceiptNumber ||
                    (this.FiscalReceiptNumber != null &&
                    this.FiscalReceiptNumber.Equals(input.FiscalReceiptNumber))
                ) && 
                (
                    this.FiscalSignature == input.FiscalSignature ||
                    (this.FiscalSignature != null &&
                    this.FiscalSignature.Equals(input.FiscalSignature))
                ) && 
                (
                    this.FiscalReceiptText == input.FiscalReceiptText ||
                    (this.FiscalReceiptText != null &&
                    this.FiscalReceiptText.Equals(input.FiscalReceiptText))
                ) && 
                (
                    this.FiscalEncodedBarcodeImage == input.FiscalEncodedBarcodeImage ||
                    (this.FiscalEncodedBarcodeImage != null &&
                    this.FiscalEncodedBarcodeImage.Equals(input.FiscalEncodedBarcodeImage))
                ) && 
                (
                    this.FiscalBarcodeReference == input.FiscalBarcodeReference ||
                    (this.FiscalBarcodeReference != null &&
                    this.FiscalBarcodeReference.Equals(input.FiscalBarcodeReference))
                ) && 
                (
                    this.PositionOperationConfig == input.PositionOperationConfig ||
                    (this.PositionOperationConfig != null &&
                    this.PositionOperationConfig.Equals(input.PositionOperationConfig))
                ) && 
                (
                    this.FiscalSecurity == input.FiscalSecurity ||
                    (this.FiscalSecurity != null &&
                    this.FiscalSecurity.Equals(input.FiscalSecurity))
                ) && 
                (
                    this.FiscalTaxId == input.FiscalTaxId ||
                    (this.FiscalTaxId != null &&
                    this.FiscalTaxId.Equals(input.FiscalTaxId))
                ) && 
                (
                    this.FiscalCode == input.FiscalCode ||
                    (this.FiscalCode != null &&
                    this.FiscalCode.Equals(input.FiscalCode))
                ) && 
                (
                    this.FiscalYear == input.FiscalYear ||
                    (this.FiscalYear != null &&
                    this.FiscalYear.Equals(input.FiscalYear))
                ) && 
                (
                    this.KeyVersion == input.KeyVersion ||
                    (this.KeyVersion != null &&
                    this.KeyVersion.Equals(input.KeyVersion))
                ) && 
                (
                    this.SignatureSumDaily == input.SignatureSumDaily ||
                    (this.SignatureSumDaily != null &&
                    this.SignatureSumDaily.Equals(input.SignatureSumDaily))
                ) && 
                (
                    this.SignatureSumPerpetual == input.SignatureSumPerpetual ||
                    (this.SignatureSumPerpetual != null &&
                    this.SignatureSumPerpetual.Equals(input.SignatureSumPerpetual))
                ) && 
                (
                    this.Timestamp == input.Timestamp ||
                    (this.Timestamp != null &&
                    this.Timestamp.Equals(input.Timestamp))
                ) && 
                (
                    this.EsdId == input.EsdId ||
                    (this.EsdId != null &&
                    this.EsdId.Equals(input.EsdId))
                ) && 
                (
                    this.ReceiptPrinted == input.ReceiptPrinted ||
                    (this.ReceiptPrinted != null &&
                    this.ReceiptPrinted.Equals(input.ReceiptPrinted))
                ) && 
                (
                    this.Extensions == input.Extensions ||
                    this.Extensions != null &&
                    this.Extensions.SequenceEqual(input.Extensions)
                ) && 
                (
                    this.BinaryDataExtensions == input.BinaryDataExtensions ||
                    this.BinaryDataExtensions != null &&
                    this.BinaryDataExtensions.SequenceEqual(input.BinaryDataExtensions)
                ) && 
                (
                    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.TransactionId != null)
                    hashCode = hashCode * 59 + this.TransactionId.GetHashCode();
                if (this.FiscalDayNumber != null)
                    hashCode = hashCode * 59 + this.FiscalDayNumber.GetHashCode();
                if (this.FiscalPrinterId != null)
                    hashCode = hashCode * 59 + this.FiscalPrinterId.GetHashCode();
                if (this.FiscalReceipt != null)
                    hashCode = hashCode * 59 + this.FiscalReceipt.GetHashCode();
                if (this.FiscalReceiptNumber != null)
                    hashCode = hashCode * 59 + this.FiscalReceiptNumber.GetHashCode();
                if (this.FiscalSignature != null)
                    hashCode = hashCode * 59 + this.FiscalSignature.GetHashCode();
                if (this.FiscalReceiptText != null)
                    hashCode = hashCode * 59 + this.FiscalReceiptText.GetHashCode();
                if (this.FiscalEncodedBarcodeImage != null)
                    hashCode = hashCode * 59 + this.FiscalEncodedBarcodeImage.GetHashCode();
                if (this.FiscalBarcodeReference != null)
                    hashCode = hashCode * 59 + this.FiscalBarcodeReference.GetHashCode();
                if (this.PositionOperationConfig != null)
                    hashCode = hashCode * 59 + this.PositionOperationConfig.GetHashCode();
                if (this.FiscalSecurity != null)
                    hashCode = hashCode * 59 + this.FiscalSecurity.GetHashCode();
                if (this.FiscalTaxId != null)
                    hashCode = hashCode * 59 + this.FiscalTaxId.GetHashCode();
                if (this.FiscalCode != null)
                    hashCode = hashCode * 59 + this.FiscalCode.GetHashCode();
                if (this.FiscalYear != null)
                    hashCode = hashCode * 59 + this.FiscalYear.GetHashCode();
                if (this.KeyVersion != null)
                    hashCode = hashCode * 59 + this.KeyVersion.GetHashCode();
                if (this.SignatureSumDaily != null)
                    hashCode = hashCode * 59 + this.SignatureSumDaily.GetHashCode();
                if (this.SignatureSumPerpetual != null)
                    hashCode = hashCode * 59 + this.SignatureSumPerpetual.GetHashCode();
                if (this.Timestamp != null)
                    hashCode = hashCode * 59 + this.Timestamp.GetHashCode();
                if (this.EsdId != null)
                    hashCode = hashCode * 59 + this.EsdId.GetHashCode();
                if (this.ReceiptPrinted != null)
                    hashCode = hashCode * 59 + this.ReceiptPrinted.GetHashCode();
                if (this.Extensions != null)
                    hashCode = hashCode * 59 + this.Extensions.GetHashCode();
                if (this.BinaryDataExtensions != null)
                    hashCode = hashCode * 59 + this.BinaryDataExtensions.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;
        }
    }

}
