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

            return
                ((
                     Preferred == other.Preferred ||
                     Preferred != null &&
                     Preferred.Equals(other.Preferred)
                     ) &&
                 (
                     ContactMediumType == other.ContactMediumType ||
                     ContactMediumType != null &&
                     ContactMediumType.Equals(other.ContactMediumType)
                 ) &&
                 (
                     ValidFor == other.ValidFor ||
                     ValidFor != null &&
                     ValidFor.Equals(other.ValidFor)
                 ) &&
                 (
                     Characteristic == other.Characteristic ||
                     Characteristic != null &&
                     Characteristic.Equals(other.Characteristic)
                 ));
        }
        /// <summary>
        /// Returns true if CustomerUpdate instances are equal
        /// </summary>
        /// <param name="other">Instance of CustomerUpdate to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(CustomerUpdate other)
        {
            if (ReferenceEquals(null, other))
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     Name == other.Name ||
                     Name != null &&
                     Name.Equals(other.Name)
                     ) &&
                 (
                     Status == other.Status ||
                     Status != null &&
                     Status.Equals(other.Status)
                 ) &&
                 (
                     StatusReason == other.StatusReason ||
                     StatusReason != null &&
                     StatusReason.Equals(other.StatusReason)
                 ) &&
                 (
                     ValidFor == other.ValidFor ||
                     ValidFor != null &&
                     ValidFor.Equals(other.ValidFor)
                 ) &&
                 (
                     EngagedParty == other.EngagedParty ||
                     EngagedParty != null &&
                     EngagedParty.Equals(other.EngagedParty)
                 ) &&
                 (
                     PartyRoleType == other.PartyRoleType ||
                     PartyRoleType != null &&
                     PartyRoleType.Equals(other.PartyRoleType)
                 ) &&
                 (
                     Account == other.Account ||
                     Account != null &&
                     Account.SequenceEqual(other.Account)
                 ) &&
                 (
                     Characteristic == other.Characteristic ||
                     Characteristic != null &&
                     Characteristic.SequenceEqual(other.Characteristic)
                 ) &&
                 (
                     CreditProfile == other.CreditProfile ||
                     CreditProfile != null &&
                     CreditProfile.SequenceEqual(other.CreditProfile)
                 ) &&
                 (
                     Agreement == other.Agreement ||
                     Agreement != null &&
                     Agreement.SequenceEqual(other.Agreement)
                 ) &&
                 (
                     RelatedParty == other.RelatedParty ||
                     RelatedParty != null &&
                     RelatedParty.SequenceEqual(other.RelatedParty)
                 ));
        }
        /// <summary>
        /// Returns true if CreditProfile instances are equal
        /// </summary>
        /// <param name="other">Instance of CreditProfile to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(CreditProfile other)
        {
            if (ReferenceEquals(null, other))
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     CreditProfileDate == other.CreditProfileDate ||
                     CreditProfileDate != null &&
                     CreditProfileDate.Equals(other.CreditProfileDate)
                     ) &&
                 (
                     CreditRiskRating == other.CreditRiskRating ||
                     CreditRiskRating != null &&
                     CreditRiskRating.Equals(other.CreditRiskRating)
                 ) &&
                 (
                     CreditScore == other.CreditScore ||
                     CreditScore != null &&
                     CreditScore.Equals(other.CreditScore)
                 ) &&
                 (
                     ValidFor == other.ValidFor ||
                     ValidFor != null &&
                     ValidFor.Equals(other.ValidFor)
                 ) &&
                 (
                     TagCreditScoring == other.TagCreditScoring ||
                     TagCreditScoring != null &&
                     TagCreditScoring.Equals(other.TagCreditScoring)
                 ) &&
                 (
                     TagCreditLimit == other.TagCreditLimit ||
                     TagCreditLimit != null &&
                     TagCreditLimit.Equals(other.TagCreditLimit)
                 ) &&
                 (
                     TagCreditThreshold == other.TagCreditThreshold ||
                     TagCreditThreshold != null &&
                     TagCreditThreshold.Equals(other.TagCreditThreshold)
                 ) &&
                 (
                     TagCreditOnHold == other.TagCreditOnHold ||
                     TagCreditOnHold != null &&
                     TagCreditOnHold.Equals(other.TagCreditOnHold)
                 ) &&
                 (
                     TagContractDailyCreditLimit == other.TagContractDailyCreditLimit ||
                     TagContractDailyCreditLimit != null &&
                     TagContractDailyCreditLimit.Equals(other.TagContractDailyCreditLimit)
                 ) &&
                 (
                     TagContractPeriodicCreditLimit == other.TagContractPeriodicCreditLimit ||
                     TagContractPeriodicCreditLimit != null &&
                     TagContractPeriodicCreditLimit.Equals(other.TagContractPeriodicCreditLimit)
                 ));
        }
Пример #4
0
        /// <summary>
        /// Returns true if Customer instances are equal
        /// </summary>
        /// <param name="other">Instance of Customer to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(Customer other)
        {
            if (ReferenceEquals(null, other))
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     Href == other.Href ||
                     Href != null &&
                     Href.Equals(other.Href)
                     ) &&
                 (
                     Id == other.Id ||
                     Id != null &&
                     Id.Equals(other.Id)
                 ) &&
                 (
                     Name == other.Name ||
                     Name != null &&
                     Name.Equals(other.Name)
                 ) &&
                 (
                     Status == other.Status ||
                     Status != null &&
                     Status.Equals(other.Status)
                 ) &&
                 (
                     StatusReason == other.StatusReason ||
                     StatusReason != null &&
                     StatusReason.Equals(other.StatusReason)
                 ) &&
                 (
                     PreferredLanguage == other.PreferredLanguage ||
                     PreferredLanguage != null &&
                     PreferredLanguage.Equals(other.PreferredLanguage)
                 ) &&
                 (
                     ValidFor == other.ValidFor ||
                     ValidFor != null &&
                     ValidFor.Equals(other.ValidFor)
                 ) &&
                 (
                     EngagedParty == other.EngagedParty ||
                     EngagedParty != null &&
                     EngagedParty.Equals(other.EngagedParty)
                 ) &&
                 (
                     PartyRoleType == other.PartyRoleType ||
                     PartyRoleType != null &&
                     PartyRoleType.Equals(other.PartyRoleType)
                 ) &&
                 (
                     Account == other.Account ||
                     Account != null &&
                     Account.SequenceEqual(other.Account)
                 ) &&
                 (
                     PaymentMethod == other.PaymentMethod ||
                     PaymentMethod != null &&
                     PaymentMethod.SequenceEqual(other.PaymentMethod)
                 ) &&
                 (
                     ContactMedium == other.ContactMedium ||
                     ContactMedium != null &&
                     ContactMedium.SequenceEqual(other.ContactMedium)
                 ) &&
                 (
                     Characteristic == other.Characteristic ||
                     Characteristic != null &&
                     Characteristic.SequenceEqual(other.Characteristic)
                 ) &&
                 (
                     CreditProfile == other.CreditProfile ||
                     CreditProfile != null &&
                     CreditProfile.SequenceEqual(other.CreditProfile)
                 ) &&
                 (
                     Agreement == other.Agreement ||
                     Agreement != null &&
                     Agreement.SequenceEqual(other.Agreement)
                 ) &&
                 (
                     RelatedParty == other.RelatedParty ||
                     RelatedParty != null &&
                     RelatedParty.SequenceEqual(other.RelatedParty)
                 ));
        }