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

            return
                ((
                     CheckNumber == other.CheckNumber ||
                     CheckNumber != null &&
                     CheckNumber.Equals(other.CheckNumber)
                     ) &&
                 (
                     FirstName == other.FirstName ||
                     FirstName != null &&
                     FirstName.Equals(other.FirstName)
                 ) &&
                 (
                     LastName == other.LastName ||
                     LastName != null &&
                     LastName.Equals(other.LastName)
                 ) &&
                 (
                     CompanyName == other.CompanyName ||
                     CompanyName != null &&
                     CompanyName.Equals(other.CompanyName)
                 ) &&
                 (
                     CheckAmount == other.CheckAmount ||
                     CheckAmount != null &&
                     CheckAmount.Equals(other.CheckAmount)
                 ) &&
                 (
                     CashListing == other.CashListing ||
                     CashListing != null &&
                     CashListing.Equals(other.CashListing)
                 ) &&
                 (
                     Comments == other.Comments ||
                     Comments != null &&
                     Comments.Equals(other.Comments)
                 ));
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Returns true if DepartmentDocument instances are equal
        /// </summary>
        /// <param name="other">Instance of DepartmentDocument to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(DepartmentDocumentDto other)
        {
            if (ReferenceEquals(null, other))
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     DepartmentDocumentNumber == other.DepartmentDocumentNumber ||
                     DepartmentDocumentNumber != null &&
                     DepartmentDocumentNumber.Equals(other.DepartmentDocumentNumber)
                     ) &&
                 (
                     TransmittalNumber == other.TransmittalNumber ||
                     TransmittalNumber != null &&
                     TransmittalNumber.Equals(other.TransmittalNumber)
                 ) &&
                 (
                     CheckNumber == other.CheckNumber ||
                     CheckNumber != null &&
                     CheckNumber.Equals(other.CheckNumber)
                 ) &&
                 (
                     FirstName == other.FirstName ||
                     FirstName != null &&
                     FirstName.Equals(other.FirstName)
                 ) &&
                 (
                     LastName == other.LastName ||
                     LastName != null &&
                     LastName.Equals(other.LastName)
                 ) &&
                 (
                     CompanyName == other.CompanyName ||
                     CompanyName != null &&
                     CompanyName.Equals(other.CompanyName)
                 ) &&
                 (
                     CheckAmount == other.CheckAmount ||
                     CheckAmount != null &&
                     CheckAmount.Equals(other.CheckAmount)
                 ) &&
                 (
                     CashListing == other.CashListing ||
                     CashListing != null &&
                     CashListing.Equals(other.CashListing)
                 ) &&
                 (
                     Comments == other.Comments ||
                     Comments != null &&
                     Comments.Equals(other.Comments)
                 ) &&
                 (
                     DateTimeStamp == other.DateTimeStamp ||
                     DateTimeStamp != null &&
                     DateTimeStamp.Equals(other.DateTimeStamp)
                 ));
        }
Ejemplo n.º 3
0
        /// <summary>
        /// Returns true if DepartmentDocumentSearchResponse instances are equal
        /// </summary>
        /// <param name="other">Instance of DepartmentDocumentSearchResponse to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(DepartmentDocumentSearchResponse other)
        {
            if (ReferenceEquals(null, other))
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     FirstName == other.FirstName ||
                     FirstName != null &&
                     FirstName.Equals(other.FirstName)
                     ) &&
                 (
                     LastName == other.LastName ||
                     LastName != null &&
                     LastName.Equals(other.LastName)
                 ) &&
                 (
                     CompanyName == other.CompanyName ||
                     CompanyName != null &&
                     CompanyName.Equals(other.CompanyName)
                 ) &&
                 (
                     DepartmentDocumentNumber == other.DepartmentDocumentNumber ||
                     DepartmentDocumentNumber != null &&
                     DepartmentDocumentNumber.Equals(other.DepartmentDocumentNumber)
                 ) &&
                 (
                     CheckNumber == other.CheckNumber ||
                     CheckNumber != null &&
                     CheckNumber.Equals(other.CheckNumber)
                 ) &&
                 (
                     CheckAmount == other.CheckAmount ||
                     CheckAmount != null &&
                     CheckAmount.Equals(other.CheckAmount)
                 ) &&
                 (
                     CheckDate == other.CheckDate ||
                     CheckDate != null &&
                     CheckDate.Equals(other.CheckDate)
                 ) &&
                 (
                     TransmittalNumber == other.TransmittalNumber ||
                     TransmittalNumber != null &&
                     TransmittalNumber.Equals(other.TransmittalNumber)
                 ) &&
                 (
                     TransmittalStatus == other.TransmittalStatus ||
                     TransmittalStatus != null &&
                     TransmittalStatus.Equals(other.TransmittalStatus)
                 ) &&
                 (
                     DepositNumber == other.DepositNumber ||
                     DepositNumber != null &&
                     DepositNumber.Equals(other.DepositNumber)
                 ) &&
                 (
                     CashListing == other.CashListing ||
                     CashListing != null &&
                     CashListing.Equals(other.CashListing)
                 ));
        }
        /// <summary>
        /// Returns true if DepartmentDocumentSearchRequest instances are equal
        /// </summary>
        /// <param name="other">Instance of DepartmentDocumentSearchRequest to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(DepartmentDocumentSearchRequest other)
        {
            if (ReferenceEquals(null, other))
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     FirstName == other.FirstName ||
                     FirstName != null &&
                     FirstName.Equals(other.FirstName)
                     ) &&
                 (
                     LastName == other.LastName ||
                     LastName != null &&
                     LastName.Equals(other.LastName)
                 ) &&
                 (
                     CompanyName == other.CompanyName ||
                     CompanyName != null &&
                     CompanyName.Equals(other.CompanyName)
                 ) &&
                 (
                     DepartmentDocumentNumber == other.DepartmentDocumentNumber ||
                     DepartmentDocumentNumber != null &&
                     DepartmentDocumentNumber.Equals(other.DepartmentDocumentNumber)
                 ) &&
                 (
                     DdnSearchType == other.DdnSearchType ||
                     DdnSearchType != null &&
                     DdnSearchType.Equals(other.DdnSearchType)
                 ) &&
                 (
                     CheckNumber == other.CheckNumber ||
                     CheckNumber != null &&
                     CheckNumber.Equals(other.CheckNumber)
                 ) &&
                 (
                     DepositNumber == other.DepositNumber ||
                     DepositNumber != null &&
                     DepositNumber.Equals(other.DepositNumber)
                 ) &&
                 (
                     TransmittalNumber == other.TransmittalNumber ||
                     TransmittalNumber != null &&
                     TransmittalNumber.Equals(other.TransmittalNumber)
                 ) &&
                 (
                     TransmittalStatus == other.TransmittalStatus ||
                     TransmittalStatus != null &&
                     TransmittalStatus.Equals(other.TransmittalStatus)
                 ) &&
                 (
                     CheckAmount == other.CheckAmount ||
                     CheckAmount != null &&
                     CheckAmount.Equals(other.CheckAmount)
                 ) &&
                 (
                     CashListing == other.CashListing ||
                     CashListing != null &&
                     CashListing.Equals(other.CashListing)
                 ) &&
                 (
                     EoCode == other.EoCode ||
                     EoCode != null &&
                     EoCode.Equals(other.EoCode)
                 ) &&
                 (
                     ObjectCode == other.ObjectCode ||
                     ObjectCode != null &&
                     ObjectCode.Equals(other.ObjectCode)
                 ) &&
                 (
                     DepositDateFrom == other.DepositDateFrom ||
                     DepositDateFrom != null &&
                     DepositDateFrom.Equals(other.DepositDateFrom)
                 ) &&
                 (
                     DepositDateTo == other.DepositDateTo ||
                     DepositDateTo != null &&
                     DepositDateTo.Equals(other.DepositDateTo)
                 ));
        }