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;
                }
                }
            }
        }
Exemplo n.º 2
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.GuestPaymentCardIndicator();
                    }
                    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;
                }
                }
            }
        }