Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  package com.paypal.base.rest;
  
  import java.util.HashMap;
  import java.util.Map;

QueryParameters holds query parameters used for retrieving PaymentHistory object.

Author(s):
kjayakumar
 
 public class QueryParameters {

Count
 
 	private static final String COUNT = "count";

Start Id
 
 	private static final String STARTID = "start_id";

Start Index
 
 	private static final String STARTINDEX = "start_index";

Start Time
 
 	private static final String STARTTIME = "start_time";

End Time
 
 	private static final String ENDTIME = "end_time";

Payee Id
 
 	private static final String PAYEEID = "payee_id";

Sort By
 
 	private static final String SORTBY = "sort_by";

Sort Order
 
 	private static final String SORTORDER = "sort_order";
 
 	// Map backing QueryParameters intended to processed
 	// by SDK library 'RESTUtil'
 	private Map<StringStringcontainerMap;
 
 	public QueryParameters() {
 	}

Returns:
the containerMap
 
 	public Map<StringStringgetContainerMap() {
 		return ;
 	}

Set the count

Parameters:
count Number of items to return.
 
 	public void setCount(String count) {
 		.put(count);
 	}

Set the startId

Parameters:
startId Resource ID that indicates the starting resource to return.
 
 	public void setStartId(String startId) {
 		.put(startId);
 	}

Set the startIndex

Parameters:
startIndex Start index of the resources to be returned. Typically used to jump to a specific position in the resource history based on its order.
 
 	public void setStartIndex(String startIndex) {
 		.put(startIndex);
	}

Set the startTime

Parameters:
startTime Resource creation time that indicates the start of a range of results.
	public void setStartTime(String startTime) {
	}

Set the endTime

Parameters:
endTime Resource creation time that indicates the end of a range of results.
	public void setEndTime(String endTime) {
	}

Set the payeeId

Parameters:
payeeId PayeeId
	public void setPayeeId(String payeeId) {
	}

Set the sortBy

Parameters:
sortBy Sort based on create_time or update_time.
	public void setSortBy(String sortBy) {
	}

Set the sortOrder

Parameters:
sortOrder Sort based on order of results. Options include asc for ascending order or dec for descending order.
	public void setSortOrder(String sortOrder) {
	}
New to GrepCode? Check out our FAQ X