TradeMe.Api.Client.MyTradeMeMethods.PayNowLedgerWithCriteria C# (CSharp) Method

PayNowLedgerWithCriteria() public method

Performs the My Trade Me Method: Retrieve a member’s Pay Now ledger.

Creates a query string using the parameter provided - parameter can be null if it is not required for the request.

REQUIRES AUTHENTICATION.
public PayNowLedgerWithCriteria ( PayNowLedgerCriteria criteria ) : PayNowLedger
criteria PayNowLedgerCriteria The criteria.
return PayNowLedger
        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);
        }