public void ReservationIndicatorropertySet(string value, ReservationIndicator expectedValue)
        {
            var reservationRecord = $"BSNC108651812191905171110100GPXX1S531220122180012 DMUV   125      B {value} T        P";
            var record            = ParseRecord(reservationRecord);

            Assert.Equal(expectedValue, record.ReservationIndicator);
        }
Exemple #2
0
        internal static object ConvertReservationIndicator(ReservationIndicator indicator, bool isCancelOrDelete = false)
        {
            if (indicator == ReservationIndicator.None)
            {
                return(isCancelOrDelete ? (object)DBNull.Value : "");
            }

            return(indicator.ToString());
        }
Exemple #3
0
 public ReservationNoteBuilder(Guid id, NoteRequestIndicator sourceNote,
                               NoteCategory category, string additionalNote, bool includeOnConfirmation,
                               ReservationIndicator lodgingReservation, string sourceNoteSubject, bool isFulfilled)
 {
     _id                    = new ReservationNoteIndicator(id);
     _sourceNote            = sourceNote;
     _category              = category;
     _additionalNote        = additionalNote;
     _includeOnConfirmation = includeOnConfirmation;
     _lodgingReservation    = lodgingReservation;
     _sourceNoteSubject     = sourceNoteSubject;
     _isFulfilled           = isFulfilled;
 }
 public void MergeFrom(SwapChargesRequest other) {
   if (other == null) {
     return;
   }
   if (other.reservationIndicator_ != null) {
     if (reservationIndicator_ == null) {
       reservationIndicator_ = new global::HOLMS.Types.Booking.Indicators.ReservationIndicator();
     }
     ReservationIndicator.MergeFrom(other.ReservationIndicator);
   }
   if (other.IsMasterReservationIndicator != false) {
     IsMasterReservationIndicator = other.IsMasterReservationIndicator;
   }
 }
Exemple #5
0
 public ReservationFRPAmendmentRequestBuilder(
     InclusiveOpsdateRange dr,
     RoomTypeIndicator rt,
     ImmutableTagSet tags,
     ReservationIndicator ri,
     int adults,
     int children)
 {
     DateRange      = dr;
     RoomType       = rt;
     Tags           = tags;
     Reservation    = ri;
     NumberAdults   = adults;
     NumberChildren = children;
 }
Exemple #6
0
 public FolioIndicator(ReservationIndicator ri)
 {
     Reservation = ri;
 }
 public override int GetHashCode() {
   int hash = 1;
   if (reservationIndicator_ != null) hash ^= ReservationIndicator.GetHashCode();
   if (IsMasterReservationIndicator != false) hash ^= IsMasterReservationIndicator.GetHashCode();
   return hash;
 }