Package com.blockchyp.client.dto
Class UpdateTokenRequest
java.lang.Object
com.blockchyp.client.dto.UpdateTokenRequest
- All Implemented Interfaces:
ITimeoutRequest
Updates a payment token.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets bank account holder type (personal or business).Gets bank account type (checking or saving).Gets address.Gets bank name.Gets card holder name.Gets expiry month.Gets expiry year.Gets postal code.intGets the request timeout in seconds.getToken()Gets the token to update.booleanisTest()Gets whether or not to route transaction to the test gateway.voidsetAccountHolderType(String value) Sets bank account holder type (personal or business).voidsetAccountType(String value) Sets bank account type (checking or saving).voidsetAddress(String value) Sets address.voidsetBankName(String value) Sets bank name.voidsetCardHolderName(String value) Sets card holder name.voidsetExpiryMonth(String value) Sets expiry month.voidsetExpiryYear(String value) Sets expiry year.voidsetPostalCode(String value) Sets postal code.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 token to update.
-
Constructor Details
-
UpdateTokenRequest
public UpdateTokenRequest()
-
-
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.
-
setToken
Sets the token to update.- Parameters:
value- the token to update.
-
getToken
Gets the token to update.- Returns:
- the token to update.
-
setAccountHolderType
Sets bank account holder type (personal or business).- Parameters:
value- bank account holder type (personal or business).
-
getAccountHolderType
Gets bank account holder type (personal or business).- Returns:
- bank account holder type (personal or business).
-
setAccountType
Sets bank account type (checking or saving).- Parameters:
value- bank account type (checking or saving).
-
getAccountType
Gets bank account type (checking or saving).- Returns:
- bank account type (checking or saving).
-
setBankName
Sets bank name.- Parameters:
value- bank name.
-
getBankName
Gets bank name.- Returns:
- bank name.
-
setCardHolderName
Sets card holder name.- Parameters:
value- card holder name.
-
getCardHolderName
Gets card holder name.- Returns:
- card holder name.
-
setExpiryMonth
Sets expiry month.- Parameters:
value- expiry month.
-
getExpiryMonth
Gets expiry month.- Returns:
- expiry month.
-
setExpiryYear
Sets expiry year.- Parameters:
value- expiry year.
-
getExpiryYear
Gets expiry year.- Returns:
- expiry year.
-
setAddress
Sets address.- Parameters:
value- address.
-
getAddress
Gets address.- Returns:
- address.
-
setPostalCode
Sets postal code.- Parameters:
value- postal code.
-
getPostalCode
Gets postal code.- Returns:
- postal code.
-