コード例 #1
0
        public static Guid GetCartGuidFromOrderNumber(string googleOrderNumber)
        {
            Guid cartGuid = Guid.Empty;

            using (IDataReader reader = DBGoogleCheckoutLog.GetMostRecentByOrder(googleOrderNumber))
            {
                if (reader.Read())
                {
                    cartGuid = new Guid(reader["CartGuid"].ToString());
                }
            }

            return(cartGuid);
        }
コード例 #2
0
        /// <summary>
        /// Persists a new instance of GoogleCheckoutLog. Returns true on success.
        /// </summary>
        /// <returns></returns>
        private bool Create()
        {
            this.rowGuid = Guid.NewGuid();

            int rowsAffected = DBGoogleCheckoutLog.Create(
                this.rowGuid,
                this.createdUtc,
                this.siteGuid,
                this.userGuid,
                this.storeGuid,
                this.cartGuid,
                this.notificationType,
                this.rawResponse,
                this.serialNumber,
                this.gTimestamp,
                this.orderNumber,
                this.buyerId,
                this.fullfillState,
                this.financeState,
                this.emailListOptIn,
                this.avsResponse,
                this.cvnResponse,
                this.authExpDate,
                this.authAmt,
                this.discountTotal,
                this.shippingTotal,
                this.taxTotal,
                this.orderTotal,
                this.latestChgAmt,
                this.totalChgAmt,
                this.latestRefundAmt,
                this.totalRefundAmt,
                this.latestChargeback,
                this.totalChargeback,
                this.cartXml,
                this.providerName);

            return(rowsAffected > 0);
        }
コード例 #3
0
 /// <summary>
 /// Gets a count of GoogleCheckoutLog.
 /// </summary>
 public static int GetCountByStore(Guid storeGuid)
 {
     return(DBGoogleCheckoutLog.GetCountByStore(storeGuid));
 }
コード例 #4
0
 /// <summary>
 /// Gets a count of GoogleCheckoutLog.
 /// </summary>
 public static int GetCountByCart(Guid cartGuid)
 {
     return(DBGoogleCheckoutLog.GetCountByCart(cartGuid));
 }
コード例 #5
0
 public static bool DeleteByStore(Guid storeGuid)
 {
     return(DBGoogleCheckoutLog.DeleteByStore(storeGuid));
 }
コード例 #6
0
 public static bool DeleteBySite(Guid siteGuid)
 {
     return(DBGoogleCheckoutLog.DeleteBySite(siteGuid));
 }
コード例 #7
0
 public static bool DeleteByCart(Guid cartGuid)
 {
     return(DBGoogleCheckoutLog.DeleteByCart(cartGuid));
 }
コード例 #8
0
 /// <summary>
 /// Deletes an instance of GoogleCheckoutLog. Returns true on success.
 /// </summary>
 /// <param name="rowGuid"> rowGuid </param>
 /// <returns>bool</returns>
 public static bool Delete(Guid rowGuid)
 {
     return(DBGoogleCheckoutLog.Delete(rowGuid));
 }
コード例 #9
0
        /// <summary>
        /// Gets an IList with all instances of GoogleCheckoutLog.
        /// </summary>
        public static List <GoogleCheckoutLog> GetAll()
        {
            IDataReader reader = DBGoogleCheckoutLog.GetAll();

            return(LoadListFromReader(reader));
        }