コード例 #1
0
ファイル: PayPalLog.cs プロジェクト: zahedbri/mojoportal
 /// <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
ファイル: PayPalLog.cs プロジェクト: zahedbri/mojoportal
 /// <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
ファイル: PayPalLog.cs プロジェクト: zahedbri/mojoportal
        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
ファイル: PayPalLog.cs プロジェクト: zahedbri/mojoportal
        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
ファイル: PayPalLog.cs プロジェクト: zahedbri/mojoportal
        /// <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
ファイル: PayPalLog.cs プロジェクト: zahedbri/mojoportal
        ///// <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
ファイル: PayPalLog.cs プロジェクト: zahedbri/mojoportal
 public static bool DeleteByStore(Guid storeGuid)
 {
     return(DBPayPalLog.DeleteByStore(storeGuid));
 }
コード例 #9
0
ファイル: PayPalLog.cs プロジェクト: zahedbri/mojoportal
 public static bool DeleteBySite(Guid siteGuid)
 {
     return(DBPayPalLog.DeleteBySite(siteGuid));
 }
コード例 #10
0
ファイル: PayPalLog.cs プロジェクト: zahedbri/mojoportal
 public static bool DeleteByCart(Guid cartGuid)
 {
     return(DBPayPalLog.DeleteByCart(cartGuid));
 }
コード例 #11
0
ファイル: PayPalLog.cs プロジェクト: zahedbri/mojoportal
 /// <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());
 }