/// <summary> /// Updates this instance of PayPalLog. Returns true on success. /// </summary> /// <returns>bool</returns> private bool Update() { return(DBPayPalLog.Update( this.rowGuid, this.createdUtc, this.siteGuid, this.userGuid, this.storeGuid, this.cartGuid, this.requestType, this.apiVersion, this.rawResponse, this.token, this.payerId, this.transactionId, this.paymentType, this.paymentStatus, this.pendingReason, this.reasonCode, this.currencyCode, this.exchangeRate, this.cartTotal, this.payPalAmt, this.taxAmt, this.feeAmt, this.settleAmt)); }
/// <summary> /// Gets an instance of PayPalLog. /// </summary> /// <param name="rowGuid"> rowGuid </param> private void GetPayPalLog(Guid rowGuid) { using (IDataReader reader = DBPayPalLog.GetOne(rowGuid)) { PopulateFromReader(this, reader); } }
/// <summary> /// Gets an IList with page of instances of PayPalLog. /// </summary> /// <param name="pageNumber">The page number.</param> /// <param name="pageSize">Size of the page.</param> /// <param name="totalPages">total pages</param> public static List <PayPalLog> GetPage(int pageNumber, int pageSize, out int totalPages) { totalPages = 1; IDataReader reader = DBPayPalLog.GetPage(pageNumber, pageSize, out totalPages); return(LoadListFromReader(reader)); }
public static PayPalLog GetMostRecent(Guid cartGuid, string requestType) { PayPalLog log = new PayPalLog(); using (IDataReader reader = DBPayPalLog.GetMostRecentLog(cartGuid, requestType)) { PopulateFromReader(log, reader); } if (log.RowGuid == Guid.Empty) { return(null); } return(log); }
public static PayPalLog GetSetExpressCheckout(string token) { PayPalLog log = new PayPalLog(); using (IDataReader reader = DBPayPalLog.GetSetExpressCheckout(token)) { PopulateFromReader(log, reader); } if (log.RowGuid == Guid.Empty) { return(null); } return(log); }
/// <summary> /// Persists a new instance of PayPalLog. Returns true on success. /// </summary> /// <returns></returns> private bool Create() { this.rowGuid = Guid.NewGuid(); int rowsAffected = DBPayPalLog.Create( this.rowGuid, this.createdUtc, this.siteGuid, this.userGuid, this.storeGuid, this.cartGuid, this.requestType, this.apiVersion, this.rawResponse, this.token, this.payerId, this.transactionId, this.paymentType, this.paymentStatus, this.pendingReason, this.reasonCode, this.currencyCode, this.exchangeRate, this.cartTotal, this.payPalAmt, this.taxAmt, this.feeAmt, this.settleAmt, this.providerName, this.returnUrl, this.serializedObject, this.pdtProviderName, this.ipnProviderName, this.response); return(rowsAffected > 0); }
///// <summary> ///// Gets an IList with all instances of PayPalLog. ///// </summary> //public static List<PayPalLog> GetAll() //{ // IDataReader reader = DBPayPalLog.GetAll(); // return LoadListFromReader(reader); //} /// <summary> /// Gets an IDataReader with rows from the mp_PayPalLog table. /// </summary> public static IDataReader GetByCart(Guid cartGuid) { return(DBPayPalLog.GetByCart(cartGuid)); }
public static bool DeleteByStore(Guid storeGuid) { return(DBPayPalLog.DeleteByStore(storeGuid)); }
public static bool DeleteBySite(Guid siteGuid) { return(DBPayPalLog.DeleteBySite(siteGuid)); }
public static bool DeleteByCart(Guid cartGuid) { return(DBPayPalLog.DeleteByCart(cartGuid)); }
/// <summary> /// Deletes an instance of PayPalLog. Returns true on success. /// </summary> /// <param name="rowGuid"> rowGuid </param> /// <returns>bool</returns> public static bool Delete(Guid rowGuid) { return(DBPayPalLog.Delete(rowGuid)); }
/// <summary> /// Gets an IList with all instances of PayPalLog. /// </summary> public static List <PayPalLog> GetAll() { IDataReader reader = DBPayPalLog.GetAll(); return(LoadListFromReader(reader)); }
/// <summary> /// Gets a count of PayPalLog. /// </summary> public static int GetCount() { return(DBPayPalLog.GetCount()); }