Exemple #1
0
        /// <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);
        }
Exemple #2
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);
     }
 }
Exemple #3
0
 /// <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));
 }
Exemple #4
0
 public static IDataReader GetByCart(Guid cartGuid)
 {
     return(DBPaymentLog.GetByCart(cartGuid));
 }
Exemple #5
0
 /// <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));
 }