Class GetMerchantsRequest

java.lang.Object
com.blockchyp.client.dto.GetMerchantsRequest
All Implemented Interfaces:
ITimeoutRequest

public class GetMerchantsRequest extends Object implements ITimeoutRequest
Models a request for merchant information.
  • 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:
      getTimeout in interface ITimeoutRequest
      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:
      isTest in interface ITimeoutRequest
      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.