Package com.blockchyp.client.dto
Class CaptureSignatureRequest
java.lang.Object
com.blockchyp.client.dto.CaptureSignatureRequest
- All Implemented Interfaces:
ICoreRequest,ISignatureRequest,ITerminalReference,ITimeoutRequest
public class CaptureSignatureRequest
extends Object
implements ITimeoutRequest, ICoreRequest, ISignatureRequest, ITerminalReference
A request for customer signature data.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the settlement account for merchants with split settlements.Gets an identifier from an external point of sale system.Gets a location on the filesystem which a customer signature should be written to.Gets the image format to be used for returning signatures.intGets the width that the signature image should be scaled to, preserving the aspect ratio.Gets the name of the target payment terminal.Gets can include a code used to trigger simulated conditions for the purposes of testing and certification.intGets the request timeout in seconds.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.booleanGets whether or not signature prompt should be skipped on the terminal.booleanisForce()Gets override any in-progress transactions.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.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.voidsetDestinationAccount(String value) Sets the settlement account for merchants with split settlements.voidsetDisableSignature(boolean value) Sets whether or not signature prompt should be skipped on the terminal.voidsetForce(boolean value) Sets override any in-progress transactions.voidsetOrderRef(String value) Sets an identifier from an external point of sale system.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.voidsetSigFile(String value) Sets a location on the filesystem which a customer signature should be written to.voidsetSigFormat(SignatureFormat value) Sets the image format to be used for returning signatures.voidsetSigWidth(int value) Sets the width that the signature image should be scaled to, preserving the aspect ratio.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.voidsetTestCase(String value) Sets can include a code used to trigger simulated conditions for the purposes of testing and certification.voidsetTimeout(int value) Sets the request timeout in seconds.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
-
CaptureSignatureRequest
public CaptureSignatureRequest()
-
-
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.
-
setTestCase
Sets can include a code used to trigger simulated conditions for the purposes of testing and certification.- Parameters:
value- can include a code used to trigger simulated conditions for the purposes of testing and certification. Valid for test merchant accounts only.
-
getTestCase
Gets can include a code used to trigger simulated conditions for the purposes of testing and certification.- Specified by:
getTestCasein interfaceICoreRequest- Returns:
- can include a code used to trigger simulated conditions for the purposes of testing and certification. Valid for test merchant accounts only.
-
setSigFile
Sets a location on the filesystem which a customer signature should be written to.- Parameters:
value- a location on the filesystem which a customer signature should be written to.
-
getSigFile
Gets a location on the filesystem which a customer signature should be written to.- Specified by:
getSigFilein interfaceISignatureRequest- Returns:
- a location on the filesystem which a customer signature should be written to.
-
setSigFormat
Sets the image format to be used for returning signatures.- Parameters:
value- the image format to be used for returning signatures.
-
getSigFormat
Gets the image format to be used for returning signatures.- Specified by:
getSigFormatin interfaceISignatureRequest- Returns:
- the image format to be used for returning signatures.
-
setSigWidth
public void setSigWidth(int value) Sets the width that the signature image should be scaled to, preserving the aspect ratio.- Parameters:
value- the width that the signature image should be scaled to, preserving the aspect ratio. If not provided, the signature is returned in the terminal's max resolution.
-
getSigWidth
public int getSigWidth()Gets the width that the signature image should be scaled to, preserving the aspect ratio.- Specified by:
getSigWidthin interfaceISignatureRequest- Returns:
- the width that the signature image should be scaled to, preserving the aspect ratio. If not provided, the signature is returned in the terminal's max resolution.
-
setDisableSignature
public void setDisableSignature(boolean value) Sets whether or not signature prompt should be skipped on the terminal.- Parameters:
value- whether or not signature prompt should be skipped on the terminal. The terminal will indicate whether or not a signature is required by the card in the receipt suggestions response.
-
isDisableSignature
public boolean isDisableSignature()Gets whether or not signature prompt should be skipped on the terminal.- Specified by:
isDisableSignaturein interfaceISignatureRequest- Returns:
- whether or not signature prompt should be skipped on the terminal. The terminal will indicate whether or not a signature is required by the card in the receipt suggestions response.
-
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.
-