/// <summary> /// Returns true if BankingProductDetail instances are equal /// </summary> /// <param name="other">Instance of BankingProductDetail to be compared</param> /// <returns>Boolean</returns> public bool Equals(BankingProductDetail other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( Bundles == other.Bundles || Bundles != null && Bundles.SequenceEqual(other.Bundles) ) && ( Features == other.Features || Features != null && Features.SequenceEqual(other.Features) ) && ( Constraints == other.Constraints || Constraints != null && Constraints.SequenceEqual(other.Constraints) ) && ( Eligibility == other.Eligibility || Eligibility != null && Eligibility.SequenceEqual(other.Eligibility) ) && ( Fees == other.Fees || Fees != null && Fees.SequenceEqual(other.Fees) ) && ( DepositRates == other.DepositRates || DepositRates != null && DepositRates.SequenceEqual(other.DepositRates) ) && ( LendingRates == other.LendingRates || LendingRates != null && LendingRates.SequenceEqual(other.LendingRates) )); }
/// <summary> /// Returns true if BankingAccountDiscount instances are equal /// </summary> /// <param name="other">Instance of BankingAccountDiscount to be compared</param> /// <returns>Boolean</returns> public bool Equals(BankingAccountDiscount other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( Description == other.Description || Description != null && Description.Equals(other.Description) ) && ( DiscountType == other.DiscountType || DiscountType != null && DiscountType.Equals(other.DiscountType) ) && ( Amount == other.Amount || Amount != null && Amount.Equals(other.Amount) ) && ( BalanceRate == other.BalanceRate || BalanceRate != null && BalanceRate.Equals(other.BalanceRate) ) && ( TransactionRate == other.TransactionRate || TransactionRate != null && TransactionRate.Equals(other.TransactionRate) ) && ( AccruedRate == other.AccruedRate || AccruedRate != null && AccruedRate.Equals(other.AccruedRate) ) && ( AdditionalValue == other.AdditionalValue || AdditionalValue != null && AdditionalValue.Equals(other.AdditionalValue) ) && ( Eligibility == other.Eligibility || Eligibility != null && Eligibility.SequenceEqual(other.Eligibility) ) && ( AdditionalInfo == other.AdditionalInfo || AdditionalInfo != null && AdditionalInfo.Equals(other.AdditionalInfo) ) && ( AdditionalInfoUri == other.AdditionalInfoUri || AdditionalInfoUri != null && AdditionalInfoUri.Equals(other.AdditionalInfoUri) )); }