/// <summary> /// Returns true if CustomerBase instances are equal /// </summary> /// <param name="other">Instance of CustomerBase to be compared</param> /// <returns>Boolean</returns> public bool Equals(CustomerBase other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( CompanyInformation == other.CompanyInformation || CompanyInformation != null && CompanyInformation.Equals(other.CompanyInformation) ) && ( MerchantCustomerId == other.MerchantCustomerId || MerchantCustomerId != null && MerchantCustomerId.Equals(other.MerchantCustomerId) ) && ( VatNumber == other.VatNumber || VatNumber != null && VatNumber.Equals(other.VatNumber) )); }
/// <summary> /// Returns true if CustomerTokenWithContactDetails instances are equal /// </summary> /// <param name="other">Instance of CustomerTokenWithContactDetails to be compared</param> /// <returns>Boolean</returns> public bool Equals(CustomerTokenWithContactDetails other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( ContactDetails == other.ContactDetails || ContactDetails != null && ContactDetails.Equals(other.ContactDetails) ) && ( BillingAddress == other.BillingAddress || BillingAddress != null && BillingAddress.Equals(other.BillingAddress) ) && ( PersonalInformation == other.PersonalInformation || PersonalInformation != null && PersonalInformation.Equals(other.PersonalInformation) ) && ( CompanyInformation == other.CompanyInformation || CompanyInformation != null && CompanyInformation.Equals(other.CompanyInformation) ) && ( MerchantCustomerId == other.MerchantCustomerId || MerchantCustomerId != null && MerchantCustomerId.Equals(other.MerchantCustomerId) ) && ( VatNumber == other.VatNumber || VatNumber != null && VatNumber.Equals(other.VatNumber) )); }
/// <summary> /// Returns true if AirlineData instances are equal /// </summary> /// <param name="other">Instance of AirlineData to be compared</param> /// <returns>Boolean</returns> public bool Equals(AirlineData other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( AgentNumericCode == other.AgentNumericCode || AgentNumericCode != null && AgentNumericCode.Equals(other.AgentNumericCode) ) && ( Code == other.Code || Code != null && Code.Equals(other.Code) ) && ( FlightDate == other.FlightDate || FlightDate != null && FlightDate.Equals(other.FlightDate) ) && ( FlightLegs == other.FlightLegs || FlightLegs != null && FlightLegs.SequenceEqual(other.FlightLegs) ) && ( InvoiceNumber == other.InvoiceNumber || InvoiceNumber != null && InvoiceNumber.Equals(other.InvoiceNumber) ) && ( IsETicket == other.IsETicket || IsETicket != null && IsETicket.Equals(other.IsETicket) ) && ( IsRegisteredCustomer == other.IsRegisteredCustomer || IsRegisteredCustomer != null && IsRegisteredCustomer.Equals(other.IsRegisteredCustomer) ) && ( IsRestrictedTicket == other.IsRestrictedTicket || IsRestrictedTicket != null && IsRestrictedTicket.Equals(other.IsRestrictedTicket) ) && ( IsThirdParty == other.IsThirdParty || IsThirdParty != null && IsThirdParty.Equals(other.IsThirdParty) ) && ( IssueDate == other.IssueDate || IssueDate != null && IssueDate.Equals(other.IssueDate) ) && ( MerchantCustomerId == other.MerchantCustomerId || MerchantCustomerId != null && MerchantCustomerId.Equals(other.MerchantCustomerId) ) && ( Name == other.Name || Name != null && Name.Equals(other.Name) ) && ( PassengerName == other.PassengerName || PassengerName != null && PassengerName.Equals(other.PassengerName) ) && ( Passengers == other.Passengers || Passengers != null && Passengers.SequenceEqual(other.Passengers) ) && ( PlaceOfIssue == other.PlaceOfIssue || PlaceOfIssue != null && PlaceOfIssue.Equals(other.PlaceOfIssue) ) && ( Pnr == other.Pnr || Pnr != null && Pnr.Equals(other.Pnr) ) && ( PointOfSale == other.PointOfSale || PointOfSale != null && PointOfSale.Equals(other.PointOfSale) ) && ( PosCityCode == other.PosCityCode || PosCityCode != null && PosCityCode.Equals(other.PosCityCode) ) && ( TicketDeliveryMethod == other.TicketDeliveryMethod || TicketDeliveryMethod != null && TicketDeliveryMethod.Equals(other.TicketDeliveryMethod) ) && ( TicketNumber == other.TicketNumber || TicketNumber != null && TicketNumber.Equals(other.TicketNumber) ) && ( TotalFare == other.TotalFare || TotalFare != null && TotalFare.Equals(other.TotalFare) ) && ( TotalFee == other.TotalFee || TotalFee != null && TotalFee.Equals(other.TotalFee) ) && ( TotalTaxes == other.TotalTaxes || TotalTaxes != null && TotalTaxes.Equals(other.TotalTaxes) ) && ( TravelAgencyName == other.TravelAgencyName || TravelAgencyName != null && TravelAgencyName.Equals(other.TravelAgencyName) )); }