public override bool Equals(object obj) { if (obj == null) { return(false); } if (obj == this) { return(true); } return(obj is Card other && ((Id == null && other.Id == null) || (Id?.Equals(other.Id) == true)) && ((CardBrand == null && other.CardBrand == null) || (CardBrand?.Equals(other.CardBrand) == true)) && ((Last4 == null && other.Last4 == null) || (Last4?.Equals(other.Last4) == true)) && ((ExpMonth == null && other.ExpMonth == null) || (ExpMonth?.Equals(other.ExpMonth) == true)) && ((ExpYear == null && other.ExpYear == null) || (ExpYear?.Equals(other.ExpYear) == true)) && ((CardholderName == null && other.CardholderName == null) || (CardholderName?.Equals(other.CardholderName) == true)) && ((BillingAddress == null && other.BillingAddress == null) || (BillingAddress?.Equals(other.BillingAddress) == true)) && ((Fingerprint == null && other.Fingerprint == null) || (Fingerprint?.Equals(other.Fingerprint) == true)) && ((CardType == null && other.CardType == null) || (CardType?.Equals(other.CardType) == true)) && ((PrepaidType == null && other.PrepaidType == null) || (PrepaidType?.Equals(other.PrepaidType) == true)) && ((Bin == null && other.Bin == null) || (Bin?.Equals(other.Bin) == true))); }
public override bool Equals(object obj) { if (obj == null) { return(false); } if (obj == this) { return(true); } return(obj is CreateCustomerCardRequest other && ((CardNonce == null && other.CardNonce == null) || (CardNonce?.Equals(other.CardNonce) == true)) && ((BillingAddress == null && other.BillingAddress == null) || (BillingAddress?.Equals(other.BillingAddress) == true)) && ((CardholderName == null && other.CardholderName == null) || (CardholderName?.Equals(other.CardholderName) == true)) && ((VerificationToken == null && other.VerificationToken == null) || (VerificationToken?.Equals(other.VerificationToken) == true))); }
/// <summary> /// Returns true if DecryptedPaymentData instances are equal /// </summary> /// <param name="other">Instance of DecryptedPaymentData to be compared</param> /// <returns>Boolean</returns> public bool Equals(DecryptedPaymentData other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( CardholderName == other.CardholderName || CardholderName != null && CardholderName.Equals(other.CardholderName) ) && ( Cryptogram == other.Cryptogram || Cryptogram != null && Cryptogram.Equals(other.Cryptogram) ) && ( Dpan == other.Dpan || Dpan != null && Dpan.Equals(other.Dpan) ) && ( Eci == other.Eci || Eci != null && Eci.Equals(other.Eci) ) && ( ExpiryDate == other.ExpiryDate || ExpiryDate != null && ExpiryDate.Equals(other.ExpiryDate) )); }
/// <summary> /// Returns true if CardWithoutCvv instances are equal /// </summary> /// <param name="other">Instance of CardWithoutCvv to be compared</param> /// <returns>Boolean</returns> public bool Equals(CardWithoutCvv other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( CardholderName == other.CardholderName || CardholderName != null && CardholderName.Equals(other.CardholderName) ) && ( IssueNumber == other.IssueNumber || IssueNumber != null && IssueNumber.Equals(other.IssueNumber) )); }