Exemplo n.º 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);
        }
Exemplo n.º 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);
     }
 }
Exemplo n.º 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));
 }
Exemplo n.º 4
0
 public static IDataReader GetByCart(Guid cartGuid)
 {
     return(DBPaymentLog.GetByCart(cartGuid));
 }
Exemplo n.º 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));
 }