public override int GetHashCode() { int hash = 1; if (Description.Length != 0) { hash ^= Description.GetHashCode(); } if (ChargeCreditType != 0) { hash ^= ChargeCreditType.GetHashCode(); } if (untaxedAmount_ != null) { hash ^= UntaxedAmount.GetHashCode(); } if (TaxExempt != false) { hash ^= TaxExempt.GetHashCode(); } if (incidentalItem_ != null) { hash ^= IncidentalItem.GetHashCode(); } if (chargeOpsdate_ != null) { hash ^= ChargeOpsdate.GetHashCode(); } return(hash); }
public override int GetHashCode() { int hash = 1; if (dateRange_ != null) { hash ^= DateRange.GetHashCode(); } if (reservation_ != null) { hash ^= Reservation.GetHashCode(); } if (roomType_ != null) { hash ^= RoomType.GetHashCode(); } if (TaxExempt != false) { hash ^= TaxExempt.GetHashCode(); } if (AdultGuestCount != 0) { hash ^= AdultGuestCount.GetHashCode(); } hash ^= reservationTags_.GetHashCode(); if (IsMockPriceRequiredForGroup != false) { hash ^= IsMockPriceRequiredForGroup.GetHashCode(); } return(hash); }
internal void WriteXml(XmlTextWriter xmlWriter, bool embedded = false) { xmlWriter.WriteStartElement("adjustment"); // Start: adjustment xmlWriter.WriteElementString("description", Description); xmlWriter.WriteElementString("unit_amount_in_cents", UnitAmountInCents.AsString()); xmlWriter.WriteElementString("quantity", Quantity.AsString()); xmlWriter.WriteElementString("accounting_code", AccountingCode); xmlWriter.WriteElementString("tax_exempt", TaxExempt.AsString()); xmlWriter.WriteElementString("product_code", ProductCode); if (!embedded) { xmlWriter.WriteElementString("currency", Currency); } if (RevenueScheduleType.HasValue) { xmlWriter.WriteElementString("revenue_schedule_type", RevenueScheduleType.Value.ToString().EnumNameToTransportCase()); } if (TaxCode != null) { xmlWriter.WriteElementString("tax_code", TaxCode); } if (StartDate != DateTime.MinValue) { xmlWriter.WriteElementString("start_date", StartDate.ToString("s")); } if (EndDate.HasValue) { xmlWriter.WriteElementString("end_date", EndDate.Value.ToString("s")); } if (Origin != null) { xmlWriter.WriteElementString("origin", Origin); } xmlWriter.WriteEndElement(); // End: adjustment }
internal override void WriteXml(XmlTextWriter xmlWriter) { xmlWriter.WriteStartElement("adjustment"); xmlWriter.WriteElementString("description", Description); xmlWriter.WriteElementString("unit_amount_in_cents", UnitAmountInCents.AsString()); xmlWriter.WriteElementString("currency", Currency); xmlWriter.WriteElementString("quantity", Quantity.AsString()); xmlWriter.WriteElementString("accounting_code", AccountingCode); xmlWriter.WriteElementString("tax_exempt", TaxExempt.AsString()); xmlWriter.WriteEndElement(); }
internal void WriteXml(XmlTextWriter xmlWriter, bool embedded = false) { xmlWriter.WriteStartElement("adjustment"); // Start: adjustment xmlWriter.WriteElementString("description", Description); xmlWriter.WriteElementString("unit_amount_in_cents", UnitAmountInCents.AsString()); xmlWriter.WriteElementString("quantity", Quantity.AsString()); xmlWriter.WriteElementString("accounting_code", AccountingCode); xmlWriter.WriteElementString("tax_exempt", TaxExempt.AsString()); if (!embedded) { xmlWriter.WriteElementString("currency", Currency); } if (RevenueScheduleType.HasValue) { xmlWriter.WriteElementString("revenue_schedule_type", RevenueScheduleType.Value.ToString().EnumNameToTransportCase()); } xmlWriter.WriteEndElement(); // End: adjustment }
internal override void WriteXml(XmlTextWriter xmlWriter) { xmlWriter.WriteStartElement("transaction"); xmlWriter.WriteElementString("amount_in_cents", AmountInCents.AsString()); xmlWriter.WriteElementString("currency", Currency); xmlWriter.WriteStringIfValid("description", Description); xmlWriter.WriteElementString("tax_exempt", TaxExempt.AsString().ToLower()); xmlWriter.WriteStringIfValid("tax_code", TaxCode); xmlWriter.WriteStringIfValid("accounting_code", AccountingCode); if (Account != null) { Account.WriteXml(xmlWriter); } xmlWriter.WriteEndElement(); }
public override int GetHashCode() { int hash = 1; if (entityId_ != null) { hash ^= EntityId.GetHashCode(); } if (BookingId.Length != 0) { hash ^= BookingId.GetHashCode(); } if (State != 0) { hash ^= State.GetHashCode(); } if (guest_ != null) { hash ^= Guest.GetHashCode(); } if (dateRange_ != null) { hash ^= DateRange.GetHashCode(); } if (NumberAdults != 0) { hash ^= NumberAdults.GetHashCode(); } if (NumberChildren != 0) { hash ^= NumberChildren.GetHashCode(); } if (roomType_ != null) { hash ^= RoomType.GetHashCode(); } hash ^= additionalGuests_.GetHashCode(); if (TaxExempt != false) { hash ^= TaxExempt.GetHashCode(); } if (cancellationPenaltyApplied_ != null) { hash ^= CancellationPenaltyApplied.GetHashCode(); } if (CancellationReason.Length != 0) { hash ^= CancellationReason.GetHashCode(); } if (cancellationPolicy_ != null) { hash ^= CancellationPolicy.GetHashCode(); } if (RequestingParty.Length != 0) { hash ^= RequestingParty.GetHashCode(); } if (cancellationDate_ != null) { hash ^= CancellationDate.GetHashCode(); } if (CancellationNumber != 0L) { hash ^= CancellationNumber.GetHashCode(); } hash ^= activeTags_.GetHashCode(); return(hash); }
public override int GetHashCode() { int hash = 1; if (entityId_ != null) { hash ^= EntityId.GetHashCode(); } if (Status != 0) { hash ^= Status.GetHashCode(); } if (TaxExempt != false) { hash ^= TaxExempt.GetHashCode(); } if (TaxId.Length != 0) { hash ^= TaxId.GetHashCode(); } if (GroupPaysLodging != false) { hash ^= GroupPaysLodging.GetHashCode(); } if (GroupPaysIncidentals != false) { hash ^= GroupPaysIncidentals.GetHashCode(); } if (AdditionalNotes.Length != 0) { hash ^= AdditionalNotes.GetHashCode(); } if (CustomerBookingId.Length != 0) { hash ^= CustomerBookingId.GetHashCode(); } if (dateRange_ != null) { hash ^= DateRange.GetHashCode(); } if (rateSchedule_ != null) { hash ^= RateSchedule.GetHashCode(); } if (group_ != null) { hash ^= Group.GetHashCode(); } if (confirmationTemplateId_ != null) { hash ^= ConfirmationTemplateId.GetHashCode(); } if (bookingMethod_ != null) { hash ^= BookingMethod.GetHashCode(); } if (arrivalTemplateId_ != null) { hash ^= ArrivalTemplateId.GetHashCode(); } if (reservationSourceId_ != null) { hash ^= ReservationSourceId.GetHashCode(); } if (travelAgent_ != null) { hash ^= TravelAgent.GetHashCode(); } if (cancellationPolicy_ != null) { hash ^= CancellationPolicy.GetHashCode(); } if (GroupName.Length != 0) { hash ^= GroupName.GetHashCode(); } return(hash); }
public TransactionDetails() { this.recurringField = Recurring.No; this.taxExemptField = TaxExempt.No; this.transactionOriginField = TransactionDetailsTransactionOrigin.ECI; }
public override int GetHashCode() { int hash = 1; if (entityId_ != null) { hash ^= EntityId.GetHashCode(); } if (BookingId.Length != 0) { hash ^= BookingId.GetHashCode(); } if (State != 0) { hash ^= State.GetHashCode(); } if (guest_ != null) { hash ^= Guest.GetHashCode(); } if (dateRange_ != null) { hash ^= DateRange.GetHashCode(); } if (NumberAdults != 0) { hash ^= NumberAdults.GetHashCode(); } if (NumberChildren != 0) { hash ^= NumberChildren.GetHashCode(); } if (roomType_ != null) { hash ^= RoomType.GetHashCode(); } hash ^= additionalGuests_.GetHashCode(); if (TaxExempt != false) { hash ^= TaxExempt.GetHashCode(); } if (GuaranteeStatus != 0) { hash ^= GuaranteeStatus.GetHashCode(); } if (unpaidGuaranteeBalance_ != null) { hash ^= UnpaidGuaranteeBalance.GetHashCode(); } if (hkTimePreference_ != null) { hash ^= HkTimePreference.GetHashCode(); } if (VehiclePlateInformation.Length != 0) { hash ^= VehiclePlateInformation.GetHashCode(); } if (CurrentOccupiedRoomNumber.Length != 0) { hash ^= CurrentOccupiedRoomNumber.GetHashCode(); } if (currentOccupiedRoom_ != null) { hash ^= CurrentOccupiedRoom.GetHashCode(); } if (TerminalOccupiedRoomNumber.Length != 0) { hash ^= TerminalOccupiedRoomNumber.GetHashCode(); } if (terminalOccupiedRoom_ != null) { hash ^= TerminalOccupiedRoom.GetHashCode(); } hash ^= activeTags_.GetHashCode(); if (ChannelManagerId.Length != 0) { hash ^= ChannelManagerId.GetHashCode(); } if (SourceChannelId.Length != 0) { hash ^= SourceChannelId.GetHashCode(); } if (cancellationPolicy_ != null) { hash ^= CancellationPolicy.GetHashCode(); } return(hash); }
public override int GetHashCode() { int hash = 1; if (entityId_ != null) { hash ^= EntityId.GetHashCode(); } if (BookingId.Length != 0) { hash ^= BookingId.GetHashCode(); } if (State != 0) { hash ^= State.GetHashCode(); } if (guest_ != null) { hash ^= Guest.GetHashCode(); } if (dateRange_ != null) { hash ^= DateRange.GetHashCode(); } if (NumberAdults != 0) { hash ^= NumberAdults.GetHashCode(); } if (NumberChildren != 0) { hash ^= NumberChildren.GetHashCode(); } if (roomType_ != null) { hash ^= RoomType.GetHashCode(); } hash ^= additionalGuests_.GetHashCode(); if (TaxExempt != false) { hash ^= TaxExempt.GetHashCode(); } if (hkTimePreference_ != null) { hash ^= HkTimePreference.GetHashCode(); } if (VehiclePlateInformation.Length != 0) { hash ^= VehiclePlateInformation.GetHashCode(); } if (CurrentOccupiedRoomNumber.Length != 0) { hash ^= CurrentOccupiedRoomNumber.GetHashCode(); } if (currentOccupiedRoom_ != null) { hash ^= CurrentOccupiedRoom.GetHashCode(); } if (TerminalOccupiedRoomNumber.Length != 0) { hash ^= TerminalOccupiedRoomNumber.GetHashCode(); } if (terminalOccupiedRoom_ != null) { hash ^= TerminalOccupiedRoom.GetHashCode(); } if (FirstNightAssignedRoom.Length != 0) { hash ^= FirstNightAssignedRoom.GetHashCode(); } hash ^= activeTags_.GetHashCode(); if (ChannelManagerId.Length != 0) { hash ^= ChannelManagerId.GetHashCode(); } if (SourceChannelId.Length != 0) { hash ^= SourceChannelId.GetHashCode(); } if (cancellationPolicy_ != null) { hash ^= CancellationPolicy.GetHashCode(); } if (ReservationIdFromChannel.Length != 0) { hash ^= ReservationIdFromChannel.GetHashCode(); } if (RushReservationIdFromChannel.Length != 0) { hash ^= RushReservationIdFromChannel.GetHashCode(); } if (SourceIndirectChannel.Length != 0) { hash ^= SourceIndirectChannel.GetHashCode(); } if (reservationSource_ != null) { hash ^= ReservationSource.GetHashCode(); } return(hash); }