Exemple #1
0
 /// <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));
 }
Exemple #2
0
 /// <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);
     }
 }
Exemple #3
0
        /// <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));
        }
Exemple #4
0
        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);
        }
Exemple #5
0
        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);
        }
Exemple #6
0
        /// <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);
        }
Exemple #7
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));
        }
Exemple #8
0
 public static bool DeleteByStore(Guid storeGuid)
 {
     return(DBPayPalLog.DeleteByStore(storeGuid));
 }
Exemple #9
0
 public static bool DeleteBySite(Guid siteGuid)
 {
     return(DBPayPalLog.DeleteBySite(siteGuid));
 }
Exemple #10
0
 public static bool DeleteByCart(Guid cartGuid)
 {
     return(DBPayPalLog.DeleteByCart(cartGuid));
 }
Exemple #11
0
 /// <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));
 }
Exemple #12
0
        /// <summary>
        /// Gets an IList with all instances of PayPalLog.
        /// </summary>
        public static List <PayPalLog> GetAll()
        {
            IDataReader reader = DBPayPalLog.GetAll();

            return(LoadListFromReader(reader));
        }
Exemple #13
0
 /// <summary>
 /// Gets a count of PayPalLog.
 /// </summary>
 public static int GetCount()
 {
     return(DBPayPalLog.GetCount());
 }