public override int GetHashCode()
        {
            int hashCode = 497511120;

            if (BlockedDiscounts != null)
            {
                hashCode += BlockedDiscounts.GetHashCode();
            }

            if (BlockedTaxes != null)
            {
                hashCode += BlockedTaxes.GetHashCode();
            }

            return(hashCode);
        }
        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }

            if (obj == this)
            {
                return(true);
            }

            return(obj is OrderLineItemPricingBlocklists other &&
                   ((BlockedDiscounts == null && other.BlockedDiscounts == null) || (BlockedDiscounts?.Equals(other.BlockedDiscounts) == true)) &&
                   ((BlockedTaxes == null && other.BlockedTaxes == null) || (BlockedTaxes?.Equals(other.BlockedTaxes) == true)));
        }