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

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