Package com.blockchyp.client.dto
Class CustomerToken
java.lang.Object
com.blockchyp.client.dto.CustomerToken
Models a customer token.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCustomer(Customer value) Adds a models customer records associated with a payment token.Gets bank account holder type (personal, business).Gets bank account type (checking, saving).Gets the card address.Gets bank name.getBin()Gets card bin.Gets the card holder name.Gets the card country.Gets models customer records associated with a payment token.Gets expiration month.Gets expiration month.Gets masked primary account number.Gets payment type.Gets the card postal code.Gets routing number.getToken()Gets BlockChyp assigned customer id.Gets token hash (generated with a static salt, Merchant ID, Registration Date and PAN.booleanisHasCvv()Gets whether the token was enrolled with a CVV value present.voidsetAccountHolderType(String value) Sets bank account holder type (personal, business).voidsetAccountType(String value) Sets bank account type (checking, saving).voidsetAddress(String value) Sets the card address.voidsetBankName(String value) Sets bank name.voidSets card bin.voidsetCardHolderName(String value) Sets the card holder name.voidsetCountry(String value) Sets the card country.voidsetCustomers(Collection<Customer> value) Sets models customer records associated with a payment token.voidsetExpiryMonth(String value) Sets expiration month.voidsetExpiryYear(String value) Sets expiration month.voidsetHasCvv(boolean value) Sets whether the token was enrolled with a CVV value present.voidsetMaskedPan(String value) Sets masked primary account number.voidsetPaymentType(String value) Sets payment type.voidsetPostalCode(String value) Sets the card postal code.voidsetRoutingNumber(String value) Sets routing number.voidSets BlockChyp assigned customer id.voidsetTokenHash(String value) Sets token hash (generated with a static salt, Merchant ID, Registration Date and PAN.
-
Constructor Details
-
CustomerToken
public CustomerToken()
-
-
Method Details
-
setToken
Sets BlockChyp assigned customer id.- Parameters:
value- BlockChyp assigned customer id.
-
getToken
Gets BlockChyp assigned customer id.- Returns:
- BlockChyp assigned customer id.
-
setMaskedPan
Sets masked primary account number.- Parameters:
value- masked primary account number.
-
getMaskedPan
Gets masked primary account number.- Returns:
- masked primary account number.
-
setExpiryMonth
Sets expiration month.- Parameters:
value- expiration month.
-
getExpiryMonth
Gets expiration month.- Returns:
- expiration month.
-
setExpiryYear
Sets expiration month.- Parameters:
value- expiration month.
-
getExpiryYear
Gets expiration month.- Returns:
- expiration month.
-
setPaymentType
Sets payment type.- Parameters:
value- payment type.
-
getPaymentType
Gets payment type.- Returns:
- payment type.
-
setAccountType
Sets bank account type (checking, saving).- Parameters:
value- bank account type (checking, saving).
-
getAccountType
Gets bank account type (checking, saving).- Returns:
- bank account type (checking, saving).
-
setAccountHolderType
Sets bank account holder type (personal, business).- Parameters:
value- bank account holder type (personal, business).
-
getAccountHolderType
Gets bank account holder type (personal, business).- Returns:
- bank account holder type (personal, business).
-
setBankName
Sets bank name.- Parameters:
value- bank name.
-
getBankName
Gets bank name.- Returns:
- bank name.
-
setRoutingNumber
Sets routing number.- Parameters:
value- routing number.
-
getRoutingNumber
Gets routing number.- Returns:
- routing number.
-
setTokenHash
Sets token hash (generated with a static salt, Merchant ID, Registration Date and PAN.- Parameters:
value- token hash (generated with a static salt, Merchant ID, Registration Date and PAN.
-
getTokenHash
Gets token hash (generated with a static salt, Merchant ID, Registration Date and PAN.- Returns:
- token hash (generated with a static salt, Merchant ID, Registration Date and PAN.
-
setBin
Sets card bin.- Parameters:
value- card bin.
-
getBin
Gets card bin.- Returns:
- card bin.
-
setPostalCode
Sets the card postal code.- Parameters:
value- the card postal code.
-
getPostalCode
Gets the card postal code.- Returns:
- the card postal code.
-
setAddress
Sets the card address.- Parameters:
value- the card address.
-
getAddress
Gets the card address.- Returns:
- the card address.
-
setCountry
Sets the card country.- Parameters:
value- the card country.
-
getCountry
Gets the card country.- Returns:
- the card country.
-
setCardHolderName
Sets the card holder name.- Parameters:
value- the card holder name.
-
getCardHolderName
Gets the card holder name.- Returns:
- the card holder name.
-
setHasCvv
public void setHasCvv(boolean value) Sets whether the token was enrolled with a CVV value present.- Parameters:
value- whether the token was enrolled with a CVV value present.
-
isHasCvv
public boolean isHasCvv()Gets whether the token was enrolled with a CVV value present.- Returns:
- whether the token was enrolled with a CVV value present.
-
setCustomers
Sets models customer records associated with a payment token.- Parameters:
value- models customer records associated with a payment token.
-
getCustomers
Gets models customer records associated with a payment token.- Returns:
- models customer records associated with a payment token.
-
addCustomer
Adds a models customer records associated with a payment token.- Parameters:
value- models customer records associated with a payment token.
-