Package com.blockchyp.client.dto
Class EnrollRequest
java.lang.Object
com.blockchyp.client.dto.EnrollRequest
- All Implemented Interfaces:
ICoreRequest,IPaymentMethod,ITerminalReference,ITimeoutRequest
public class EnrollRequest
extends Object
implements ITimeoutRequest, ICoreRequest, IPaymentMethod, ITerminalReference
The information needed to enroll a new payment method in the token vault.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the cardholder address for use with address verification.Gets the cardholder name.Gets designates categories of cards: credit, debit, EBT.Gets customer with which the new token should be associated.getCvv()Gets the card CVV for use with PAN based transactions.Gets the settlement account for merchants with split settlements.Gets the method by which the payment card was entered (MSR, CHIP, KEYED, etc.Gets the card expiration month for use with PAN based transactions.Gets the card expiration year for use with PAN based transactions.getKsn()Gets the key serial number used for DUKPT encryption.Gets an identifier from an external point of sale system.getPan()Gets the primary account number.Gets designates brands of payment methods: Visa, Discover, etc.Gets the encrypted pin block.Gets the cardholder postal code for use with address verification.Gets the ACH routing number for ACH transactions.Gets the name of the target payment terminal.intGets the request timeout in seconds.getToken()Gets the payment token to be used for this transaction.Gets track 1 magnetic stripe data.Gets track 2 magnetic stripe data.Gets a user-assigned reference that can be used to recall or reverse transactions.booleanisAsync()Gets defers the response to the transaction and returns immediately.booleanGets that the transaction reference was autogenerated and should be ignored for the purposes of duplicate detection.booleanisForce()Gets override any in-progress transactions.booleanGets that the payment entry method is a manual keyed transaction.booleanisQueue()Gets adds the transaction to the queue and returns immediately.booleanGets forces the terminal cloud connection to be reset while a transactions is in flight.booleanisTest()Gets whether or not to route transaction to the test gateway.booleanGets whether or not the request should block until all cards have been removed from the card reader.voidsetAddress(String value) Sets the cardholder address for use with address verification.voidsetAsync(boolean value) Sets defers the response to the transaction and returns immediately.voidsetAutogeneratedRef(boolean value) Sets that the transaction reference was autogenerated and should be ignored for the purposes of duplicate detection.voidsetCardholderName(String value) Sets the cardholder name.voidsetCardType(CardType value) Sets designates categories of cards: credit, debit, EBT.voidsetCustomer(Customer value) Sets customer with which the new token should be associated.voidSets the card CVV for use with PAN based transactions.voidsetDestinationAccount(String value) Sets the settlement account for merchants with split settlements.voidsetEntryMethod(String value) Sets the method by which the payment card was entered (MSR, CHIP, KEYED, etc.voidsetExpMonth(String value) Sets the card expiration month for use with PAN based transactions.voidsetExpYear(String value) Sets the card expiration year for use with PAN based transactions.voidsetForce(boolean value) Sets override any in-progress transactions.voidSets the key serial number used for DUKPT encryption.voidsetManualEntry(boolean value) Sets that the payment entry method is a manual keyed transaction.voidsetOrderRef(String value) Sets an identifier from an external point of sale system.voidSets the primary account number.voidsetPaymentType(String value) Sets designates brands of payment methods: Visa, Discover, etc.voidsetPinBlock(String value) Sets the encrypted pin block.voidsetPostalCode(String value) Sets the cardholder postal code for use with address verification.voidsetQueue(boolean value) Sets adds the transaction to the queue and returns immediately.voidsetResetConnection(boolean value) Sets forces the terminal cloud connection to be reset while a transactions is in flight.voidsetRoutingNumber(String value) Sets the ACH routing number for ACH transactions.voidsetTerminalName(String value) Sets the name of the target payment terminal.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 to be used for this transaction.voidSets track 1 magnetic stripe data.voidSets track 2 magnetic stripe data.voidsetTransactionRef(String value) Sets a user-assigned reference that can be used to recall or reverse transactions.voidsetWaitForRemovedCard(boolean value) Sets whether or not the request should block until all cards have been removed from the card reader.
-
Constructor Details
-
EnrollRequest
public EnrollRequest()
-
-
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.
-
setTransactionRef
Sets a user-assigned reference that can be used to recall or reverse transactions.- Parameters:
value- a user-assigned reference that can be used to recall or reverse transactions.
-
getTransactionRef
Gets a user-assigned reference that can be used to recall or reverse transactions.- Specified by:
getTransactionRefin interfaceICoreRequest- Returns:
- a user-assigned reference that can be used to recall or reverse transactions.
-
setAutogeneratedRef
public void setAutogeneratedRef(boolean value) Sets that the transaction reference was autogenerated and should be ignored for the purposes of duplicate detection.- Parameters:
value- that the transaction reference was autogenerated and should be ignored for the purposes of duplicate detection.
-
isAutogeneratedRef
public boolean isAutogeneratedRef()Gets that the transaction reference was autogenerated and should be ignored for the purposes of duplicate detection.- Specified by:
isAutogeneratedRefin interfaceICoreRequest- Returns:
- that the transaction reference was autogenerated and should be ignored for the purposes of duplicate detection.
-
setAsync
public void setAsync(boolean value) Sets defers the response to the transaction and returns immediately.- Parameters:
value- defers the response to the transaction and returns immediately. Callers should retrive the transaction result using the Transaction Status API.
-
isAsync
public boolean isAsync()Gets defers the response to the transaction and returns immediately.- Specified by:
isAsyncin interfaceICoreRequest- Returns:
- defers the response to the transaction and returns immediately. Callers should retrive the transaction result using the Transaction Status API.
-
setQueue
public void setQueue(boolean value) Sets adds the transaction to the queue and returns immediately.- Parameters:
value- adds the transaction to the queue and returns immediately. Callers should retrive the transaction result using the Transaction Status API.
-
isQueue
public boolean isQueue()Gets adds the transaction to the queue and returns immediately.- Specified by:
isQueuein interfaceICoreRequest- Returns:
- adds the transaction to the queue and returns immediately. Callers should retrive the transaction result using the Transaction Status API.
-
setWaitForRemovedCard
public void setWaitForRemovedCard(boolean value) Sets whether or not the request should block until all cards have been removed from the card reader.- Parameters:
value- whether or not the request should block until all cards have been removed from the card reader.
-
isWaitForRemovedCard
public boolean isWaitForRemovedCard()Gets whether or not the request should block until all cards have been removed from the card reader.- Specified by:
isWaitForRemovedCardin interfaceICoreRequest- Returns:
- whether or not the request should block until all cards have been removed from the card reader.
-
setForce
public void setForce(boolean value) Sets override any in-progress transactions.- Parameters:
value- override any in-progress transactions.
-
isForce
public boolean isForce()Gets override any in-progress transactions.- Specified by:
isForcein interfaceICoreRequest- Returns:
- override any in-progress transactions.
-
setOrderRef
Sets an identifier from an external point of sale system.- Parameters:
value- an identifier from an external point of sale system.
-
getOrderRef
Gets an identifier from an external point of sale system.- Specified by:
getOrderRefin interfaceICoreRequest- Returns:
- an identifier from an external point of sale system.
-
setDestinationAccount
Sets the settlement account for merchants with split settlements.- Parameters:
value- the settlement account for merchants with split settlements.
-
getDestinationAccount
Gets the settlement account for merchants with split settlements.- Specified by:
getDestinationAccountin interfaceICoreRequest- Returns:
- the settlement account for merchants with split settlements.
-
setToken
Sets the payment token to be used for this transaction.- Parameters:
value- the payment token to be used for this transaction. This should be used for recurring transactions.
-
getToken
Gets the payment token to be used for this transaction.- Specified by:
getTokenin interfaceIPaymentMethod- Returns:
- the payment token to be used for this transaction. This should be used for recurring transactions.
-
setTrack1
Sets track 1 magnetic stripe data.- Parameters:
value- track 1 magnetic stripe data.
-
getTrack1
Gets track 1 magnetic stripe data.- Specified by:
getTrack1in interfaceIPaymentMethod- Returns:
- track 1 magnetic stripe data.
-
setTrack2
Sets track 2 magnetic stripe data.- Parameters:
value- track 2 magnetic stripe data.
-
getTrack2
Gets track 2 magnetic stripe data.- Specified by:
getTrack2in interfaceIPaymentMethod- Returns:
- track 2 magnetic stripe data.
-
setPan
Sets the primary account number.- Parameters:
value- the primary account number. We recommend using the terminal or e-commerce tokenization libraries instead of passing account numbers in directly, as this would put your application in PCI scope.
-
getPan
Gets the primary account number.- Specified by:
getPanin interfaceIPaymentMethod- Returns:
- the primary account number. We recommend using the terminal or e-commerce tokenization libraries instead of passing account numbers in directly, as this would put your application in PCI scope.
-
setRoutingNumber
Sets the ACH routing number for ACH transactions.- Parameters:
value- the ACH routing number for ACH transactions.
-
getRoutingNumber
Gets the ACH routing number for ACH transactions.- Specified by:
getRoutingNumberin interfaceIPaymentMethod- Returns:
- the ACH routing number for ACH transactions.
-
setCardholderName
Sets the cardholder name.- Parameters:
value- the cardholder name. Only required if the request includes a primary account number or track data.
-
getCardholderName
Gets the cardholder name.- Specified by:
getCardholderNamein interfaceIPaymentMethod- Returns:
- the cardholder name. Only required if the request includes a primary account number or track data.
-
setExpMonth
Sets the card expiration month for use with PAN based transactions.- Parameters:
value- the card expiration month for use with PAN based transactions.
-
getExpMonth
Gets the card expiration month for use with PAN based transactions.- Specified by:
getExpMonthin interfaceIPaymentMethod- Returns:
- the card expiration month for use with PAN based transactions.
-
setExpYear
Sets the card expiration year for use with PAN based transactions.- Parameters:
value- the card expiration year for use with PAN based transactions.
-
getExpYear
Gets the card expiration year for use with PAN based transactions.- Specified by:
getExpYearin interfaceIPaymentMethod- Returns:
- the card expiration year for use with PAN based transactions.
-
setCvv
Sets the card CVV for use with PAN based transactions.- Parameters:
value- the card CVV for use with PAN based transactions.
-
getCvv
Gets the card CVV for use with PAN based transactions.- Specified by:
getCvvin interfaceIPaymentMethod- Returns:
- the card CVV for use with PAN based transactions.
-
setAddress
Sets the cardholder address for use with address verification.- Parameters:
value- the cardholder address for use with address verification.
-
getAddress
Gets the cardholder address for use with address verification.- Specified by:
getAddressin interfaceIPaymentMethod- Returns:
- the cardholder address for use with address verification.
-
setPostalCode
Sets the cardholder postal code for use with address verification.- Parameters:
value- the cardholder postal code for use with address verification.
-
getPostalCode
Gets the cardholder postal code for use with address verification.- Specified by:
getPostalCodein interfaceIPaymentMethod- Returns:
- the cardholder postal code for use with address verification.
-
setManualEntry
public void setManualEntry(boolean value) Sets that the payment entry method is a manual keyed transaction.- Parameters:
value- that the payment entry method is a manual keyed transaction. If this is true, no other payment method will be accepted.
-
isManualEntry
public boolean isManualEntry()Gets that the payment entry method is a manual keyed transaction.- Specified by:
isManualEntryin interfaceIPaymentMethod- Returns:
- that the payment entry method is a manual keyed transaction. If this is true, no other payment method will be accepted.
-
setKsn
Sets the key serial number used for DUKPT encryption.- Parameters:
value- the key serial number used for DUKPT encryption.
-
getKsn
Gets the key serial number used for DUKPT encryption.- Specified by:
getKsnin interfaceIPaymentMethod- Returns:
- the key serial number used for DUKPT encryption.
-
setPinBlock
Sets the encrypted pin block.- Parameters:
value- the encrypted pin block.
-
getPinBlock
Gets the encrypted pin block.- Specified by:
getPinBlockin interfaceIPaymentMethod- Returns:
- the encrypted pin block.
-
setCardType
Sets designates categories of cards: credit, debit, EBT.- Parameters:
value- designates categories of cards: credit, debit, EBT.
-
getCardType
Gets designates categories of cards: credit, debit, EBT.- Specified by:
getCardTypein interfaceIPaymentMethod- Returns:
- designates categories of cards: credit, debit, EBT.
-
setPaymentType
Sets designates brands of payment methods: Visa, Discover, etc.- Parameters:
value- designates brands of payment methods: Visa, Discover, etc.
-
getPaymentType
Gets designates brands of payment methods: Visa, Discover, etc.- Specified by:
getPaymentTypein interfaceIPaymentMethod- Returns:
- designates brands of payment methods: Visa, Discover, etc.
-
setTerminalName
Sets the name of the target payment terminal.- Parameters:
value- the name of the target payment terminal.
-
getTerminalName
Gets the name of the target payment terminal.- Specified by:
getTerminalNamein interfaceITerminalReference- Returns:
- the name of the target payment terminal.
-
setResetConnection
public void setResetConnection(boolean value) Sets forces the terminal cloud connection to be reset while a transactions is in flight.- Parameters:
value- forces the terminal cloud connection to be reset while a transactions is in flight. This is a diagnostic settings that can be used only for test transactions.
-
isResetConnection
public boolean isResetConnection()Gets forces the terminal cloud connection to be reset while a transactions is in flight.- Specified by:
isResetConnectionin interfaceITerminalReference- Returns:
- forces the terminal cloud connection to be reset while a transactions is in flight. This is a diagnostic settings that can be used only for test transactions.
-
setEntryMethod
Sets the method by which the payment card was entered (MSR, CHIP, KEYED, etc.- Parameters:
value- the method by which the payment card was entered (MSR, CHIP, KEYED, etc.).
-
getEntryMethod
Gets the method by which the payment card was entered (MSR, CHIP, KEYED, etc.- Returns:
- the method by which the payment card was entered (MSR, CHIP, KEYED, etc.).
-
setCustomer
Sets customer with which the new token should be associated.- Parameters:
value- customer with which the new token should be associated.
-
getCustomer
Gets customer with which the new token should be associated.- Returns:
- customer with which the new token should be associated.
-