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); }
/// <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); }
/// <summary> /// Gets a count of GoogleCheckoutLog. /// </summary> public static int GetCountByStore(Guid storeGuid) { return(DBGoogleCheckoutLog.GetCountByStore(storeGuid)); }
/// <summary> /// Gets a count of GoogleCheckoutLog. /// </summary> public static int GetCountByCart(Guid cartGuid) { return(DBGoogleCheckoutLog.GetCountByCart(cartGuid)); }
public static bool DeleteByStore(Guid storeGuid) { return(DBGoogleCheckoutLog.DeleteByStore(storeGuid)); }
public static bool DeleteBySite(Guid siteGuid) { return(DBGoogleCheckoutLog.DeleteBySite(siteGuid)); }
public static bool DeleteByCart(Guid cartGuid) { return(DBGoogleCheckoutLog.DeleteByCart(cartGuid)); }
/// <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)); }
/// <summary> /// Gets an IList with all instances of GoogleCheckoutLog. /// </summary> public static List <GoogleCheckoutLog> GetAll() { IDataReader reader = DBGoogleCheckoutLog.GetAll(); return(LoadListFromReader(reader)); }