public override bool Equals(object obj) { if (obj == null) { return(false); } if (obj == this) { return(true); } return(obj is OrderLineItemPricingBlocklistsBlockedDiscount other && ((Uid == null && other.Uid == null) || (Uid?.Equals(other.Uid) == true)) && ((DiscountUid == null && other.DiscountUid == null) || (DiscountUid?.Equals(other.DiscountUid) == true)) && ((DiscountCatalogObjectId == null && other.DiscountCatalogObjectId == null) || (DiscountCatalogObjectId?.Equals(other.DiscountCatalogObjectId) == true))); }
public override bool Equals(object obj) { if (obj == null) { return(false); } if (obj == this) { return(true); } return(obj is OrderLineItemAppliedDiscount other && ((Uid == null && other.Uid == null) || (Uid?.Equals(other.Uid) == true)) && ((DiscountUid == null && other.DiscountUid == null) || (DiscountUid?.Equals(other.DiscountUid) == true)) && ((AppliedMoney == null && other.AppliedMoney == null) || (AppliedMoney?.Equals(other.AppliedMoney) == true))); }
public override int GetHashCode() { int hashCode = 532800568; if (Uid != null) { hashCode += Uid.GetHashCode(); } if (DiscountUid != null) { hashCode += DiscountUid.GetHashCode(); } if (DiscountCatalogObjectId != null) { hashCode += DiscountCatalogObjectId.GetHashCode(); } return(hashCode); }
public override int GetHashCode() { int hashCode = -855225717; if (Uid != null) { hashCode += Uid.GetHashCode(); } if (DiscountUid != null) { hashCode += DiscountUid.GetHashCode(); } if (AppliedMoney != null) { hashCode += AppliedMoney.GetHashCode(); } return(hashCode); }