/// <summary> /// Returns true if CreateMandateBase instances are equal /// </summary> /// <param name="other">Instance of CreateMandateBase to be compared</param> /// <returns>Boolean</returns> public bool Equals(CreateMandateBase other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( Alias == other.Alias || Alias != null && Alias.Equals(other.Alias) ) && ( Customer == other.Customer || Customer != null && Customer.Equals(other.Customer) ) && ( CustomerReference == other.CustomerReference || CustomerReference != null && CustomerReference.Equals(other.CustomerReference) ) && ( Language == other.Language || Language != null && Language.Equals(other.Language) ) && ( RecurrenceType == other.RecurrenceType || RecurrenceType != null && RecurrenceType.Equals(other.RecurrenceType) ) && ( SignatureType == other.SignatureType || SignatureType != null && SignatureType.Equals(other.SignatureType) ) && ( UniqueMandateReference == other.UniqueMandateReference || UniqueMandateReference != null && UniqueMandateReference.Equals(other.UniqueMandateReference) )); }
/// <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) )); }