Exemple #1
0
 public void MergeFrom(PaymentCardRefund other)
 {
     if (other == null)
     {
         return;
     }
     if (other.entityId_ != null)
     {
         if (entityId_ == null)
         {
             entityId_ = new global::HOLMS.Types.Money.Cards.Transactions.PaymentCardRefundIndicator();
         }
         EntityId.MergeFrom(other.EntityId);
     }
     if (other.merchantId_ != null)
     {
         if (merchantId_ == null)
         {
             merchantId_ = new global::HOLMS.Types.Money.Cards.CardMerchantIndicator();
         }
         MerchantId.MergeFrom(other.MerchantId);
     }
     if (other.refundedAmount_ != null)
     {
         if (refundedAmount_ == null)
         {
             refundedAmount_ = new global::HOLMS.Types.Primitive.MonetaryAmount();
         }
         RefundedAmount.MergeFrom(other.RefundedAmount);
     }
     if (other.HostReferenceNumber.Length != 0)
     {
         HostReferenceNumber = other.HostReferenceNumber;
     }
     if (other.FolioBookingNumber.Length != 0)
     {
         FolioBookingNumber = other.FolioBookingNumber;
     }
     if (other.paymentCard_ != null)
     {
         if (paymentCard_ == null)
         {
             paymentCard_ = new global::HOLMS.Types.Money.Cards.GuestPaymentCard();
         }
         PaymentCard.MergeFrom(other.PaymentCard);
     }
     if (other.postedAt_ != null)
     {
         if (postedAt_ == null)
         {
             postedAt_ = new global::Google.Protobuf.WellKnownTypes.Timestamp();
         }
         PostedAt.MergeFrom(other.PostedAt);
     }
     if (other.State != 0)
     {
         State = other.State;
     }
 }
Exemple #2
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

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

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

                case 18: {
                    if (merchantId_ == null)
                    {
                        merchantId_ = new global::HOLMS.Types.Money.Cards.CardMerchantIndicator();
                    }
                    input.ReadMessage(merchantId_);
                    break;
                }

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

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

                case 42: {
                    FolioBookingNumber = input.ReadString();
                    break;
                }

                case 50: {
                    if (paymentCard_ == null)
                    {
                        paymentCard_ = new global::HOLMS.Types.Money.Cards.GuestPaymentCard();
                    }
                    input.ReadMessage(paymentCard_);
                    break;
                }

                case 58: {
                    if (postedAt_ == null)
                    {
                        postedAt_ = new global::Google.Protobuf.WellKnownTypes.Timestamp();
                    }
                    input.ReadMessage(postedAt_);
                    break;
                }

                case 64: {
                    state_ = (global::HOLMS.Types.Money.Cards.Transactions.CardRefundState)input.ReadEnum();
                    break;
                }
                }
            }
        }
Exemple #3
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

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

                case 10: {
                    if (card_ == null)
                    {
                        card_ = new global::HOLMS.Types.Folio.FolioGuestPaymentCard();
                    }
                    input.ReadMessage(card_);
                    break;
                }

                case 16: {
                    state_ = (global::HOLMS.Types.Money.Cards.Transactions.CardRefundState)input.ReadEnum();
                    break;
                }

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

                case 34: {
                    if (postedAt_ == null)
                    {
                        postedAt_ = new global::Google.Protobuf.WellKnownTypes.Timestamp();
                    }
                    input.ReadMessage(postedAt_);
                    break;
                }

                case 42: {
                    if (receivedBy_ == null)
                    {
                        receivedBy_ = new global::HOLMS.Types.IAM.StaffMemberIndicator();
                    }
                    input.ReadMessage(receivedBy_);
                    break;
                }

                case 50: {
                    if (refund_ == null)
                    {
                        refund_ = new global::HOLMS.Types.Money.Cards.Transactions.PaymentCardRefundIndicator();
                    }
                    input.ReadMessage(refund_);
                    break;
                }
                }
            }
        }