Package com.blockchyp.client.dto
Class PricingPolicyRequest
java.lang.Object
com.blockchyp.client.dto.PricingPolicyRequest
- All Implemented Interfaces:
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 -
Method Summary
Modifier and TypeMethodDescriptiongetId()Gets an optional id used to retrieve a specific pricing policy.Gets an optional merchant id if this request is submitted via partner credentials.intGets the request timeout in seconds.booleanisTest()Gets whether or not to route transaction to the test gateway.voidSets an optional id used to retrieve a specific pricing policy.voidsetMerchantId(String value) Sets an optional merchant id if this request is submitted via partner credentials.voidsetTest(boolean value) Sets whether or not to route transaction to the test gateway.voidsetTimeout(int value) Sets the request timeout in seconds.
-
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:
getTimeoutin interfaceITimeoutRequest- 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:
isTestin interfaceITimeoutRequest- Returns:
- whether or not to route transaction to the test gateway.
-
setId
Sets an optional id used to retrieve a specific pricing policy.- Parameters:
value- an optional id used to retrieve a specific pricing policy.
-
getId
Gets an optional id used to retrieve a specific pricing policy.- Returns:
- an optional id used to retrieve a specific pricing policy.
-
setMerchantId
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
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.
-