/// <summary> /// Returns true if OrderSummary instances are equal /// </summary> /// <param name="other">Instance of OrderSummary to be compared</param> /// <returns>Boolean</returns> public bool Equals(OrderSummary other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( PartnerOrderNumber == other.PartnerOrderNumber || PartnerOrderNumber != null && PartnerOrderNumber.Equals(other.PartnerOrderNumber) ) && ( PlaceOrderTime == other.PlaceOrderTime || PlaceOrderTime != null && PlaceOrderTime.Equals(other.PlaceOrderTime) ) && ( Currency == other.Currency || Currency != null && Currency.Equals(other.Currency) ) && ( SubTotal == other.SubTotal || SubTotal != null && SubTotal.Equals(other.SubTotal) ) && ( TaxTotal == other.TaxTotal || TaxTotal != null && TaxTotal.Equals(other.TaxTotal) ) && ( ShippingTotal == other.ShippingTotal || ShippingTotal != null && ShippingTotal.Equals(other.ShippingTotal) ) && ( Channel == other.Channel || Channel != null && Channel.Equals(other.Channel) )); }