Esempio n. 1
0
        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }

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

            return(obj is OrderLineItemPricingBlocklistsBlockedTax other &&
                   ((Uid == null && other.Uid == null) || (Uid?.Equals(other.Uid) == true)) &&
                   ((TaxUid == null && other.TaxUid == null) || (TaxUid?.Equals(other.TaxUid) == true)) &&
                   ((TaxCatalogObjectId == null && other.TaxCatalogObjectId == null) || (TaxCatalogObjectId?.Equals(other.TaxCatalogObjectId) == true)));
        }
        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }

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

            return(obj is OrderLineItemAppliedTax other &&
                   ((Uid == null && other.Uid == null) || (Uid?.Equals(other.Uid) == true)) &&
                   ((TaxUid == null && other.TaxUid == null) || (TaxUid?.Equals(other.TaxUid) == true)) &&
                   ((AppliedMoney == null && other.AppliedMoney == null) || (AppliedMoney?.Equals(other.AppliedMoney) == true)));
        }
Esempio n. 3
0
        public override int GetHashCode()
        {
            int hashCode = 91458610;

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

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

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

            return(hashCode);
        }
        public override int GetHashCode()
        {
            int hashCode = -1624626539;

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

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

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

            return(hashCode);
        }