Exemplo n.º 1
0
        /// <summary>
        /// Returns true if InlineResponse200 instances are equal
        /// </summary>
        /// <param name="other">Instance of InlineResponse200 to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(InlineResponse200 other)
        {
            if (ReferenceEquals(null, other))
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     ReferenceNumber == other.ReferenceNumber ||
                     ReferenceNumber != null &&
                     ReferenceNumber.Equals(other.ReferenceNumber)
                     ) &&
                 (
                     ItemNumber == other.ItemNumber ||
                     ItemNumber != null &&
                     ItemNumber.Equals(other.ItemNumber)
                 ) &&
                 (
                     LinkedFees == other.LinkedFees ||
                     LinkedFees != null &&
                     LinkedFees.SequenceEqual(other.LinkedFees)
                 ));
        }
Exemplo n.º 2
0
        /// <summary>
        /// Returns true if ReturnAuthorizationReturnDispositions instances are equal
        /// </summary>
        /// <param name="other">Instance of ReturnAuthorizationReturnDispositions to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(ReturnAuthorizationReturnDispositions other)
        {
            if (ReferenceEquals(null, other))
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     ReferenceNumber == other.ReferenceNumber ||
                     ReferenceNumber != null &&
                     ReferenceNumber.Equals(other.ReferenceNumber)
                     ) &&
                 (
                     ItemNumber == other.ItemNumber ||
                     ItemNumber != null &&
                     ItemNumber.Equals(other.ItemNumber)
                 ) &&
                 (
                     Quantity == other.Quantity ||
                     Quantity != null &&
                     Quantity.Equals(other.Quantity)
                 ) &&
                 (
                     DispositionType == other.DispositionType ||
                     DispositionType != null &&
                     DispositionType.Equals(other.DispositionType)
                 ) &&
                 (
                     DispositionInstructions == other.DispositionInstructions ||
                     DispositionInstructions != null &&
                     DispositionInstructions.SequenceEqual(other.DispositionInstructions)
                 ) &&
                 (
                     Labels == other.Labels ||
                     Labels != null &&
                     Labels.SequenceEqual(other.Labels)
                 ));
        }
Exemplo n.º 3
0
        /// <summary>
        /// Returns true if ReturnLineItem instances are equal
        /// </summary>
        /// <param name="other">Instance of ReturnLineItem to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(ReturnLineItem other)
        {
            if (ReferenceEquals(null, other))
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     ReferenceNumber == other.ReferenceNumber ||
                     ReferenceNumber != null &&
                     ReferenceNumber.Equals(other.ReferenceNumber)
                     ) &&
                 (
                     ItemNumber == other.ItemNumber ||
                     ItemNumber != null &&
                     ItemNumber.Equals(other.ItemNumber)
                 ) &&
                 (
                     Quantity == other.Quantity ||
                     Quantity != null &&
                     Quantity.Equals(other.Quantity)
                 ) &&
                 (
                     ReturnReason == other.ReturnReason ||
                     ReturnReason != null &&
                     ReturnReason.Equals(other.ReturnReason)
                 ) &&
                 (
                     ReasonText == other.ReasonText ||
                     ReasonText != null &&
                     ReasonText.Equals(other.ReasonText)
                 ));
        }
Exemplo n.º 4
0
        /// <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
                ((
                     ReferenceNumber == other.ReferenceNumber ||
                     ReferenceNumber != null &&
                     ReferenceNumber.Equals(other.ReferenceNumber)
                     ) &&
                 (
                     ItemNumber == other.ItemNumber ||
                     ItemNumber != null &&
                     ItemNumber.Equals(other.ItemNumber)
                 ) &&
                 (
                     Quantity == other.Quantity ||
                     Quantity != null &&
                     Quantity.Equals(other.Quantity)
                 ) &&
                 (
                     UnitSellPrice == other.UnitSellPrice ||
                     UnitSellPrice != null &&
                     UnitSellPrice.Equals(other.UnitSellPrice)
                 ) &&
                 (
                     UnitItemTaxPrice == other.UnitItemTaxPrice ||
                     UnitItemTaxPrice != null &&
                     UnitItemTaxPrice.Equals(other.UnitItemTaxPrice)
                 ) &&
                 (
                     UnitShippingPrice == other.UnitShippingPrice ||
                     UnitShippingPrice != null &&
                     UnitShippingPrice.Equals(other.UnitShippingPrice)
                 ) &&
                 (
                     UnitShippingTaxPrice == other.UnitShippingTaxPrice ||
                     UnitShippingTaxPrice != null &&
                     UnitShippingTaxPrice.Equals(other.UnitShippingTaxPrice)
                 ) &&
                 (
                     Coupons == other.Coupons ||
                     Coupons != null &&
                     Coupons.SequenceEqual(other.Coupons)
                 ) &&
                 (
                     LinkedFees == other.LinkedFees ||
                     LinkedFees != null &&
                     LinkedFees.SequenceEqual(other.LinkedFees)
                 ) &&
                 (
                     DeliveryDetail == other.DeliveryDetail ||
                     DeliveryDetail != null &&
                     DeliveryDetail.Equals(other.DeliveryDetail)
                 ));
        }
Exemplo n.º 5
0
        /// <summary>
        /// Returns true if Address instances are equal
        /// </summary>
        /// <param name="other">Instance of Address to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(Address other)
        {
            if (ReferenceEquals(null, other))
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     ReferenceNumber == other.ReferenceNumber ||
                     ReferenceNumber != null &&
                     ReferenceNumber.Equals(other.ReferenceNumber)
                     ) &&
                 (
                     FirstName == other.FirstName ||
                     FirstName != null &&
                     FirstName.Equals(other.FirstName)
                 ) &&
                 (
                     LastName == other.LastName ||
                     LastName != null &&
                     LastName.Equals(other.LastName)
                 ) &&
                 (
                     Address1 == other.Address1 ||
                     Address1 != null &&
                     Address1.Equals(other.Address1)
                 ) &&
                 (
                     Address2 == other.Address2 ||
                     Address2 != null &&
                     Address2.Equals(other.Address2)
                 ) &&
                 (
                     City == other.City ||
                     City != null &&
                     City.Equals(other.City)
                 ) &&
                 (
                     State == other.State ||
                     State != null &&
                     State.Equals(other.State)
                 ) &&
                 (
                     CountryCode == other.CountryCode ||
                     CountryCode != null &&
                     CountryCode.Equals(other.CountryCode)
                 ) &&
                 (
                     PostalCode == other.PostalCode ||
                     PostalCode != null &&
                     PostalCode.Equals(other.PostalCode)
                 ) &&
                 (
                     PhoneNumber == other.PhoneNumber ||
                     PhoneNumber != null &&
                     PhoneNumber.Equals(other.PhoneNumber)
                 ));
        }