Ejemplo n.º 1
0
        /// <summary>
        /// Returns true if NonSepaDirectDebitPaymentMethodSpecificInput instances are equal
        /// </summary>
        /// <param name="other">Instance of NonSepaDirectDebitPaymentMethodSpecificInput to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(NonSepaDirectDebitPaymentMethodSpecificInput other)
        {
            if (ReferenceEquals(null, other))
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     DateCollect == other.DateCollect ||
                     DateCollect != null &&
                     DateCollect.Equals(other.DateCollect)
                     ) &&
                 (
                     DirectDebitText == other.DirectDebitText ||
                     DirectDebitText != null &&
                     DirectDebitText.Equals(other.DirectDebitText)
                 ) &&
                 (
                     IsRecurring == other.IsRecurring ||
                     IsRecurring != null &&
                     IsRecurring.Equals(other.IsRecurring)
                 ) &&
                 (
                     PaymentProduct705SpecificInput == other.PaymentProduct705SpecificInput ||
                     PaymentProduct705SpecificInput != null &&
                     PaymentProduct705SpecificInput.Equals(other.PaymentProduct705SpecificInput)
                 ) &&
                 (
                     PaymentProduct730SpecificInput == other.PaymentProduct730SpecificInput ||
                     PaymentProduct730SpecificInput != null &&
                     PaymentProduct730SpecificInput.Equals(other.PaymentProduct730SpecificInput)
                 ) &&
                 (
                     RecurringPaymentSequenceIndicator == other.RecurringPaymentSequenceIndicator ||
                     RecurringPaymentSequenceIndicator != null &&
                     RecurringPaymentSequenceIndicator.Equals(other.RecurringPaymentSequenceIndicator)
                 ) &&
                 (
                     Token == other.Token ||
                     Token != null &&
                     Token.Equals(other.Token)
                 ) &&
                 (
                     Tokenize == other.Tokenize ||
                     Tokenize != null &&
                     Tokenize.Equals(other.Tokenize)
                 ));
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Returns true if AbstractRedirectPaymentMethodSpecificInput instances are equal
        /// </summary>
        /// <param name="other">Instance of AbstractRedirectPaymentMethodSpecificInput to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(AbstractRedirectPaymentMethodSpecificInput other)
        {
            if (ReferenceEquals(null, other))
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     ExpirationPeriod == other.ExpirationPeriod ||
                     ExpirationPeriod != null &&
                     ExpirationPeriod.Equals(other.ExpirationPeriod)
                     ) &&
                 (
                     RecurringPaymentSequenceIndicator == other.RecurringPaymentSequenceIndicator ||
                     RecurringPaymentSequenceIndicator != null &&
                     RecurringPaymentSequenceIndicator.Equals(other.RecurringPaymentSequenceIndicator)
                 ) &&
                 (
                     RequiresApproval == other.RequiresApproval ||
                     RequiresApproval != null &&
                     RequiresApproval.Equals(other.RequiresApproval)
                 ) &&
                 (
                     Token == other.Token ||
                     Token != null &&
                     Token.Equals(other.Token)
                 ) &&
                 (
                     Tokenize == other.Tokenize ||
                     Tokenize != null &&
                     Tokenize.Equals(other.Tokenize)
                 ));
        }
        /// <summary>
        /// Returns true if AbstractCardPaymentMethodSpecificInput instances are equal
        /// </summary>
        /// <param name="other">Instance of AbstractCardPaymentMethodSpecificInput to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(AbstractCardPaymentMethodSpecificInput other)
        {
            if (ReferenceEquals(null, other))
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     AuthorizationMode == other.AuthorizationMode ||
                     AuthorizationMode != null &&
                     AuthorizationMode.Equals(other.AuthorizationMode)
                     ) &&
                 (
                     CustomerReference == other.CustomerReference ||
                     CustomerReference != null &&
                     CustomerReference.Equals(other.CustomerReference)
                 ) &&
                 (
                     RecurringPaymentSequenceIndicator == other.RecurringPaymentSequenceIndicator ||
                     RecurringPaymentSequenceIndicator != null &&
                     RecurringPaymentSequenceIndicator.Equals(other.RecurringPaymentSequenceIndicator)
                 ) &&
                 (
                     RequiresApproval == other.RequiresApproval ||
                     RequiresApproval != null &&
                     RequiresApproval.Equals(other.RequiresApproval)
                 ) &&
                 (
                     SkipAuthentication == other.SkipAuthentication ||
                     SkipAuthentication != null &&
                     SkipAuthentication.Equals(other.SkipAuthentication)
                 ) &&
                 (
                     SkipFraudService == other.SkipFraudService ||
                     SkipFraudService != null &&
                     SkipFraudService.Equals(other.SkipFraudService)
                 ) &&
                 (
                     Token == other.Token ||
                     Token != null &&
                     Token.Equals(other.Token)
                 ) &&
                 (
                     Tokenize == other.Tokenize ||
                     Tokenize != null &&
                     Tokenize.Equals(other.Tokenize)
                 ) &&
                 (
                     TransactionChannel == other.TransactionChannel ||
                     TransactionChannel != null &&
                     TransactionChannel.Equals(other.TransactionChannel)
                 ) &&
                 (
                     UnscheduledCardOnFileIndicator == other.UnscheduledCardOnFileIndicator ||
                     UnscheduledCardOnFileIndicator != null &&
                     UnscheduledCardOnFileIndicator.Equals(other.UnscheduledCardOnFileIndicator)
                 ) &&
                 (
                     UnscheduledCardOnFileRequestor == other.UnscheduledCardOnFileRequestor ||
                     UnscheduledCardOnFileRequestor != null &&
                     UnscheduledCardOnFileRequestor.Equals(other.UnscheduledCardOnFileRequestor)
                 ));
        }