Esempio n. 1
0
        private static List <GoogleCheckoutLog> LoadListFromReader(IDataReader reader)
        {
            List <GoogleCheckoutLog> googleCheckoutLogList = new List <GoogleCheckoutLog>();

            try
            {
                while (reader.Read())
                {
                    GoogleCheckoutLog googleCheckoutLog = new GoogleCheckoutLog();
                    googleCheckoutLog.rowGuid          = new Guid(reader["RowGuid"].ToString());
                    googleCheckoutLog.createdUtc       = Convert.ToDateTime(reader["CreatedUtc"]);
                    googleCheckoutLog.siteGuid         = new Guid(reader["SiteGuid"].ToString());
                    googleCheckoutLog.userGuid         = new Guid(reader["UserGuid"].ToString());
                    googleCheckoutLog.storeGuid        = new Guid(reader["StoreGuid"].ToString());
                    googleCheckoutLog.cartGuid         = new Guid(reader["CartGuid"].ToString());
                    googleCheckoutLog.notificationType = reader["NotificationType"].ToString();
                    googleCheckoutLog.rawResponse      = reader["RawResponse"].ToString();
                    googleCheckoutLog.serialNumber     = reader["SerialNumber"].ToString();
                    googleCheckoutLog.gTimestamp       = Convert.ToDateTime(reader["GTimestamp"]);
                    googleCheckoutLog.orderNumber      = reader["OrderNumber"].ToString();
                    googleCheckoutLog.buyerId          = reader["BuyerId"].ToString();
                    googleCheckoutLog.fullfillState    = reader["FullfillState"].ToString();
                    googleCheckoutLog.financeState     = reader["FinanceState"].ToString();
                    googleCheckoutLog.emailListOptIn   = Convert.ToBoolean(reader["EmailListOptIn"]);
                    googleCheckoutLog.avsResponse      = reader["AvsResponse"].ToString();
                    googleCheckoutLog.cvnResponse      = reader["CvnResponse"].ToString();
                    googleCheckoutLog.authExpDate      = Convert.ToDateTime(reader["AuthExpDate"]);
                    googleCheckoutLog.authAmt          = Convert.ToDecimal(reader["AuthAmt"]);
                    googleCheckoutLog.discountTotal    = Convert.ToDecimal(reader["DiscountTotal"]);
                    googleCheckoutLog.shippingTotal    = Convert.ToDecimal(reader["ShippingTotal"]);
                    googleCheckoutLog.taxTotal         = Convert.ToDecimal(reader["TaxTotal"]);
                    googleCheckoutLog.orderTotal       = Convert.ToDecimal(reader["OrderTotal"]);
                    googleCheckoutLog.latestChgAmt     = Convert.ToDecimal(reader["LatestChgAmt"]);
                    googleCheckoutLog.totalChgAmt      = Convert.ToDecimal(reader["TotalChgAmt"]);
                    googleCheckoutLog.latestRefundAmt  = Convert.ToDecimal(reader["LatestRefundAmt"]);
                    googleCheckoutLog.totalRefundAmt   = Convert.ToDecimal(reader["TotalRefundAmt"]);
                    googleCheckoutLog.latestChargeback = Convert.ToDecimal(reader["LatestChargeback"]);
                    googleCheckoutLog.totalChargeback  = Convert.ToDecimal(reader["TotalChargeback"]);
                    googleCheckoutLog.cartXml          = reader["CartXml"].ToString();
                    googleCheckoutLog.providerName     = reader["ProviderName"].ToString();
                    googleCheckoutLogList.Add(googleCheckoutLog);
                }
            }
            finally
            {
                reader.Close();
            }

            return(googleCheckoutLogList);
        }
Esempio n. 2
0
 /// <summary>
 /// Compares 2 instances of GoogleCheckoutLog.
 /// </summary>
 public static int CompareByAuthExpDate(GoogleCheckoutLog googleCheckoutLog1, GoogleCheckoutLog googleCheckoutLog2)
 {
     return(googleCheckoutLog1.AuthExpDate.CompareTo(googleCheckoutLog2.AuthExpDate));
 }
Esempio n. 3
0
 /// <summary>
 /// Compares 2 instances of GoogleCheckoutLog.
 /// </summary>
 public static int CompareByCvnResponse(GoogleCheckoutLog googleCheckoutLog1, GoogleCheckoutLog googleCheckoutLog2)
 {
     return(googleCheckoutLog1.CvnResponse.CompareTo(googleCheckoutLog2.CvnResponse));
 }
Esempio n. 4
0
 /// <summary>
 /// Compares 2 instances of GoogleCheckoutLog.
 /// </summary>
 public static int CompareByFinanceState(GoogleCheckoutLog googleCheckoutLog1, GoogleCheckoutLog googleCheckoutLog2)
 {
     return(googleCheckoutLog1.FinanceState.CompareTo(googleCheckoutLog2.FinanceState));
 }
Esempio n. 5
0
 /// <summary>
 /// Compares 2 instances of GoogleCheckoutLog.
 /// </summary>
 public static int CompareByBuyerId(GoogleCheckoutLog googleCheckoutLog1, GoogleCheckoutLog googleCheckoutLog2)
 {
     return(googleCheckoutLog1.BuyerId.CompareTo(googleCheckoutLog2.BuyerId));
 }
Esempio n. 6
0
 /// <summary>
 /// Compares 2 instances of GoogleCheckoutLog.
 /// </summary>
 public static int CompareByOrderNumber(GoogleCheckoutLog googleCheckoutLog1, GoogleCheckoutLog googleCheckoutLog2)
 {
     return(googleCheckoutLog1.OrderNumber.CompareTo(googleCheckoutLog2.OrderNumber));
 }
Esempio n. 7
0
 /// <summary>
 /// Compares 2 instances of GoogleCheckoutLog.
 /// </summary>
 public static int CompareByGTimestamp(GoogleCheckoutLog googleCheckoutLog1, GoogleCheckoutLog googleCheckoutLog2)
 {
     return(googleCheckoutLog1.GTimestamp.CompareTo(googleCheckoutLog2.GTimestamp));
 }
Esempio n. 8
0
 /// <summary>
 /// Compares 2 instances of GoogleCheckoutLog.
 /// </summary>
 public static int CompareBySerialNumber(GoogleCheckoutLog googleCheckoutLog1, GoogleCheckoutLog googleCheckoutLog2)
 {
     return(googleCheckoutLog1.SerialNumber.CompareTo(googleCheckoutLog2.SerialNumber));
 }
Esempio n. 9
0
 /// <summary>
 /// Compares 2 instances of GoogleCheckoutLog.
 /// </summary>
 public static int CompareByNotificationType(GoogleCheckoutLog googleCheckoutLog1, GoogleCheckoutLog googleCheckoutLog2)
 {
     return(googleCheckoutLog1.NotificationType.CompareTo(googleCheckoutLog2.NotificationType));
 }
Esempio n. 10
0
 /// <summary>
 /// Compares 2 instances of GoogleCheckoutLog.
 /// </summary>
 public static int CompareByCreatedUtc(GoogleCheckoutLog googleCheckoutLog1, GoogleCheckoutLog googleCheckoutLog2)
 {
     return(googleCheckoutLog1.CreatedUtc.CompareTo(googleCheckoutLog2.CreatedUtc));
 }