コード例 #1
0
 public void MergeFrom(PaymentCardAuthorizationReversal other)
 {
     if (other == null)
     {
         return;
     }
     if (other.reversalAmount_ != null)
     {
         if (reversalAmount_ == null)
         {
             reversalAmount_ = new global::HOLMS.Types.Primitive.MonetaryAmount();
         }
         ReversalAmount.MergeFrom(other.ReversalAmount);
     }
     if (other.HostReferenceNumber.Length != 0)
     {
         HostReferenceNumber = other.HostReferenceNumber;
     }
     if (other.Result != 0)
     {
         Result = other.Result;
     }
     if (other.postedAt_ != null)
     {
         if (postedAt_ == null)
         {
             postedAt_ = new global::Google.Protobuf.WellKnownTypes.Timestamp();
         }
         PostedAt.MergeFrom(other.PostedAt);
     }
 }
コード例 #2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (reversalAmount_ != null)
            {
                hash ^= ReversalAmount.GetHashCode();
            }
            if (HostReferenceNumber.Length != 0)
            {
                hash ^= HostReferenceNumber.GetHashCode();
            }
            if (Result != 0)
            {
                hash ^= Result.GetHashCode();
            }
            if (postedAt_ != null)
            {
                hash ^= PostedAt.GetHashCode();
            }
            return(hash);
        }