/// <summary>
 /// Gets the hash code
 /// </summary>
 /// <returns>Hash code</returns>
 public override int GetHashCode()
 {
     unchecked // Overflow is fine, just wrap
     {
         var hashCode = 41;
         // Suitable nullity checks etc, of course :)
         if (AuthorisationCode != null)
         {
             hashCode = hashCode * 59 + AuthorisationCode.GetHashCode();
         }
         if (Card != null)
         {
             hashCode = hashCode * 59 + Card.GetHashCode();
         }
         if (FraudResults != null)
         {
             hashCode = hashCode * 59 + FraudResults.GetHashCode();
         }
         if (ThreeDSecureResults != null)
         {
             hashCode = hashCode * 59 + ThreeDSecureResults.GetHashCode();
         }
         if (Token != null)
         {
             hashCode = hashCode * 59 + Token.GetHashCode();
         }
         return(hashCode);
     }
 }
Esempio n. 2
0
 /// <summary>
 /// Gets the hash code
 /// </summary>
 /// <returns>Hash code</returns>
 public override int GetHashCode()
 {
     unchecked // Overflow is fine, just wrap
     {
         var hashCode = 41;
         // Suitable nullity checks etc, of course :)
         if (AuthorisationCode != null)
         {
             hashCode = hashCode * 59 + AuthorisationCode.GetHashCode();
         }
         if (FraudResults != null)
         {
             hashCode = hashCode * 59 + FraudResults.GetHashCode();
         }
         if (Network != null)
         {
             hashCode = hashCode * 59 + Network.GetHashCode();
         }
         if (PaymentData != null)
         {
             hashCode = hashCode * 59 + PaymentData.GetHashCode();
         }
         if (ThreeDSecureResults != null)
         {
             hashCode = hashCode * 59 + ThreeDSecureResults.GetHashCode();
         }
         return(hashCode);
     }
 }
 /// <summary>
 /// Gets the hash code
 /// </summary>
 /// <returns>Hash code</returns>
 public override int GetHashCode()
 {
     unchecked // Overflow is fine, just wrap
     {
         var hashCode = 41;
         // Suitable nullity checks etc, of course :)
         if (BankAccountIban != null)
         {
             hashCode = hashCode * 59 + BankAccountIban.GetHashCode();
         }
         if (FraudResults != null)
         {
             hashCode = hashCode * 59 + FraudResults.GetHashCode();
         }
         if (PaymentProduct840SpecificOutput != null)
         {
             hashCode = hashCode * 59 + PaymentProduct840SpecificOutput.GetHashCode();
         }
         if (Token != null)
         {
             hashCode = hashCode * 59 + Token.GetHashCode();
         }
         return(hashCode);
     }
 }