Пример #1
0
        /// <summary>
        /// <para>Performs the My Trade Me Method:
        /// Retrieve a member’s Pay Now ledger.
        /// </para><para>
        /// Creates a query string using the parameter provided - parameter can be null if it is not required for the request.
        /// </para>
        /// REQUIRES AUTHENTICATION.
        /// </summary>
        /// <param name="criteria">The criteria.</param>
        /// <returns>PayNowLedger.</returns>
        public PayNowLedger PayNowLedgerWithCriteria(PayNowLedgerCriteria criteria)
        {
            var query = Constants.MY_TRADEME + "/PayNowLedger";

            if (!string.IsNullOrEmpty(string.Empty + criteria))
            {
                query += "/" + criteria;
            }

            query += Constants.XML;

            return(this.PayNowLedger(query));
        }
Пример #2
0
        /// <summary>
        /// <para>Performs the My Trade Me Method:
        /// Retrieve a member’s Pay Now ledger.
        /// </para><para>
        /// Creates a query string using the parameter provided - parameter can be null if it is not required for the request.
        /// </para>
        /// REQUIRES AUTHENTICATION.
        /// </summary>
        /// <param name="criteria">The criteria.</param>
        /// <returns>PayNowLedger.</returns>
        public PayNowLedger PayNowLedgerWithCriteria(PayNowLedgerCriteria criteria)
        {
            if (_myTradeMe == null)
            {
                _myTradeMe = new MyTradeMeMethods(_connection);
            }

            return _myTradeMe.PayNowLedgerWithCriteria(criteria);
        }
        /// <summary>
        /// <para>Performs the My Trade Me Method:
        /// Retrieve a member’s Pay Now ledger.
        /// </para><para>
        /// Creates a query string using the parameter provided - parameter can be null if it is not required for the request.
        /// </para>
        /// REQUIRES AUTHENTICATION.
        /// </summary>
        /// <param name="criteria">The criteria.</param>
        /// <returns>PayNowLedger.</returns>
        public PayNowLedger PayNowLedgerWithCriteria(PayNowLedgerCriteria criteria)
        {
            var query = Constants.MY_TRADEME + "/PayNowLedger";
            if (!string.IsNullOrEmpty(string.Empty + criteria))
            {
                query += "/" + criteria;
            }

            query += Constants.XML;

            return this.PayNowLedger(query);
        }