Package com.blockchyp.client.dto
Class GetMerchantsRequest
java.lang.Object
com.blockchyp.client.dto.GetMerchantsRequest
- All Implemented Interfaces:
ITimeoutRequest
Models a request for merchant information.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintGets max to be returned in a single page.intGets starting index for paged results.intGets the request timeout in seconds.booleanisTest()Gets whether or not to return test or live merchants.voidsetMaxResults(int value) Sets max to be returned in a single page.voidsetStartIndex(int value) Sets starting index for paged results.voidsetTest(boolean value) Sets whether or not to return test or live merchants.voidsetTimeout(int value) Sets the request timeout in seconds.
-
Constructor Details
-
GetMerchantsRequest
public GetMerchantsRequest()
-
-
Method Details
-
setTimeout
public void setTimeout(int value) Sets the request timeout in seconds.- Parameters:
value- the request timeout in seconds.
-
getTimeout
public int getTimeout()Gets the request timeout in seconds.- Specified by:
getTimeoutin interfaceITimeoutRequest- Returns:
- the request timeout in seconds.
-
setTest
public void setTest(boolean value) Sets whether or not to return test or live merchants.- Parameters:
value- whether or not to return test or live merchants.
-
isTest
public boolean isTest()Gets whether or not to return test or live merchants.- Specified by:
isTestin interfaceITimeoutRequest- Returns:
- whether or not to return test or live merchants.
-
setMaxResults
public void setMaxResults(int value) Sets max to be returned in a single page.- Parameters:
value- max to be returned in a single page. Defaults to the system max of 250.
-
getMaxResults
public int getMaxResults()Gets max to be returned in a single page.- Returns:
- max to be returned in a single page. Defaults to the system max of 250.
-
setStartIndex
public void setStartIndex(int value) Sets starting index for paged results.- Parameters:
value- starting index for paged results. Defaults to zero.
-
getStartIndex
public int getStartIndex()Gets starting index for paged results.- Returns:
- starting index for paged results. Defaults to zero.
-