public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    input.SkipLastField();
                    break;

                case 10: {
                    if (reservation_ == null)
                    {
                        reservation_ = new global::HOLMS.Types.Booking.Indicators.ReservationIndicator();
                    }
                    input.ReadMessage(reservation_);
                    break;
                }

                case 18: {
                    if (card_ == null)
                    {
                        card_ = new global::HOLMS.Types.Money.Cards.CustomerPaymentCardIndicator();
                    }
                    input.ReadMessage(card_);
                    break;
                }
                }
            }
        }
 public void MergeFrom(FolioGuestPaymentCard other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Brand != 0)
     {
         Brand = other.Brand;
     }
     if (other.MaskedPan.Length != 0)
     {
         MaskedPan = other.MaskedPan;
     }
     if (other.card_ != null)
     {
         if (card_ == null)
         {
             card_ = new global::HOLMS.Types.Money.Cards.CustomerPaymentCardIndicator();
         }
         Card.MergeFrom(other.Card);
     }
     if (other.CardmemberName.Length != 0)
     {
         CardmemberName = other.CardmemberName;
     }
 }
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    input.SkipLastField();
                    break;

                case 8: {
                    brand_ = (global::HOLMS.Types.Money.Cards.PaymentCardBrand)input.ReadEnum();
                    break;
                }

                case 18: {
                    MaskedPan = input.ReadString();
                    break;
                }

                case 26: {
                    if (card_ == null)
                    {
                        card_ = new global::HOLMS.Types.Money.Cards.CustomerPaymentCardIndicator();
                    }
                    input.ReadMessage(card_);
                    break;
                }

                case 34: {
                    CardmemberName = input.ReadString();
                    break;
                }
                }
            }
        }
 public void MergeFrom(ResGSvcTenderStoredNotPresentCardGuaranteeRequest other)
 {
     if (other == null)
     {
         return;
     }
     if (other.reservation_ != null)
     {
         if (reservation_ == null)
         {
             reservation_ = new global::HOLMS.Types.Booking.Indicators.ReservationIndicator();
         }
         Reservation.MergeFrom(other.Reservation);
     }
     if (other.card_ != null)
     {
         if (card_ == null)
         {
             card_ = new global::HOLMS.Types.Money.Cards.CustomerPaymentCardIndicator();
         }
         Card.MergeFrom(other.Card);
     }
 }
예제 #5
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    input.SkipLastField();
                    break;

                case 10: {
                    if (id_ == null)
                    {
                        id_ = new global::HOLMS.Types.Money.Cards.CustomerPaymentCardIndicator();
                    }
                    input.ReadMessage(id_);
                    break;
                }

                case 18: {
                    MaskedPan = input.ReadString();
                    break;
                }

                case 26: {
                    if (expirationDate_ == null)
                    {
                        expirationDate_ = new global::HOLMS.Types.Primitive.PbLocalDate();
                    }
                    input.ReadMessage(expirationDate_);
                    break;
                }

                case 34: {
                    CardHolderName = input.ReadString();
                    break;
                }

                case 40: {
                    brand_ = (global::HOLMS.Types.Money.Cards.PaymentCardBrand)input.ReadEnum();
                    break;
                }

                case 48: {
                    IsVirtualCard = input.ReadBool();
                    break;
                }

                case 58: {
                    if (virtualCardUnusedBalance_ == null)
                    {
                        virtualCardUnusedBalance_ = new global::HOLMS.Types.Primitive.MonetaryAmount();
                    }
                    input.ReadMessage(virtualCardUnusedBalance_);
                    break;
                }

                case 66: {
                    if (virtualCardAvailableOn_ == null)
                    {
                        virtualCardAvailableOn_ = new global::HOLMS.Types.Primitive.PbLocalDate();
                    }
                    input.ReadMessage(virtualCardAvailableOn_);
                    break;
                }

                case 74: {
                    if (virtualCardExpiresOn_ == null)
                    {
                        virtualCardExpiresOn_ = new global::HOLMS.Types.Primitive.PbLocalDate();
                    }
                    input.ReadMessage(virtualCardExpiresOn_);
                    break;
                }

                case 80: {
                    cardType_ = (global::HOLMS.Types.Money.Cards.CustomerPaymentCardType)input.ReadEnum();
                    break;
                }
                }
            }
        }
예제 #6
0
 public void MergeFrom(CustomerPaymentCard other)
 {
     if (other == null)
     {
         return;
     }
     if (other.id_ != null)
     {
         if (id_ == null)
         {
             id_ = new global::HOLMS.Types.Money.Cards.CustomerPaymentCardIndicator();
         }
         Id.MergeFrom(other.Id);
     }
     if (other.MaskedPan.Length != 0)
     {
         MaskedPan = other.MaskedPan;
     }
     if (other.expirationDate_ != null)
     {
         if (expirationDate_ == null)
         {
             expirationDate_ = new global::HOLMS.Types.Primitive.PbLocalDate();
         }
         ExpirationDate.MergeFrom(other.ExpirationDate);
     }
     if (other.CardHolderName.Length != 0)
     {
         CardHolderName = other.CardHolderName;
     }
     if (other.Brand != 0)
     {
         Brand = other.Brand;
     }
     if (other.IsVirtualCard != false)
     {
         IsVirtualCard = other.IsVirtualCard;
     }
     if (other.virtualCardUnusedBalance_ != null)
     {
         if (virtualCardUnusedBalance_ == null)
         {
             virtualCardUnusedBalance_ = new global::HOLMS.Types.Primitive.MonetaryAmount();
         }
         VirtualCardUnusedBalance.MergeFrom(other.VirtualCardUnusedBalance);
     }
     if (other.virtualCardAvailableOn_ != null)
     {
         if (virtualCardAvailableOn_ == null)
         {
             virtualCardAvailableOn_ = new global::HOLMS.Types.Primitive.PbLocalDate();
         }
         VirtualCardAvailableOn.MergeFrom(other.VirtualCardAvailableOn);
     }
     if (other.virtualCardExpiresOn_ != null)
     {
         if (virtualCardExpiresOn_ == null)
         {
             virtualCardExpiresOn_ = new global::HOLMS.Types.Primitive.PbLocalDate();
         }
         VirtualCardExpiresOn.MergeFrom(other.VirtualCardExpiresOn);
     }
     if (other.CardType != 0)
     {
         CardType = other.CardType;
     }
 }