Exemple #1
0
 public void MergeFrom(CardAuthorizationResponse other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Response != 0)
     {
         Response = other.Response;
     }
     if (other.sale_ != null)
     {
         if (sale_ == null)
         {
             sale_ = new global::HOLMS.Types.Money.Cards.Transactions.PaymentCardSaleIndicator();
         }
         Sale.MergeFrom(other.Sale);
     }
     if (other.authorization_ != null)
     {
         if (authorization_ == null)
         {
             authorization_ = new global::HOLMS.Types.Money.Cards.Transactions.PaymentCardAuthorizationIndicator();
         }
         Authorization.MergeFrom(other.Authorization);
     }
 }
Exemple #2
0
 public void MergeFrom(PaymentCardAuthorization other)
 {
     if (other == null)
     {
         return;
     }
     if (other.entityId_ != null)
     {
         if (entityId_ == null)
         {
             entityId_ = new global::HOLMS.Types.Money.Cards.Transactions.PaymentCardAuthorizationIndicator();
         }
         EntityId.MergeFrom(other.EntityId);
     }
     if (other.authorizationAmount_ != null)
     {
         if (authorizationAmount_ == null)
         {
             authorizationAmount_ = new global::HOLMS.Types.Primitive.MonetaryAmount();
         }
         AuthorizationAmount.MergeFrom(other.AuthorizationAmount);
     }
     if (other.Result != 0)
     {
         Result = other.Result;
     }
     if (other.EntryMethod != 0)
     {
         EntryMethod = other.EntryMethod;
     }
     if (other.HostReferenceNumber.Length != 0)
     {
         HostReferenceNumber = other.HostReferenceNumber;
     }
     if (other.ApprovalCode.Length != 0)
     {
         ApprovalCode = other.ApprovalCode;
     }
     if (other.ApplicationLabel.Length != 0)
     {
         ApplicationLabel = other.ApplicationLabel;
     }
     if (other.ApplicationCrypto.Length != 0)
     {
         ApplicationCrypto = other.ApplicationCrypto;
     }
     if (other.AID.Length != 0)
     {
         AID = other.AID;
     }
     if (other.postedAt_ != null)
     {
         if (postedAt_ == null)
         {
             postedAt_ = new global::Google.Protobuf.WellKnownTypes.Timestamp();
         }
         PostedAt.MergeFrom(other.PostedAt);
     }
 }
Exemple #3
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

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

                case 8: {
                    response_ = (global::HOLMS.Types.Money.Cards.Transactions.CardAuthorizationResponseCode)input.ReadEnum();
                    break;
                }

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

                case 26: {
                    if (authorization_ == null)
                    {
                        authorization_ = new global::HOLMS.Types.Money.Cards.Transactions.PaymentCardAuthorizationIndicator();
                    }
                    input.ReadMessage(authorization_);
                    break;
                }
                }
            }
        }
Exemple #4
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.PaymentCardAuthorizationIndicator();
                    }
                    input.ReadMessage(entityId_);
                    break;
                }

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

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

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

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

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

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

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

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

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