/// <summary>
        /// Returns true if OrderInvoiceData instances are equal
        /// </summary>
        /// <param name="other">Instance of OrderInvoiceData to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(OrderInvoiceData other)
        {
            if (ReferenceEquals(null, other))
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     AdditionalData == other.AdditionalData ||
                     AdditionalData != null &&
                     AdditionalData.Equals(other.AdditionalData)
                     ) &&
                 (
                     InvoiceDate == other.InvoiceDate ||
                     InvoiceDate != null &&
                     InvoiceDate.Equals(other.InvoiceDate)
                 ) &&
                 (
                     InvoiceNumber == other.InvoiceNumber ||
                     InvoiceNumber != null &&
                     InvoiceNumber.Equals(other.InvoiceNumber)
                 ) &&
                 (
                     TextQualifiers == other.TextQualifiers ||
                     TextQualifiers != null &&
                     TextQualifiers.SequenceEqual(other.TextQualifiers)
                 ));
        }
 public bool Equals(TradeBookedMT other)
 {
     if (ReferenceEquals(other, null))
     {
         return(false);
     }
     if (ReferenceEquals(other, this))
     {
         return(true);
     }
     if (TradeId != other.TradeId)
     {
         return(false);
     }
     if (ExchangeOrderId != other.ExchangeOrderId)
     {
         return(false);
     }
     if (System != other.System)
     {
         return(false);
     }
     if (Counterparty != other.Counterparty)
     {
         return(false);
     }
     if (PortfolioId != other.PortfolioId)
     {
         return(false);
     }
     if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(Volume, other.Volume))
     {
         return(false);
     }
     if (InstrumentId != other.InstrumentId)
     {
         return(false);
     }
     if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(Price, other.Price))
     {
         return(false);
     }
     if (Currency != other.Currency)
     {
         return(false);
     }
     if (!object.Equals(Timestamp, other.Timestamp))
     {
         return(false);
     }
     if (!AdditionalData.Equals(other.AdditionalData))
     {
         return(false);
     }
     if (SystemTradeId != other.SystemTradeId)
     {
         return(false);
     }
     if (UniqueTradeId != other.UniqueTradeId)
     {
         return(false);
     }
     if (Desk != other.Desk)
     {
         return(false);
     }
     if (ExchangeTradeId != other.ExchangeTradeId)
     {
         return(false);
     }
     if (MarketTrade != other.MarketTrade)
     {
         return(false);
     }
     if (AlgoId != other.AlgoId)
     {
         return(false);
     }
     if (Strategy != other.Strategy)
     {
         return(false);
     }
     if (Owner != other.Owner)
     {
         return(false);
     }
     if (ClearerAccount != other.ClearerAccount)
     {
         return(false);
     }
     if (Depot != other.Depot)
     {
         return(false);
     }
     if (Safekeeping != other.Safekeeping)
     {
         return(false);
     }
     if (Deleted != other.Deleted)
     {
         return(false);
     }
     if (FundingCurrency != other.FundingCurrency)
     {
         return(false);
     }
     return(Equals(_unknownFields, other._unknownFields));
 }