Class PricingPolicyRequest

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

public class PricingPolicyRequest extends Object implements ITimeoutRequest
Models a request to retrieve pricing policy information. The default policy for the merchant is returned if no idea is provided.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets an optional id used to retrieve a specific pricing policy.
    Gets an optional merchant id if this request is submitted via partner credentials.
    int
    Gets the request timeout in seconds.
    boolean
    Gets whether or not to route transaction to the test gateway.
    void
    setId(String value)
    Sets an optional id used to retrieve a specific pricing policy.
    void
    Sets an optional merchant id if this request is submitted via partner credentials.
    void
    setTest(boolean value)
    Sets whether or not to route transaction to the test gateway.
    void
    setTimeout(int value)
    Sets the request timeout in seconds.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • PricingPolicyRequest

      public PricingPolicyRequest()
  • 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 route transaction to the test gateway.
      Parameters:
      value - whether or not to route transaction to the test gateway.
    • isTest

      public boolean isTest()
      Gets whether or not to route transaction to the test gateway.
      Specified by:
      isTest in interface ITimeoutRequest
      Returns:
      whether or not to route transaction to the test gateway.
    • setId

      public void setId(String value)
      Sets an optional id used to retrieve a specific pricing policy.
      Parameters:
      value - an optional id used to retrieve a specific pricing policy.
    • getId

      public String getId()
      Gets an optional id used to retrieve a specific pricing policy.
      Returns:
      an optional id used to retrieve a specific pricing policy.
    • setMerchantId

      public void setMerchantId(String value)
      Sets an optional merchant id if this request is submitted via partner credentials.
      Parameters:
      value - an optional merchant id if this request is submitted via partner credentials.
    • getMerchantId

      public String getMerchantId()
      Gets an optional merchant id if this request is submitted via partner credentials.
      Returns:
      an optional merchant id if this request is submitted via partner credentials.