public class TermsAndConditionsRequest extends Object implements ITimeoutRequest, ICoreRequest, IPreviousTransaction, ISignatureRequest, ITerminalReference
Constructor and Description |
---|
TermsAndConditionsRequest() |
Modifier and Type | Method and Description |
---|---|
String |
getContentHash()
Gets a hash of the terms and conditions content that can be used for caching.
|
String |
getDestinationAccount()
Gets the settlement account for merchants with split settlements.
|
String |
getOrderRef()
Gets an identifier from an external point of sale system.
|
String |
getSigFile()
Gets a location on the filesystem which a customer signature should be written to.
|
SignatureFormat |
getSigFormat()
Gets the image format to be used for returning signatures.
|
int |
getSigWidth()
Gets the width that the signature image should be scaled to, preserving the aspect
ratio.
|
String |
getTcAlias()
Gets an alias for a Terms and Conditions template configured in the BlockChyp
dashboard.
|
String |
getTcContent()
Gets the content of the terms and conditions that will be presented to the user.
|
String |
getTcName()
Gets the name of the Terms and Conditions the user is accepting.
|
String |
getTerminalName()
Gets the name of the target payment terminal.
|
int |
getTimeout()
Gets the request timeout in seconds.
|
String |
getTransactionId()
Gets the ID of the previous transaction being referenced.
|
String |
getTransactionRef()
Gets a user-assigned reference that can be used to recall or reverse transactions.
|
boolean |
isAsync()
Gets defers the response to the transaction and returns immediately.
|
boolean |
isDisableSignature()
Gets whether or not signature prompt should be skipped on the terminal.
|
boolean |
isForce()
Gets override any in-progress transactions.
|
boolean |
isQueue()
Gets adds the transaction to the queue and returns immediately.
|
boolean |
isSigRequired()
Gets that a signature should be requested.
|
boolean |
isTest()
Gets whether or not to route transaction to the test gateway.
|
boolean |
isWaitForRemovedCard()
Gets whether or not the request should block until all cards have been removed from
the card reader.
|
void |
setAsync(boolean value)
Sets defers the response to the transaction and returns immediately.
|
void |
setContentHash(String value)
Sets a hash of the terms and conditions content that can be used for caching.
|
void |
setDestinationAccount(String value)
Sets the settlement account for merchants with split settlements.
|
void |
setDisableSignature(boolean value)
Sets whether or not signature prompt should be skipped on the terminal.
|
void |
setForce(boolean value)
Sets override any in-progress transactions.
|
void |
setOrderRef(String value)
Sets an identifier from an external point of sale system.
|
void |
setQueue(boolean value)
Sets adds the transaction to the queue and returns immediately.
|
void |
setSigFile(String value)
Sets a location on the filesystem which a customer signature should be written to.
|
void |
setSigFormat(SignatureFormat value)
Sets the image format to be used for returning signatures.
|
void |
setSigRequired(boolean value)
Sets that a signature should be requested.
|
void |
setSigWidth(int value)
Sets the width that the signature image should be scaled to, preserving the aspect
ratio.
|
void |
setTcAlias(String value)
Sets an alias for a Terms and Conditions template configured in the BlockChyp
dashboard.
|
void |
setTcContent(String value)
Sets the content of the terms and conditions that will be presented to the user.
|
void |
setTcName(String value)
Sets the name of the Terms and Conditions the user is accepting.
|
void |
setTerminalName(String value)
Sets the name of the target payment terminal.
|
void |
setTest(boolean value)
Sets whether or not to route transaction to the test gateway.
|
void |
setTimeout(int value)
Sets the request timeout in seconds.
|
void |
setTransactionId(String value)
Sets the ID of the previous transaction being referenced.
|
void |
setTransactionRef(String value)
Sets a user-assigned reference that can be used to recall or reverse transactions.
|
void |
setWaitForRemovedCard(boolean value)
Sets whether or not the request should block until all cards have been removed from
the card reader.
|
public void setTimeout(int value)
value
- the request timeout in seconds.public int getTimeout()
getTimeout
in interface ITimeoutRequest
public void setTest(boolean value)
value
- whether or not to route transaction to the test gateway.public boolean isTest()
isTest
in interface ITimeoutRequest
public void setTransactionRef(String value)
value
- a user-assigned reference that can be used to recall or reverse
transactions.public String getTransactionRef()
getTransactionRef
in interface ICoreRequest
public void setAsync(boolean value)
value
- defers the response to the transaction and returns immediately.
Callers should retrive the transaction result using the Transaction Status API.public boolean isAsync()
isAsync
in interface ICoreRequest
public void setQueue(boolean value)
value
- adds the transaction to the queue and returns immediately. Callers
should retrive the transaction result using the Transaction Status API.public boolean isQueue()
isQueue
in interface ICoreRequest
public void setWaitForRemovedCard(boolean value)
value
- whether or not the request should block until all cards have been
removed from the card reader.public boolean isWaitForRemovedCard()
isWaitForRemovedCard
in interface ICoreRequest
public void setForce(boolean value)
value
- override any in-progress transactions.public boolean isForce()
isForce
in interface ICoreRequest
public void setOrderRef(String value)
value
- an identifier from an external point of sale system.public String getOrderRef()
getOrderRef
in interface ICoreRequest
public void setDestinationAccount(String value)
value
- the settlement account for merchants with split settlements.public String getDestinationAccount()
getDestinationAccount
in interface ICoreRequest
public void setTransactionId(String value)
value
- the ID of the previous transaction being referenced.public String getTransactionId()
getTransactionId
in interface IPreviousTransaction
public void setSigFile(String value)
value
- a location on the filesystem which a customer signature should be
written to.public String getSigFile()
getSigFile
in interface ISignatureRequest
public void setSigFormat(SignatureFormat value)
value
- the image format to be used for returning signatures.public SignatureFormat getSigFormat()
getSigFormat
in interface ISignatureRequest
public void setSigWidth(int value)
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.public int getSigWidth()
getSigWidth
in interface ISignatureRequest
public void setDisableSignature(boolean value)
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.public boolean isDisableSignature()
isDisableSignature
in interface ISignatureRequest
public void setTerminalName(String value)
value
- the name of the target payment terminal.public String getTerminalName()
getTerminalName
in interface ITerminalReference
public void setTcAlias(String value)
value
- an alias for a Terms and Conditions template configured in the
BlockChyp dashboard.public String getTcAlias()
public void setTcName(String value)
value
- the name of the Terms and Conditions the user is accepting.public String getTcName()
public void setTcContent(String value)
value
- the content of the terms and conditions that will be presented to the
user.public String getTcContent()
public void setContentHash(String value)
value
- a hash of the terms and conditions content that can be used for caching.public String getContentHash()
public void setSigRequired(boolean value)
value
- that a signature should be requested.public boolean isSigRequired()
Copyright © 2022 BlockChyp, Inc.. All rights reserved.