Beispiel #1
0
 public void MergeFrom(FolioCardRefund other)
 {
     if (other == null)
     {
         return;
     }
     if (other.card_ != null)
     {
         if (card_ == null)
         {
             card_ = new global::HOLMS.Types.Folio.FolioGuestPaymentCard();
         }
         Card.MergeFrom(other.Card);
     }
     if (other.State != 0)
     {
         State = other.State;
     }
     if (other.amount_ != null)
     {
         if (amount_ == null)
         {
             amount_ = new global::HOLMS.Types.Primitive.MonetaryAmount();
         }
         Amount.MergeFrom(other.Amount);
     }
     if (other.postedAt_ != null)
     {
         if (postedAt_ == null)
         {
             postedAt_ = new global::Google.Protobuf.WellKnownTypes.Timestamp();
         }
         PostedAt.MergeFrom(other.PostedAt);
     }
     if (other.receivedBy_ != null)
     {
         if (receivedBy_ == null)
         {
             receivedBy_ = new global::HOLMS.Types.IAM.StaffMemberIndicator();
         }
         ReceivedBy.MergeFrom(other.ReceivedBy);
     }
     if (other.refund_ != null)
     {
         if (refund_ == null)
         {
             refund_ = new global::HOLMS.Types.Money.Cards.Transactions.PaymentCardRefundIndicator();
         }
         Refund.MergeFrom(other.Refund);
     }
 }
Beispiel #2
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;
                }
                }
            }
        }
Beispiel #3
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

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

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

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

                case 24: {
                    purpose_ = (global::HOLMS.Types.Folio.FolioCardSalePurpose)input.ReadEnum();
                    break;
                }

                case 32: {
                    saleState_ = (global::HOLMS.Types.Money.Cards.Transactions.CardSaleState)input.ReadEnum();
                    break;
                }

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

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

                case 56: {
                    entryMethod_ = (global::HOLMS.Types.Money.Cards.Transactions.AuthorizationEntryMethod)input.ReadEnum();
                    break;
                }

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

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

                case 82: {
                    ApplicationLabel = input.ReadString();
                    break;
                }

                case 90: {
                    AID = input.ReadString();
                    break;
                }

                case 98: {
                    ApplicationCrypto = input.ReadString();
                    break;
                }

                case 106: {
                    ApprovalCode = input.ReadString();
                    break;
                }

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

                case 122: {
                    if (finalAuthorizedAmount_ == null)
                    {
                        finalAuthorizedAmount_ = new global::HOLMS.Types.Primitive.MonetaryAmount();
                    }
                    input.ReadMessage(finalAuthorizedAmount_);
                    break;
                }
                }
            }
        }
Beispiel #4
0
 public void MergeFrom(FolioCardSale other)
 {
     if (other == null)
     {
         return;
     }
     if (other.sale_ != null)
     {
         if (sale_ == null)
         {
             sale_ = new global::HOLMS.Types.Money.Cards.Transactions.PaymentCardSaleIndicator();
         }
         Sale.MergeFrom(other.Sale);
     }
     if (other.card_ != null)
     {
         if (card_ == null)
         {
             card_ = new global::HOLMS.Types.Folio.FolioGuestPaymentCard();
         }
         Card.MergeFrom(other.Card);
     }
     if (other.Purpose != 0)
     {
         Purpose = other.Purpose;
     }
     if (other.SaleState != 0)
     {
         SaleState = other.SaleState;
     }
     if (other.openAuthorized_ != null)
     {
         if (openAuthorized_ == null)
         {
             openAuthorized_ = new global::HOLMS.Types.Primitive.MonetaryAmount();
         }
         OpenAuthorized.MergeFrom(other.OpenAuthorized);
     }
     if (other.captured_ != null)
     {
         if (captured_ == null)
         {
             captured_ = new global::HOLMS.Types.Primitive.MonetaryAmount();
         }
         Captured.MergeFrom(other.Captured);
     }
     if (other.EntryMethod != 0)
     {
         EntryMethod = other.EntryMethod;
     }
     if (other.authorizedAt_ != null)
     {
         if (authorizedAt_ == null)
         {
             authorizedAt_ = new global::Google.Protobuf.WellKnownTypes.Timestamp();
         }
         AuthorizedAt.MergeFrom(other.AuthorizedAt);
     }
     if (other.capturedAt_ != null)
     {
         if (capturedAt_ == null)
         {
             capturedAt_ = new global::Google.Protobuf.WellKnownTypes.Timestamp();
         }
         CapturedAt.MergeFrom(other.CapturedAt);
     }
     if (other.ApplicationLabel.Length != 0)
     {
         ApplicationLabel = other.ApplicationLabel;
     }
     if (other.AID.Length != 0)
     {
         AID = other.AID;
     }
     if (other.ApplicationCrypto.Length != 0)
     {
         ApplicationCrypto = other.ApplicationCrypto;
     }
     if (other.ApprovalCode.Length != 0)
     {
         ApprovalCode = other.ApprovalCode;
     }
     if (other.receivedBy_ != null)
     {
         if (receivedBy_ == null)
         {
             receivedBy_ = new global::HOLMS.Types.IAM.StaffMemberIndicator();
         }
         ReceivedBy.MergeFrom(other.ReceivedBy);
     }
     if (other.finalAuthorizedAmount_ != null)
     {
         if (finalAuthorizedAmount_ == null)
         {
             finalAuthorizedAmount_ = new global::HOLMS.Types.Primitive.MonetaryAmount();
         }
         FinalAuthorizedAmount.MergeFrom(other.FinalAuthorizedAmount);
     }
 }