예제 #1
0
        private static List <AuthorizeNetLog> LoadListFromReader(IDataReader reader)
        {
            List <AuthorizeNetLog> authorizeNetLogList = new List <AuthorizeNetLog>();

            try
            {
                while (reader.Read())
                {
                    AuthorizeNetLog authorizeNetLog = new AuthorizeNetLog();
                    authorizeNetLog.rowGuid            = new Guid(reader["RowGuid"].ToString());
                    authorizeNetLog.createdUtc         = Convert.ToDateTime(reader["CreatedUtc"]);
                    authorizeNetLog.siteGuid           = new Guid(reader["SiteGuid"].ToString());
                    authorizeNetLog.userGuid           = new Guid(reader["UserGuid"].ToString());
                    authorizeNetLog.storeGuid          = new Guid(reader["StoreGuid"].ToString());
                    authorizeNetLog.cartGuid           = new Guid(reader["CartGuid"].ToString());
                    authorizeNetLog.rawResponse        = reader["RawResponse"].ToString();
                    authorizeNetLog.responseCode       = reader["ResponseCode"].ToString();
                    authorizeNetLog.responseReasonCode = reader["ResponseReasonCode"].ToString();
                    authorizeNetLog.reason             = reader["Reason"].ToString();
                    authorizeNetLog.avsCode            = reader["AvsCode"].ToString();
                    authorizeNetLog.ccvCode            = reader["CcvCode"].ToString();
                    authorizeNetLog.cavCode            = reader["CavCode"].ToString();
                    authorizeNetLog.transactionId      = reader["TransactionId"].ToString();
                    authorizeNetLog.transactionType    = reader["TransactionType"].ToString();
                    authorizeNetLog.method             = reader["Method"].ToString();
                    authorizeNetLog.authCode           = reader["AuthCode"].ToString();
                    authorizeNetLog.amount             = Convert.ToDecimal(reader["Amount"]);
                    authorizeNetLog.tax     = Convert.ToDecimal(reader["Tax"]);
                    authorizeNetLog.duty    = Convert.ToDecimal(reader["Duty"]);
                    authorizeNetLog.freight = Convert.ToDecimal(reader["Freight"]);
                    authorizeNetLogList.Add(authorizeNetLog);
                }
            }
            finally
            {
                reader.Close();
            }

            return(authorizeNetLogList);
        }
예제 #2
0
 /// <summary>
 /// Compares 2 instances of AuthorizeNetLog.
 /// </summary>
 public static int CompareByAuthCode(AuthorizeNetLog authorizeNetLog1, AuthorizeNetLog authorizeNetLog2)
 {
     return(authorizeNetLog1.AuthCode.CompareTo(authorizeNetLog2.AuthCode));
 }
예제 #3
0
 /// <summary>
 /// Compares 2 instances of AuthorizeNetLog.
 /// </summary>
 public static int CompareByMethod(AuthorizeNetLog authorizeNetLog1, AuthorizeNetLog authorizeNetLog2)
 {
     return(authorizeNetLog1.Method.CompareTo(authorizeNetLog2.Method));
 }
예제 #4
0
 /// <summary>
 /// Compares 2 instances of AuthorizeNetLog.
 /// </summary>
 public static int CompareByTransactionType(AuthorizeNetLog authorizeNetLog1, AuthorizeNetLog authorizeNetLog2)
 {
     return(authorizeNetLog1.TransactionType.CompareTo(authorizeNetLog2.TransactionType));
 }
예제 #5
0
 /// <summary>
 /// Compares 2 instances of AuthorizeNetLog.
 /// </summary>
 public static int CompareByReason(AuthorizeNetLog authorizeNetLog1, AuthorizeNetLog authorizeNetLog2)
 {
     return(authorizeNetLog1.Reason.CompareTo(authorizeNetLog2.Reason));
 }
예제 #6
0
 /// <summary>
 /// Compares 2 instances of AuthorizeNetLog.
 /// </summary>
 public static int CompareByResponseReasonCode(AuthorizeNetLog authorizeNetLog1, AuthorizeNetLog authorizeNetLog2)
 {
     return(authorizeNetLog1.ResponseReasonCode.CompareTo(authorizeNetLog2.ResponseReasonCode));
 }
예제 #7
0
 /// <summary>
 /// Compares 2 instances of AuthorizeNetLog.
 /// </summary>
 public static int CompareByRawResponse(AuthorizeNetLog authorizeNetLog1, AuthorizeNetLog authorizeNetLog2)
 {
     return(authorizeNetLog1.RawResponse.CompareTo(authorizeNetLog2.RawResponse));
 }
예제 #8
0
 /// <summary>
 /// Compares 2 instances of AuthorizeNetLog.
 /// </summary>
 public static int CompareByCreatedUtc(AuthorizeNetLog authorizeNetLog1, AuthorizeNetLog authorizeNetLog2)
 {
     return(authorizeNetLog1.CreatedUtc.CompareTo(authorizeNetLog2.CreatedUtc));
 }