/// <summary> /// Returns true if LineItem instances are equal /// </summary> /// <param name="other">Instance of LineItem to be compared</param> /// <returns>Boolean</returns> public bool Equals(LineItem other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( AmountOfMoney == other.AmountOfMoney || AmountOfMoney != null && AmountOfMoney.Equals(other.AmountOfMoney) ) && ( InvoiceData == other.InvoiceData || InvoiceData != null && InvoiceData.Equals(other.InvoiceData) ) && ( Level3InterchangeInformation == other.Level3InterchangeInformation || Level3InterchangeInformation != null && Level3InterchangeInformation.Equals(other.Level3InterchangeInformation) ) && ( OrderLineDetails == other.OrderLineDetails || OrderLineDetails != null && OrderLineDetails.Equals(other.OrderLineDetails) )); }
/// <summary> /// Returns true if Order instances are equal /// </summary> /// <param name="other">Instance of Order to be compared</param> /// <returns>Boolean</returns> public bool Equals(Order other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( AdditionalInput == other.AdditionalInput || AdditionalInput != null && AdditionalInput.Equals(other.AdditionalInput) ) && ( AmountOfMoney == other.AmountOfMoney || AmountOfMoney != null && AmountOfMoney.Equals(other.AmountOfMoney) ) && ( Customer == other.Customer || Customer != null && Customer.Equals(other.Customer) ) && ( Items == other.Items || Items != null && Items.SequenceEqual(other.Items) ) && ( References == other.References || References != null && References.Equals(other.References) ) && ( Seller == other.Seller || Seller != null && Seller.Equals(other.Seller) ) && ( ShoppingCart == other.ShoppingCart || ShoppingCart != null && ShoppingCart.Equals(other.ShoppingCart) )); }
/// <summary> /// Returns true if OrderOutput instances are equal /// </summary> /// <param name="other">Instance of OrderOutput to be compared</param> /// <returns>Boolean</returns> public bool Equals(OrderOutput other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( AmountOfMoney == other.AmountOfMoney || AmountOfMoney != null && AmountOfMoney.Equals(other.AmountOfMoney) ) && ( References == other.References || References != null && References.Equals(other.References) )); }