Ejemplo n.º 1
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 (ExpirationPeriod != null)
         {
             hashCode = hashCode * 59 + ExpirationPeriod.GetHashCode();
         }
         if (RecurringPaymentSequenceIndicator != null)
         {
             hashCode = hashCode * 59 + RecurringPaymentSequenceIndicator.GetHashCode();
         }
         if (RequiresApproval != null)
         {
             hashCode = hashCode * 59 + RequiresApproval.GetHashCode();
         }
         if (Token != null)
         {
             hashCode = hashCode * 59 + Token.GetHashCode();
         }
         if (Tokenize != null)
         {
             hashCode = hashCode * 59 + Tokenize.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 (AuthorizationMode != null)
         {
             hashCode = hashCode * 59 + AuthorizationMode.GetHashCode();
         }
         if (CustomerReference != null)
         {
             hashCode = hashCode * 59 + CustomerReference.GetHashCode();
         }
         if (RecurringPaymentSequenceIndicator != null)
         {
             hashCode = hashCode * 59 + RecurringPaymentSequenceIndicator.GetHashCode();
         }
         if (RequiresApproval != null)
         {
             hashCode = hashCode * 59 + RequiresApproval.GetHashCode();
         }
         if (SkipAuthentication != null)
         {
             hashCode = hashCode * 59 + SkipAuthentication.GetHashCode();
         }
         if (SkipFraudService != null)
         {
             hashCode = hashCode * 59 + SkipFraudService.GetHashCode();
         }
         if (Token != null)
         {
             hashCode = hashCode * 59 + Token.GetHashCode();
         }
         if (Tokenize != null)
         {
             hashCode = hashCode * 59 + Tokenize.GetHashCode();
         }
         if (TransactionChannel != null)
         {
             hashCode = hashCode * 59 + TransactionChannel.GetHashCode();
         }
         if (UnscheduledCardOnFileIndicator != null)
         {
             hashCode = hashCode * 59 + UnscheduledCardOnFileIndicator.GetHashCode();
         }
         if (UnscheduledCardOnFileRequestor != null)
         {
             hashCode = hashCode * 59 + UnscheduledCardOnFileRequestor.GetHashCode();
         }
         return(hashCode);
     }
 }
Ejemplo n.º 3
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 (DateCollect != null)
         {
             hashCode = hashCode * 59 + DateCollect.GetHashCode();
         }
         if (DirectDebitText != null)
         {
             hashCode = hashCode * 59 + DirectDebitText.GetHashCode();
         }
         if (IsRecurring != null)
         {
             hashCode = hashCode * 59 + IsRecurring.GetHashCode();
         }
         if (PaymentProduct705SpecificInput != null)
         {
             hashCode = hashCode * 59 + PaymentProduct705SpecificInput.GetHashCode();
         }
         if (PaymentProduct730SpecificInput != null)
         {
             hashCode = hashCode * 59 + PaymentProduct730SpecificInput.GetHashCode();
         }
         if (RecurringPaymentSequenceIndicator != null)
         {
             hashCode = hashCode * 59 + RecurringPaymentSequenceIndicator.GetHashCode();
         }
         if (Token != null)
         {
             hashCode = hashCode * 59 + Token.GetHashCode();
         }
         if (Tokenize != null)
         {
             hashCode = hashCode * 59 + Tokenize.GetHashCode();
         }
         return(hashCode);
     }
 }