/// <summary> /// Returns true if Debtor instances are equal /// </summary> /// <param name="other">Instance of Debtor to be compared</param> /// <returns>Boolean</returns> public bool Equals(Debtor other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( AdditionalAddressInfo == other.AdditionalAddressInfo || AdditionalAddressInfo != null && AdditionalAddressInfo.Equals(other.AdditionalAddressInfo) ) && ( City == other.City || City != null && City.Equals(other.City) ) && ( CountryCode == other.CountryCode || CountryCode != null && CountryCode.Equals(other.CountryCode) ) && ( FirstName == other.FirstName || FirstName != null && FirstName.Equals(other.FirstName) ) && ( HouseNumber == other.HouseNumber || HouseNumber != null && HouseNumber.Equals(other.HouseNumber) ) && ( State == other.State || State != null && State.Equals(other.State) ) && ( StateCode == other.StateCode || StateCode != null && StateCode.Equals(other.StateCode) ) && ( Street == other.Street || Street != null && Street.Equals(other.Street) ) && ( Surname == other.Surname || Surname != null && Surname.Equals(other.Surname) ) && ( SurnamePrefix == other.SurnamePrefix || SurnamePrefix != null && SurnamePrefix.Equals(other.SurnamePrefix) ) && ( Zip == other.Zip || Zip != null && Zip.Equals(other.Zip) )); }
/// <summary> /// Returns true if Creditor instances are equal /// </summary> /// <param name="other">Instance of Creditor to be compared</param> /// <returns>Boolean</returns> public bool Equals(Creditor other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( AdditionalAddressInfo == other.AdditionalAddressInfo || AdditionalAddressInfo != null && AdditionalAddressInfo.Equals(other.AdditionalAddressInfo) ) && ( City == other.City || City != null && City.Equals(other.City) ) && ( CountryCode == other.CountryCode || CountryCode != null && CountryCode.Equals(other.CountryCode) ) && ( HouseNumber == other.HouseNumber || HouseNumber != null && HouseNumber.Equals(other.HouseNumber) ) && ( Iban == other.Iban || Iban != null && Iban.Equals(other.Iban) ) && ( Id == other.Id || Id != null && Id.Equals(other.Id) ) && ( Name == other.Name || Name != null && Name.Equals(other.Name) ) && ( ReferenceParty == other.ReferenceParty || ReferenceParty != null && ReferenceParty.Equals(other.ReferenceParty) ) && ( ReferencePartyId == other.ReferencePartyId || ReferencePartyId != null && ReferencePartyId.Equals(other.ReferencePartyId) ) && ( Street == other.Street || Street != null && Street.Equals(other.Street) ) && ( Zip == other.Zip || Zip != null && Zip.Equals(other.Zip) )); }