/// <summary> /// Persists a new instance of PaymentLog. Returns true on success. /// </summary> /// <returns></returns> private bool Create() { this.rowGuid = Guid.NewGuid(); int rowsAffected = DBPaymentLog.Create( this.rowGuid, this.createdUtc, this.siteGuid, this.userGuid, this.storeGuid, this.cartGuid, this.provider, this.rawResponse, this.responseCode, this.responseReasonCode, this.reason, this.avsCode, this.ccvCode, this.cavCode, this.transactionId, this.transactionType, this.method, this.authCode, this.amount, this.tax, this.duty, this.freight); return(rowsAffected > 0); }
/// <summary> /// Gets an instance of PaymentLog. /// </summary> /// <param name="rowGuid"> rowGuid </param> private void GetPaymentLog(Guid rowGuid) { using (IDataReader reader = DBPaymentLog.GetOne(rowGuid)) { PopulateFromReader(reader); } }
/// <summary> /// Updates this instance of PaymentLog. Returns true on success. /// </summary> /// <returns>bool</returns> private bool Update() { return(DBPaymentLog.Update( this.rowGuid, this.siteGuid, this.userGuid, this.storeGuid, this.cartGuid, this.rawResponse, this.responseCode, this.responseReasonCode, this.reason, this.avsCode, this.ccvCode, this.cavCode, this.transactionId, this.transactionType, this.method, this.authCode, this.amount, this.tax, this.duty, this.freight)); }
public static IDataReader GetByCart(Guid cartGuid) { return(DBPaymentLog.GetByCart(cartGuid)); }
/// <summary> /// Deletes an instance of PaymentLog. Returns true on success. /// </summary> /// <param name="rowGuid"> rowGuid </param> /// <returns>bool</returns> public static bool Delete(Guid rowGuid) { return(DBPaymentLog.Delete(rowGuid)); }