Package com.blockchyp.client.dto
Class SurchargeReviewRequest
java.lang.Object
com.blockchyp.client.dto.SurchargeReviewRequest
- All Implemented Interfaces:
ITimeoutRequest
Models a surcharge review request.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddExcludedMerchantState(String value) Adds a the list of excluded merchant states.Gets the transaction amount.Gets the card number for the pricing request.Gets the debit discount rate.Gets the debit transaction fee.Gets the list of excluded merchant states.Gets the pricing plan.getState()Gets the state or province.Gets the surcharge policy.Gets the surcharge rate.Gets the surcharging mode.intGets the request timeout in seconds.getToken()Gets the payment token.getZip()Gets the zip code.booleanGets if foreign cards are exempt.booleanisTest()Gets whether or not to route transaction to the test gateway.voidSets the transaction amount.voidsetCardNumber(String value) Sets the card number for the pricing request.voidsetDebitDiscountRate(String value) Sets the debit discount rate.voidsetDebitTransFee(String value) Sets the debit transaction fee.voidSets the list of excluded merchant states.voidsetExemptForeignCards(boolean value) Sets if foreign cards are exempt.voidsetPricingPlan(String value) Sets the pricing plan.voidSets the state or province.voidsetSurchargePolicy(String value) Sets the surcharge policy.voidsetSurchargeRate(String value) Sets the surcharge rate.voidsetSurchargingMode(String value) Sets the surcharging mode.voidsetTest(boolean value) Sets whether or not to route transaction to the test gateway.voidsetTimeout(int value) Sets the request timeout in seconds.voidSets the payment token.voidSets the zip code.
-
Constructor Details
-
SurchargeReviewRequest
public SurchargeReviewRequest()
-
-
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.
-
setCardNumber
Sets the card number for the pricing request.- Parameters:
value- the card number for the pricing request.
-
getCardNumber
Gets the card number for the pricing request.- Returns:
- the card number for the pricing request.
-
setToken
Sets the payment token.- Parameters:
value- the payment token.
-
getToken
Gets the payment token.- Returns:
- the payment token.
-
setAmount
Sets the transaction amount.- Parameters:
value- the transaction amount.
-
getAmount
Gets the transaction amount.- Returns:
- the transaction amount.
-
setSurchargeRate
Sets the surcharge rate.- Parameters:
value- the surcharge rate.
-
getSurchargeRate
Gets the surcharge rate.- Returns:
- the surcharge rate.
-
setDebitTransFee
Sets the debit transaction fee.- Parameters:
value- the debit transaction fee.
-
getDebitTransFee
Gets the debit transaction fee.- Returns:
- the debit transaction fee.
-
setDebitDiscountRate
Sets the debit discount rate.- Parameters:
value- the debit discount rate.
-
getDebitDiscountRate
Gets the debit discount rate.- Returns:
- the debit discount rate.
-
setSurchargePolicy
Sets the surcharge policy.- Parameters:
value- the surcharge policy.
-
getSurchargePolicy
Gets the surcharge policy.- Returns:
- the surcharge policy.
-
setExcludedMerchantStates
Sets the list of excluded merchant states.- Parameters:
value- the list of excluded merchant states.
-
getExcludedMerchantStates
Gets the list of excluded merchant states.- Returns:
- the list of excluded merchant states.
-
setZip
Sets the zip code.- Parameters:
value- the zip code.
-
getZip
Gets the zip code.- Returns:
- the zip code.
-
setState
Sets the state or province.- Parameters:
value- the state or province.
-
getState
Gets the state or province.- Returns:
- the state or province.
-
setExemptForeignCards
public void setExemptForeignCards(boolean value) Sets if foreign cards are exempt.- Parameters:
value- if foreign cards are exempt.
-
isExemptForeignCards
public boolean isExemptForeignCards()Gets if foreign cards are exempt.- Returns:
- if foreign cards are exempt.
-
setSurchargingMode
Sets the surcharging mode.- Parameters:
value- the surcharging mode.
-
getSurchargingMode
Gets the surcharging mode.- Returns:
- the surcharging mode.
-
setPricingPlan
Sets the pricing plan.- Parameters:
value- the pricing plan.
-
getPricingPlan
Gets the pricing plan.- Returns:
- the pricing plan.
-
addExcludedMerchantState
Adds a the list of excluded merchant states.- Parameters:
value- the list of excluded merchant states.
-